	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_recv_byte
_i2c_recv_byte:                         ## @i2c_recv_byte
	.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
	movq	_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_set_attr
	movq	%rbx, %rdi
	callq	_i2c_is_busy_wait
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_i2c_get_status
	movl	%eax, %edi
	callq	_i2c_is_error
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_SAA7134_I2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_saa_readb
	movzbl	%al, %ebx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%ebx, %edx
	callq	_i2c_dbg
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTINUE,4,2                   ## @CONTINUE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SAA7134_I2C_DATA,4,2           ## @SAA7134_I2C_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c data <= 0x%x\n"

	.no_dead_strip	_i2c_recv_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_recv_byte
_i2c_recv_byte:                         ; @i2c_recv_byte
	.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
Lloh0:
	adrp	x8, _CONTINUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONTINUE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_set_attr
	mov	x0, x19
	bl	_i2c_is_busy_wait
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_i2c_get_status
	bl	_i2c_is_error
	cbz	x0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _SAA7134_I2C_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAA7134_I2C_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_saa_readb
	mov	x19, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_i2c_dbg
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTINUE,4,2                   ; @CONTINUE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SAA7134_I2C_DATA,4,2           ; @SAA7134_I2C_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c data <= 0x%x\n"

	.no_dead_strip	_i2c_recv_byte
.subsections_via_symbols
