	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sn9c102_i2c_detect_read_error
_sn9c102_i2c_detect_read_error:         ## @sn9c102_i2c_detect_read_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$8, %esi
	callq	_sn9c102_read_reg
	movq	(%rbx), %rcx
	movq	_BRIDGE_SN9C101@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	_BRIDGE_SN9C102@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.3:
	movl	%eax, %ecx
	shrl	$3, %ecx
	andl	$1, %ecx
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %ecx
	shll	$28, %ecx
	sarl	$31, %ecx
	incl	%ecx
LBB0_4:
	movl	%eax, %edx
	sarl	$31, %edx
	andl	%eax, %edx
	movq	_EIO@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	xorl	%esi, %esi
	cmpl	%ecx, %edx
	cmovel	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIDGE_SN9C101,8,3             ## @BRIDGE_SN9C101
	.comm	_BRIDGE_SN9C102,8,3             ## @BRIDGE_SN9C102
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_sn9c102_i2c_detect_read_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sn9c102_i2c_detect_read_error
_sn9c102_i2c_detect_read_error:         ; @sn9c102_i2c_detect_read_error
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #8
	bl	_sn9c102_read_reg
Lloh0:
	adrp	x8, _BRIDGE_SN9C101@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRIDGE_SN9C101@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _BRIDGE_SN9C102@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BRIDGE_SN9C102@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x8
	ccmp	x9, x10, #4, ne
	ubfx	w8, w0, #3, #1
	sbfx	w9, w0, #3, #1
	csinc	w8, w8, w9, ne
	cmp	w0, #0
	csel	w9, w0, wzr, lt
Lloh6:
	adrp	x10, _EIO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w8
	csneg	w0, wzr, w10, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIDGE_SN9C101,8,3             ; @BRIDGE_SN9C101
	.comm	_BRIDGE_SN9C102,8,3             ; @BRIDGE_SN9C102
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_sn9c102_i2c_detect_read_error
.subsections_via_symbols
