	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iop3xx_i2c_write_byte
_iop3xx_i2c_write_byte:                 ## @iop3xx_i2c_write_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	%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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_CR_OFFSET@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	callq	___raw_readl
	movq	%rax, %r12
	movslq	%r15d, %rdi
	movq	_DBR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	___raw_writel
	movq	_IOP3XX_ICR_MSTART@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%r12, %rax
	movq	_IOP3XX_ICR_MSTOP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	%rdi, %rcx
	orq	%rax, %rcx
	notq	%rdi
	andq	%rax, %rdi
	testl	%r14d, %r14d
	cmovneq	%rcx, %rdi
	movq	_IOP3XX_ICR_TBYTE@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	movq	(%r13), %rsi
	addq	(%rbx), %rsi
	callq	___raw_writel
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iop3xx_i2c_wait_tx_done
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR_OFFSET,8,3                  ## @CR_OFFSET
	.comm	_DBR_OFFSET,8,3                 ## @DBR_OFFSET
	.comm	_IOP3XX_ICR_MSTART,8,3          ## @IOP3XX_ICR_MSTART
	.comm	_IOP3XX_ICR_MSTOP,8,3           ## @IOP3XX_ICR_MSTOP
	.comm	_IOP3XX_ICR_TBYTE,8,3           ## @IOP3XX_ICR_TBYTE
	.no_dead_strip	_iop3xx_i2c_write_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_write_byte
_iop3xx_i2c_write_byte:                 ; @iop3xx_i2c_write_byte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _CR_OFFSET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CR_OFFSET@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	___raw_readl
	mov	x22, x0
	sxtw	x0, w20
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _DBR_OFFSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DBR_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	___raw_writel
Lloh5:
	adrp	x8, _IOP3XX_ICR_MSTART@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IOP3XX_ICR_MSTART@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	bic	x8, x22, x8
Lloh8:
	adrp	x9, _IOP3XX_ICR_MSTOP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IOP3XX_ICR_MSTOP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	orr	x10, x9, x8
	bic	x8, x8, x9
	cmp	w19, #0
Lloh11:
	adrp	x9, _IOP3XX_ICR_TBYTE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IOP3XX_ICR_TBYTE@GOTPAGEOFF]
	csel	x8, x8, x10, eq
Lloh13:
	ldr	x9, [x9]
	orr	x0, x9, x8
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	___raw_writel
	add	x1, sp, #12
	mov	x0, x21
	bl	_iop3xx_i2c_wait_tx_done
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.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	_DBR_OFFSET,8,3                 ; @DBR_OFFSET
	.comm	_IOP3XX_ICR_MSTART,8,3          ; @IOP3XX_ICR_MSTART
	.comm	_IOP3XX_ICR_MSTOP,8,3           ; @IOP3XX_ICR_MSTOP
	.comm	_IOP3XX_ICR_TBYTE,8,3           ; @IOP3XX_ICR_TBYTE
	.no_dead_strip	_iop3xx_i2c_write_byte
.subsections_via_symbols
