	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xiic_start_recv
_xiic_start_recv:                       ## @xiic_start_recv
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	%r14, 16(%rdi)
	movq	_XIIC_INTR_RX_FULL_MASK@GOTPCREL(%rip), %rax
	movq	_XIIC_INTR_TX_ERROR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_xiic_irq_clr_en
	movq	(%r14), %rax
	movq	_IIC_RX_FIFO_DEPTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	cmovlq	%rax, %rdx
	movq	_XIIC_RFD_REG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decq	%rdx
	movq	%rbx, %rdi
	callq	_xiic_setreg8
	callq	_local_irq_save
	movq	_I2C_M_NOSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_2
## %bb.1:
	movq	_XIIC_DTR_REG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_i2c_8bit_addr_from_msg
	movq	_XIIC_TX_DYN_START_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_xiic_setreg16
LBB0_2:
	movq	_XIIC_INTR_BNB_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_xiic_irq_clr_en
	movq	_XIIC_DTR_REG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$1, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_XIIC_TX_DYN_STOP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	orl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_xiic_setreg16
	callq	_local_irq_restore
	cmpl	$1, (%rbx)
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_xiic_irq_clr_en
LBB0_6:
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XIIC_INTR_RX_FULL_MASK,4,2     ## @XIIC_INTR_RX_FULL_MASK
	.comm	_XIIC_INTR_TX_ERROR_MASK,4,2    ## @XIIC_INTR_TX_ERROR_MASK
	.comm	_IIC_RX_FIFO_DEPTH,8,3          ## @IIC_RX_FIFO_DEPTH
	.comm	_XIIC_RFD_REG_OFFSET,4,2        ## @XIIC_RFD_REG_OFFSET
	.comm	_I2C_M_NOSTART,4,2              ## @I2C_M_NOSTART
	.comm	_XIIC_DTR_REG_OFFSET,4,2        ## @XIIC_DTR_REG_OFFSET
	.comm	_XIIC_TX_DYN_START_MASK,4,2     ## @XIIC_TX_DYN_START_MASK
	.comm	_XIIC_INTR_BNB_MASK,4,2         ## @XIIC_INTR_BNB_MASK
	.comm	_XIIC_TX_DYN_STOP_MASK,4,2      ## @XIIC_TX_DYN_STOP_MASK
	.no_dead_strip	_xiic_start_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xiic_start_recv
_xiic_start_recv:                       ; @xiic_start_recv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _XIIC_INTR_RX_FULL_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XIIC_INTR_RX_FULL_MASK@GOTPAGEOFF]
	str	x20, [x0, #16]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _XIIC_INTR_TX_ERROR_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XIIC_INTR_TX_ERROR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_xiic_irq_clr_en
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _IIC_RX_FIFO_DEPTH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IIC_RX_FIFO_DEPTH@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, x9, lt
Lloh9:
	adrp	x9, _XIIC_RFD_REG_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XIIC_RFD_REG_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	sub	x2, x8, #1
	mov	x0, x19
	bl	_xiic_setreg8
	bl	_local_irq_save
	ldr	w8, [x20, #8]
Lloh12:
	adrp	x9, _I2C_M_NOSTART@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I2C_M_NOSTART@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x22, _XIIC_DTR_REG_OFFSET@GOTPAGE
Lloh16:
	ldr	x22, [x22, _XIIC_DTR_REG_OFFSET@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w21, [x22]
	mov	x0, x20
	bl	_i2c_8bit_addr_from_msg
Lloh17:
	adrp	x8, _XIIC_TX_DYN_START_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XIIC_TX_DYN_START_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_xiic_setreg16
LBB0_2:
Lloh20:
	adrp	x21, _XIIC_INTR_BNB_MASK@GOTPAGE
Lloh21:
	ldr	x21, [x21, _XIIC_INTR_BNB_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_xiic_irq_clr_en
	ldr	w1, [x22]
	ldr	w8, [x20]
	ldr	w9, [x19]
Lloh22:
	adrp	x10, _XIIC_TX_DYN_STOP_MASK@GOTPAGE
Lloh23:
	ldr	x10, [x10, _XIIC_TX_DYN_STOP_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	w9, #1
	csel	w9, w10, wzr, eq
	orr	w2, w9, w8
	mov	x0, x19
	bl	_xiic_setreg16
	bl	_local_irq_restore
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_xiic_irq_clr_en
LBB0_4:
	ldr	x8, [x20]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_XIIC_INTR_RX_FULL_MASK,4,2     ; @XIIC_INTR_RX_FULL_MASK
	.comm	_XIIC_INTR_TX_ERROR_MASK,4,2    ; @XIIC_INTR_TX_ERROR_MASK
	.comm	_IIC_RX_FIFO_DEPTH,8,3          ; @IIC_RX_FIFO_DEPTH
	.comm	_XIIC_RFD_REG_OFFSET,4,2        ; @XIIC_RFD_REG_OFFSET
	.comm	_I2C_M_NOSTART,4,2              ; @I2C_M_NOSTART
	.comm	_XIIC_DTR_REG_OFFSET,4,2        ; @XIIC_DTR_REG_OFFSET
	.comm	_XIIC_TX_DYN_START_MASK,4,2     ; @XIIC_TX_DYN_START_MASK
	.comm	_XIIC_INTR_BNB_MASK,4,2         ; @XIIC_INTR_BNB_MASK
	.comm	_XIIC_TX_DYN_STOP_MASK,4,2      ; @XIIC_TX_DYN_STOP_MASK
	.no_dead_strip	_xiic_start_recv
.subsections_via_symbols
