	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_i2c_pio_wait_xfer_end
_mxs_i2c_pio_wait_xfer_end:             ## @mxs_i2c_pio_wait_xfer_end
	.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, %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movq	%rax, %r14
	movq	_MXS_I2C_CTRL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_MXS_I2C_CTRL0_RUN@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.2:
	addq	%rbx, %r14
	movq	_MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MXS_I2C_CTRL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	testl	%eax, (%r13)
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_cond_resched
	movq	_MXS_I2C_CTRL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	testl	%eax, (%r12)
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MXS_I2C_CTRL0,8,3              ## @MXS_I2C_CTRL0
	.comm	_MXS_I2C_CTRL0_RUN,4,2          ## @MXS_I2C_CTRL0_RUN
	.comm	_MXS_I2C_CTRL1,8,3              ## @MXS_I2C_CTRL1
	.comm	_MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ,4,2 ## @MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_mxs_i2c_pio_wait_xfer_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_i2c_pio_wait_xfer_end
_mxs_i2c_pio_wait_xfer_end:             ; @mxs_i2c_pio_wait_xfer_end
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x24, [x21]
	mov	w0, #1000
	bl	_msecs_to_jiffies
	mov	x20, x0
	ldr	x8, [x19]
Lloh2:
	adrp	x22, _MXS_I2C_CTRL0@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MXS_I2C_CTRL0@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh4:
	adrp	x23, _MXS_I2C_CTRL0_RUN@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MXS_I2C_CTRL0_RUN@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	add	x20, x20, x24
Lloh6:
	adrp	x24, _MXS_I2C_CTRL1@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MXS_I2C_CTRL1@GOTPAGEOFF]
Lloh8:
	adrp	x25, _MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x25]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cond_resched
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MXS_I2C_CTRL0,8,3              ; @MXS_I2C_CTRL0
	.comm	_MXS_I2C_CTRL0_RUN,4,2          ; @MXS_I2C_CTRL0_RUN
	.comm	_MXS_I2C_CTRL1,8,3              ; @MXS_I2C_CTRL1
	.comm	_MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ,4,2 ; @MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_mxs_i2c_pio_wait_xfer_end
.subsections_via_symbols
