	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_pxa_wait_bus_not_busy
_i2c_pxa_wait_bus_not_busy:             ## @i2c_pxa_wait_bus_not_busy
	.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	_DEF_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	_ISR_IBB@GOTPCREL(%rip), %r15
	movq	_ISR_UB@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	__ISR
	movl	%eax, %edi
	callq	_readl
	movl	(%r12), %ecx
	orl	(%r15), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	__ISR
	movl	%eax, %edi
	callq	_readl
	movq	_ISR_SAD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	movl	$0, %r13d
	sbbl	%r13d, %r13d
	orl	$3, %r13d
	movl	$2, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_show_state
	addl	%r13d, %ebx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jg	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_show_state
	movq	_I2C_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEF_TIMEOUT,4,2                ## @DEF_TIMEOUT
	.comm	_ISR_IBB,4,2                    ## @ISR_IBB
	.comm	_ISR_UB,4,2                     ## @ISR_UB
	.comm	_ISR_SAD,4,2                    ## @ISR_SAD
	.comm	_I2C_RETRY,4,2                  ## @I2C_RETRY
	.no_dead_strip	_i2c_pxa_wait_bus_not_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_pxa_wait_bus_not_busy
_i2c_pxa_wait_bus_not_busy:             ; @i2c_pxa_wait_bus_not_busy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _DEF_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEF_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	w20, LBB0_6
; %bb.1:
Lloh3:
	adrp	x21, _ISR_IBB@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ISR_IBB@GOTPAGEOFF]
Lloh5:
	adrp	x22, _ISR_UB@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ISR_UB@GOTPAGEOFF]
	mov	w23, #3
Lloh7:
	adrp	x24, _ISR_SAD@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ISR_SAD@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	__ISR
	bl	_readl
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	__ISR
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	csinv	w8, w23, wzr, ne
	add	w20, w8, w20
	mov	w0, #2
	bl	_msleep
	mov	x0, x19
	bl	_show_state
	cbnz	w20, LBB0_2
	b	LBB0_6
LBB0_4:
	cmp	w20, #0
	b.le	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_show_state
Lloh9:
	adrp	x8, _I2C_RETRY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_RETRY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DEF_TIMEOUT,4,2                ; @DEF_TIMEOUT
	.comm	_ISR_IBB,4,2                    ; @ISR_IBB
	.comm	_ISR_UB,4,2                     ; @ISR_UB
	.comm	_ISR_SAD,4,2                    ; @ISR_SAD
	.comm	_I2C_RETRY,4,2                  ; @I2C_RETRY
	.no_dead_strip	_i2c_pxa_wait_bus_not_busy
.subsections_via_symbols
