	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxcpld_i2c_xfer_msg
_mlxcpld_i2c_xfer_msg:                  ## @mlxcpld_i2c_xfer_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MLXCPLD_LPCI2C_NUM_DAT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rdi, %rdx
	movl	$1, %ecx
	callq	_mlxcpld_i2c_write_comm
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)
	cmpq	$0, 24(%r14)
	je	LBB0_6
## %bb.1:
	cmpl	$2, 8(%r14)
	jl	LBB0_6
## %bb.2:
	movq	16(%r14), %rcx
	cmpl	$1, 24(%rcx)
	jne	LBB0_6
## %bb.3:
	movl	28(%rcx), %ecx
	movq	_I2C_M_RECV_LEN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.4:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_MLXCPLD_I2C_SMBUS_BLK_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
LBB0_6:
	movq	_MLXCPLD_LPCI2C_NUM_ADDR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_mlxcpld_i2c_write_comm
	movl	8(%r14), %ecx
	movq	16(%r14), %rax
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	movq	_I2C_M_RD@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movslq	%ecx, %rdx
	addq	$24, %rbx
	cmpq	%rdx, %r13
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rbx), %edx
	notl	%edx
	testl	%edx, (%r15)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movslq	%r12d, %r12
	movq	_MLXCPLD_LPCI2C_DATA_REG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%r12, %rsi
	movq	8(%rax,%rbx), %rdx
	movl	(%rax,%rbx), %ecx
	movq	%r14, %rdi
	callq	_mlxcpld_i2c_write_comm
	movq	16(%r14), %rax
	addl	(%rax,%rbx), %r12d
	movl	8(%r14), %ecx
	jmp	LBB0_10
LBB0_11:
	movl	16(%rax), %eax
	addl	%eax, %eax
	orl	12(%r14), %eax
	movl	%eax, -48(%rbp)
	movq	_MLXCPLD_LPCI2C_CMD_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_mlxcpld_i2c_write_comm
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXCPLD_LPCI2C_NUM_DAT_REG,8,3 ## @MLXCPLD_LPCI2C_NUM_DAT_REG
	.comm	_I2C_M_RECV_LEN,4,2             ## @I2C_M_RECV_LEN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_MLXCPLD_I2C_SMBUS_BLK_BIT,4,2  ## @MLXCPLD_I2C_SMBUS_BLK_BIT
	.comm	_MLXCPLD_LPCI2C_NUM_ADDR_REG,8,3 ## @MLXCPLD_LPCI2C_NUM_ADDR_REG
	.comm	_MLXCPLD_LPCI2C_DATA_REG,8,3    ## @MLXCPLD_LPCI2C_DATA_REG
	.comm	_MLXCPLD_LPCI2C_CMD_REG,8,3     ## @MLXCPLD_LPCI2C_CMD_REG
	.no_dead_strip	_mlxcpld_i2c_xfer_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxcpld_i2c_xfer_msg
_mlxcpld_i2c_xfer_msg:                  ; @mlxcpld_i2c_xfer_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _MLXCPLD_LPCI2C_NUM_DAT_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXCPLD_LPCI2C_NUM_DAT_REG@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x2, x0
	mov	w3, #1
	bl	_mlxcpld_i2c_write_comm
	ldr	w8, [x19, #4]
	str	w8, [sp, #8]
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_6
; %bb.1:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.le	LBB0_6
; %bb.2:
	ldr	x9, [x19, #16]
	ldr	w10, [x9, #24]
	cmp	w10, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	w9, [x9, #28]
Lloh3:
	adrp	x10, _I2C_M_RECV_LEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _I2C_M_RECV_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
Lloh6:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x9, _MLXCPLD_I2C_SMBUS_BLK_BIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLXCPLD_I2C_SMBUS_BLK_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #8]
LBB0_6:
Lloh12:
	adrp	x8, _MLXCPLD_LPCI2C_NUM_ADDR_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLXCPLD_LPCI2C_NUM_ADDR_REG@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	bl	_mlxcpld_i2c_write_comm
	ldr	w9, [x19, #8]
	ldr	x8, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x20, #0
	mov	x21, #0
	mov	w22, #0
Lloh15:
	adrp	x23, _I2C_M_RD@GOTPAGE
Lloh16:
	ldr	x23, [x23, _I2C_M_RD@GOTPAGEOFF]
Lloh17:
	adrp	x24, _MLXCPLD_LPCI2C_DATA_REG@GOTPAGE
Lloh18:
	ldr	x24, [x24, _MLXCPLD_LPCI2C_DATA_REG@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	add	x20, x20, #24
	cmp	x21, w9, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, x20
	ldr	w11, [x10, #4]
	ldr	w12, [x23]
	bics	wzr, w12, w11
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	add	x1, x8, w22, sxtw
	ldr	x2, [x10, #8]
	ldr	w3, [x10]
	mov	x0, x19
	bl	_mlxcpld_i2c_write_comm
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x20]
	add	w22, w9, w22
	ldr	w9, [x19, #8]
	b	LBB0_8
LBB0_11:
	ldr	w8, [x8, #16]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8, lsl #1
	str	w8, [sp, #12]
Lloh19:
	adrp	x8, _MLXCPLD_LPCI2C_CMD_REG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLXCPLD_LPCI2C_CMD_REG@GOTPAGEOFF]
Lloh21:
	ldr	x1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_mlxcpld_i2c_write_comm
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXCPLD_LPCI2C_NUM_DAT_REG,8,3 ; @MLXCPLD_LPCI2C_NUM_DAT_REG
	.comm	_I2C_M_RECV_LEN,4,2             ; @I2C_M_RECV_LEN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_MLXCPLD_I2C_SMBUS_BLK_BIT,4,2  ; @MLXCPLD_I2C_SMBUS_BLK_BIT
	.comm	_MLXCPLD_LPCI2C_NUM_ADDR_REG,8,3 ; @MLXCPLD_LPCI2C_NUM_ADDR_REG
	.comm	_MLXCPLD_LPCI2C_DATA_REG,8,3    ; @MLXCPLD_LPCI2C_DATA_REG
	.comm	_MLXCPLD_LPCI2C_CMD_REG,8,3     ; @MLXCPLD_LPCI2C_CMD_REG
	.no_dead_strip	_mlxcpld_i2c_xfer_msg
.subsections_via_symbols
