	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_i2c_tx
_uniphier_i2c_tx:                       ## @uniphier_i2c_tx
	.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
	addl	%esi, %esi
	movq	_UNIPHIER_I2C_DTRM_STA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	_UNIPHIER_I2C_DTRM_NACK@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	callq	_uniphier_i2c_send_byte
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, %ebx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14,%r15,4), %esi
	orl	(%r13), %esi
	movq	%r12, %rdi
	callq	_uniphier_i2c_send_byte
	incq	%r15
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_I2C_DTRM_STA,4,2      ## @UNIPHIER_I2C_DTRM_STA
	.comm	_UNIPHIER_I2C_DTRM_NACK,4,2     ## @UNIPHIER_I2C_DTRM_NACK
	.no_dead_strip	_uniphier_i2c_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_i2c_tx
_uniphier_i2c_tx:                       ; @uniphier_i2c_tx
	.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, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _UNIPHIER_I2C_DTRM_STA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNIPHIER_I2C_DTRM_STA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w1, lsl #1
Lloh3:
	adrp	x22, _UNIPHIER_I2C_DTRM_NACK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UNIPHIER_I2C_DTRM_NACK@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w8, w9
	bl	_uniphier_i2c_send_byte
	cbnz	w0, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w20, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w20, w20, #1
	ldr	w8, [x22]
	ldr	w9, [x19], #4
	orr	w1, w9, w8
	mov	x0, x21
	bl	_uniphier_i2c_send_byte
	cbz	w0, LBB0_1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_I2C_DTRM_STA,4,2      ; @UNIPHIER_I2C_DTRM_STA
	.comm	_UNIPHIER_I2C_DTRM_NACK,4,2     ; @UNIPHIER_I2C_DTRM_NACK
	.no_dead_strip	_uniphier_i2c_tx
.subsections_via_symbols
