	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uart_cninit
_uart_cninit:                           ## @uart_cninit
	.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	_AML_UART_CONTROL_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ub_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), %r15
	movq	_AML_UART_CONTROL_RX_RST@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_AML_UART_CONTROL_TWO_WIRE_EN@GOTPCREL(%rip), %rax
	movq	_AML_UART_CONTROL_TX_EN@GOTPCREL(%rip), %rcx
	orl	(%r15), %ebx
	orl	%edx, %ebx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movq	_AML_UART_CONTROL_RX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_ub_setreg
	movq	_AML_UART_MISC_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_ub_getreg
	movq	_AML_UART_MISC_RECV_IRQ_CNT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r13), %edi
	callq	_ub_setreg
	movl	(%r12), %esi
	orl	(%r15), %esi
	notl	%esi
	andl	%ebx, %esi
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ub_setreg                      ## 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_TWO_WIRE_EN,4,2 ## @AML_UART_CONTROL_TWO_WIRE_EN
	.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
	.comm	_early_putc,8,3                 ## @early_putc
	.no_dead_strip	_uart_cninit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uart_cninit
_uart_cninit:                           ; @uart_cninit
	.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
Lloh0:
	adrp	x20, _AML_UART_CONTROL_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AML_UART_CONTROL_REG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ub_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	x21, _AML_UART_CONTROL_TX_RST@GOTPAGE
Lloh9:
	ldr	x21, [x21, _AML_UART_CONTROL_TX_RST@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh10:
	adrp	x22, _AML_UART_CONTROL_RX_RST@GOTPAGE
Lloh11:
	ldr	x22, [x22, _AML_UART_CONTROL_RX_RST@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh12:
	adrp	x11, _AML_UART_CONTROL_TWO_WIRE_EN@GOTPAGE
Lloh13:
	ldr	x11, [x11, _AML_UART_CONTROL_TWO_WIRE_EN@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _AML_UART_CONTROL_TX_EN@GOTPAGE
Lloh16:
	ldr	x12, [x12, _AML_UART_CONTROL_TX_EN@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
Lloh18:
	adrp	x13, _AML_UART_CONTROL_RX_EN@GOTPAGE
Lloh19:
	ldr	x13, [x13, _AML_UART_CONTROL_RX_EN@GOTPAGEOFF]
Lloh20:
	ldr	w13, [x13]
	orr	w9, w10, w9
	orr	w8, w9, w8
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w19, w8, w13
	ldr	w0, [x20]
	mov	x1, x19
	bl	_ub_setreg
Lloh21:
	adrp	x23, _AML_UART_MISC_REG@GOTPAGE
Lloh22:
	ldr	x23, [x23, _AML_UART_MISC_REG@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ub_getreg
Lloh23:
	adrp	x8, _AML_UART_MISC_RECV_IRQ_CNT_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AML_UART_MISC_RECV_IRQ_CNT_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x23]
	bl	_ub_setreg
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	bic	w1, w19, w8
	ldr	w0, [x20]
	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	_ub_setreg
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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_TWO_WIRE_EN,4,2 ; @AML_UART_CONTROL_TWO_WIRE_EN
	.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
	.comm	_early_putc,8,3                 ; @early_putc
	.no_dead_strip	_uart_cninit
.subsections_via_symbols
