	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml8726_uart_init
_aml8726_uart_init:                     ## @aml8726_uart_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	%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
	movq	%rdi, %r14
	callq	_aml8726_uart_param
	movq	_AML_UART_CONTROL_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_uart_getreg
	movq	_AML_UART_CONTROL_TX_INT_EN@GOTPCREL(%rip), %rcx
	movq	_AML_UART_CONTROL_RX_INT_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_AML_UART_CONTROL_TX_RST@GOTPCREL(%rip), %rax
	movq	_AML_UART_CONTROL_RX_RST@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	orl	(%rax), %ebx
	movq	_AML_UART_CONTROL_TX_EN@GOTPCREL(%rip), %rax
	orl	%edx, %ebx
	orl	(%rax), %ebx
	movq	_AML_UART_CONTROL_RX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_uart_setreg
	movq	%r14, %rdi
	callq	_uart_barrier
	movq	_AML_UART_MISC_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_uart_getreg
	movq	_AML_UART_MISC_RECV_IRQ_CNT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_uart_setreg
	movq	%r14, %rdi
	callq	_uart_barrier
	movl	(%r13), %edx
	movq	_AML_UART_CONTROL_TX_RST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_uart_setreg
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uart_barrier                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AML_UART_CONTROL_REG,4,2       ## @AML_UART_CONTROL_REG
	.comm	_AML_UART_CONTROL_TX_INT_EN,4,2 ## @AML_UART_CONTROL_TX_INT_EN
	.comm	_AML_UART_CONTROL_RX_INT_EN,4,2 ## @AML_UART_CONTROL_RX_INT_EN
	.comm	_AML_UART_CONTROL_TX_RST,4,2    ## @AML_UART_CONTROL_TX_RST
	.comm	_AML_UART_CONTROL_RX_RST,4,2    ## @AML_UART_CONTROL_RX_RST
	.comm	_AML_UART_CONTROL_TX_EN,4,2     ## @AML_UART_CONTROL_TX_EN
	.comm	_AML_UART_CONTROL_RX_EN,4,2     ## @AML_UART_CONTROL_RX_EN
	.comm	_AML_UART_MISC_REG,4,2          ## @AML_UART_MISC_REG
	.comm	_AML_UART_MISC_RECV_IRQ_CNT_MASK,4,2 ## @AML_UART_MISC_RECV_IRQ_CNT_MASK
	.no_dead_strip	_aml8726_uart_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml8726_uart_init
_aml8726_uart_init:                     ; @aml8726_uart_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_aml8726_uart_param
Lloh0:
	adrp	x21, _AML_UART_CONTROL_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AML_UART_CONTROL_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uart_getreg
Lloh2:
	adrp	x8, _AML_UART_CONTROL_TX_INT_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AML_UART_CONTROL_TX_INT_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AML_UART_CONTROL_RX_INT_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AML_UART_CONTROL_RX_INT_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh8:
	adrp	x22, _AML_UART_CONTROL_TX_RST@GOTPAGE
Lloh9:
	ldr	x22, [x22, _AML_UART_CONTROL_TX_RST@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh10:
	adrp	x23, _AML_UART_CONTROL_RX_RST@GOTPAGE
Lloh11:
	ldr	x23, [x23, _AML_UART_CONTROL_RX_RST@GOTPAGEOFF]
	ldr	w10, [x23]
Lloh12:
	adrp	x11, _AML_UART_CONTROL_TX_EN@GOTPAGE
Lloh13:
	ldr	x11, [x11, _AML_UART_CONTROL_TX_EN@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _AML_UART_CONTROL_RX_EN@GOTPAGE
Lloh16:
	ldr	x12, [x12, _AML_UART_CONTROL_RX_EN@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	orr	w9, w10, w9
	orr	w8, w9, w8
	orr	w8, w8, w11
	orr	w20, w8, w12
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_uart_setreg
	mov	x0, x19
	bl	_uart_barrier
Lloh18:
	adrp	x24, _AML_UART_MISC_REG@GOTPAGE
Lloh19:
	ldr	x24, [x24, _AML_UART_MISC_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_uart_getreg
Lloh20:
	adrp	x8, _AML_UART_MISC_RECV_IRQ_CNT_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AML_UART_MISC_RECV_IRQ_CNT_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_uart_setreg
	mov	x0, x19
	bl	_uart_barrier
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	bic	w2, w20, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uart_setreg
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_uart_barrier
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AML_UART_CONTROL_REG,4,2       ; @AML_UART_CONTROL_REG
	.comm	_AML_UART_CONTROL_TX_INT_EN,4,2 ; @AML_UART_CONTROL_TX_INT_EN
	.comm	_AML_UART_CONTROL_RX_INT_EN,4,2 ; @AML_UART_CONTROL_RX_INT_EN
	.comm	_AML_UART_CONTROL_TX_RST,4,2    ; @AML_UART_CONTROL_TX_RST
	.comm	_AML_UART_CONTROL_RX_RST,4,2    ; @AML_UART_CONTROL_RX_RST
	.comm	_AML_UART_CONTROL_TX_EN,4,2     ; @AML_UART_CONTROL_TX_EN
	.comm	_AML_UART_CONTROL_RX_EN,4,2     ; @AML_UART_CONTROL_RX_EN
	.comm	_AML_UART_MISC_REG,4,2          ; @AML_UART_MISC_REG
	.comm	_AML_UART_MISC_RECV_IRQ_CNT_MASK,4,2 ; @AML_UART_MISC_RECV_IRQ_CNT_MASK
	.no_dead_strip	_aml8726_uart_init
.subsections_via_symbols
