	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iop3xx_i2c_read_byte
_iop3xx_i2c_read_byte:                  ## @iop3xx_i2c_read_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_CR_OFFSET@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%rbx), %rdi
	callq	___raw_readl
	movq	_IOP3XX_ICR_MSTART@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	%rax, %rcx
	movq	_IOP3XX_ICR_MSTOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_IOP3XX_ICR_NACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	orq	%rcx, %rdi
	orq	%rax, %rdi
	jmp	LBB0_3
LBB0_2:
	orq	%rdi, %rax
	notq	%rax
	andq	%rax, %rcx
	movq	%rcx, %rdi
LBB0_3:
	movq	_IOP3XX_ICR_TBYTE@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	callq	___raw_writel
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iop3xx_i2c_wait_rx_done
	movl	%eax, %r15d
	movq	_DBR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	___raw_readl
	movb	%al, (%r14)
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR_OFFSET,8,3                  ## @CR_OFFSET
	.comm	_IOP3XX_ICR_MSTART,8,3          ## @IOP3XX_ICR_MSTART
	.comm	_IOP3XX_ICR_MSTOP,8,3           ## @IOP3XX_ICR_MSTOP
	.comm	_IOP3XX_ICR_NACK,8,3            ## @IOP3XX_ICR_NACK
	.comm	_IOP3XX_ICR_TBYTE,8,3           ## @IOP3XX_ICR_TBYTE
	.comm	_DBR_OFFSET,8,3                 ## @DBR_OFFSET
	.no_dead_strip	_iop3xx_i2c_read_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iop3xx_i2c_read_byte
_iop3xx_i2c_read_byte:                  ; @iop3xx_i2c_read_byte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _CR_OFFSET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CR_OFFSET@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	___raw_readl
Lloh2:
	adrp	x8, _IOP3XX_ICR_MSTART@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IOP3XX_ICR_MSTART@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _IOP3XX_ICR_MSTOP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IOP3XX_ICR_MSTOP@GOTPAGEOFF]
	bic	x8, x0, x8
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _IOP3XX_ICR_NACK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IOP3XX_ICR_NACK@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	orr	x11, x10, x9
	bic	x11, x8, x11
	orr	x8, x9, x8
	orr	x8, x8, x10
	cmp	w19, #0
Lloh11:
	adrp	x9, _IOP3XX_ICR_TBYTE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IOP3XX_ICR_TBYTE@GOTPAGEOFF]
	csel	x8, x11, x8, eq
Lloh13:
	ldr	x9, [x9]
	orr	x0, x9, x8
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	___raw_writel
	add	x1, sp, #12
	mov	x0, x21
	bl	_iop3xx_i2c_wait_rx_done
	mov	x19, x0
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _DBR_OFFSET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DBR_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	strb	w0, [x20]
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CR_OFFSET,8,3                  ; @CR_OFFSET
	.comm	_IOP3XX_ICR_MSTART,8,3          ; @IOP3XX_ICR_MSTART
	.comm	_IOP3XX_ICR_MSTOP,8,3           ; @IOP3XX_ICR_MSTOP
	.comm	_IOP3XX_ICR_NACK,8,3            ; @IOP3XX_ICR_NACK
	.comm	_IOP3XX_ICR_TBYTE,8,3           ; @IOP3XX_ICR_TBYTE
	.comm	_DBR_OFFSET,8,3                 ; @DBR_OFFSET
	.no_dead_strip	_iop3xx_i2c_read_byte
.subsections_via_symbols
