	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sn9c102_i2c_wait
_sn9c102_i2c_wait:                      ## @sn9c102_i2c_wait
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$8, %esi
	callq	_sn9c102_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	testb	$4, %al
	jne	LBB0_13
## %bb.3:
	movq	_SN9C102_I2C_400KHZ@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	(%r14), %eax
	movl	$256, %eax                      ## imm = 0x100
	movl	$80, %edi
	cmovel	%eax, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_sn9c102_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	testb	$4, %al
	jne	LBB0_13
## %bb.5:
	movl	(%r12), %eax
	andl	(%r14), %eax
	movl	$256, %eax                      ## imm = 0x100
	movl	$80, %edi
	cmovel	%eax, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_sn9c102_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.6:
	testb	$4, %al
	jne	LBB0_13
## %bb.7:
	movl	(%r12), %eax
	andl	(%r14), %eax
	movl	$256, %eax                      ## imm = 0x100
	movl	$80, %edi
	cmovel	%eax, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_sn9c102_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.8:
	testb	$4, %al
	jne	LBB0_13
## %bb.9:
	movl	(%r12), %eax
	andl	(%r14), %eax
	movl	$256, %eax                      ## imm = 0x100
	movl	$80, %edi
	cmovel	%eax, %edi
	callq	_udelay
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_sn9c102_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.10:
	testb	$4, %al
	jne	LBB0_13
## %bb.11:
	movl	(%r12), %eax
	andl	(%r14), %eax
	movl	$256, %eax                      ## imm = 0x100
	movl	$80, %edi
	cmovel	%eax, %edi
	callq	_udelay
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SN9C102_I2C_400KHZ,4,2         ## @SN9C102_I2C_400KHZ
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_sn9c102_i2c_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sn9c102_i2c_wait
_sn9c102_i2c_wait:                      ; @sn9c102_i2c_wait
	.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, x1
	mov	x20, x0
	mov	w1, #8
	bl	_sn9c102_read_reg
	tbnz	w0, #31, LBB0_11
; %bb.1:
	tbnz	w0, #2, LBB0_13
; %bb.2:
Lloh0:
	adrp	x21, _SN9C102_I2C_400KHZ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SN9C102_I2C_400KHZ@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	mov	w8, #80
	mov	w9, #256
	csel	w0, w9, w8, eq
	bl	_udelay
	mov	x0, x20
	mov	w1, #8
	bl	_sn9c102_read_reg
	tbnz	w0, #31, LBB0_11
; %bb.3:
	tbnz	w0, #2, LBB0_13
; %bb.4:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	mov	w8, #80
	mov	w9, #256
	csel	w0, w9, w8, eq
	bl	_udelay
	mov	x0, x20
	mov	w1, #8
	bl	_sn9c102_read_reg
	tbnz	w0, #31, LBB0_11
; %bb.5:
	tbnz	w0, #2, LBB0_13
; %bb.6:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	mov	w8, #80
	mov	w9, #256
	csel	w0, w9, w8, eq
	bl	_udelay
	mov	x0, x20
	mov	w1, #8
	bl	_sn9c102_read_reg
	tbnz	w0, #31, LBB0_11
; %bb.7:
	tbnz	w0, #2, LBB0_13
; %bb.8:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	mov	w8, #80
	mov	w9, #256
	csel	w0, w9, w8, eq
	bl	_udelay
	mov	x0, x20
	mov	w1, #8
	bl	_sn9c102_read_reg
	tbnz	w0, #31, LBB0_11
; %bb.9:
	tbnz	w0, #2, LBB0_13
; %bb.10:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	mov	w8, #80
	mov	w9, #256
	csel	w0, w9, w8, eq
	bl	_udelay
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SN9C102_I2C_400KHZ,4,2         ; @SN9C102_I2C_400KHZ
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_sn9c102_i2c_wait
.subsections_via_symbols
