	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_fi2c_tx_init
_uniphier_fi2c_tx_init:                 ## @uniphier_fi2c_tx_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_UNIPHIER_FI2C_INT_TE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rdi)
	callq	_uniphier_fi2c_set_irqs
	movq	_UNIPHIER_FI2C_TBC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_UNIPHIER_FI2C_DTTX_CMD@GOTPCREL(%rip), %rax
	addl	%ebx, %ebx
	orl	(%rax), %ebx
	movq	_UNIPHIER_FI2C_DTTX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uniphier_fi2c_fill_txfifo      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_FI2C_INT_TE,4,2       ## @UNIPHIER_FI2C_INT_TE
	.comm	_UNIPHIER_FI2C_TBC,8,3          ## @UNIPHIER_FI2C_TBC
	.comm	_UNIPHIER_FI2C_DTTX_CMD,4,2     ## @UNIPHIER_FI2C_DTTX_CMD
	.comm	_UNIPHIER_FI2C_DTTX,8,3         ## @UNIPHIER_FI2C_DTTX
	.no_dead_strip	_uniphier_fi2c_tx_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_fi2c_tx_init
_uniphier_fi2c_tx_init:                 ; @uniphier_fi2c_tx_init
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _UNIPHIER_FI2C_INT_TE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNIPHIER_FI2C_INT_TE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	orr	w8, w9, w8
	str	w8, [x0, #8]
	bl	_uniphier_fi2c_set_irqs
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _UNIPHIER_FI2C_TBC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UNIPHIER_FI2C_TBC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh6:
	adrp	x8, _UNIPHIER_FI2C_DTTX_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNIPHIER_FI2C_DTTX_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w0, w8, w21, lsl #1
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _UNIPHIER_FI2C_DTTX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UNIPHIER_FI2C_DTTX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	cbz	w20, LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	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
	b	_uniphier_fi2c_fill_txfifo
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_FI2C_INT_TE,4,2       ; @UNIPHIER_FI2C_INT_TE
	.comm	_UNIPHIER_FI2C_TBC,8,3          ; @UNIPHIER_FI2C_TBC
	.comm	_UNIPHIER_FI2C_DTTX_CMD,4,2     ; @UNIPHIER_FI2C_DTTX_CMD
	.comm	_UNIPHIER_FI2C_DTTX,8,3         ; @UNIPHIER_FI2C_DTTX
	.no_dead_strip	_uniphier_fi2c_tx_init
.subsections_via_symbols
