	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uart_init                      ## -- Begin function uart_init
	.p2align	4, 0x90
_uart_init:                             ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_GPFSEL1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_get32
                                        ## kill: def $eax killed $eax def $rax
	andl	$-258049, %eax                  ## imm = 0xFFFC0FFF
	leal	73728(%rax), %esi
	movl	(%rbx), %edi
	callq	_put32
	movq	_GPPUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_put32
	movl	$150, %edi
	callq	_delay
	movq	_GPPUDCLK0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$49152, %esi                    ## imm = 0xC000
	callq	_put32
	movl	$150, %edi
	callq	_delay
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_put32
	movq	_AUX_ENABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_put32
	movq	_AUX_MU_CNTL_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_put32
	movq	_AUX_MU_IER_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_put32
	movq	_AUX_MU_LCR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_put32
	movq	_AUX_MU_MCR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_put32
	movq	_AUX_MU_BAUD_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_BAUD_REG_VAL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_put32
	movl	(%r15), %edi
	movl	$3, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put32                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPFSEL1,4,2                    ## @GPFSEL1
	.comm	_GPPUD,4,2                      ## @GPPUD
	.comm	_GPPUDCLK0,4,2                  ## @GPPUDCLK0
	.comm	_AUX_ENABLES,4,2                ## @AUX_ENABLES
	.comm	_AUX_MU_CNTL_REG,4,2            ## @AUX_MU_CNTL_REG
	.comm	_AUX_MU_IER_REG,4,2             ## @AUX_MU_IER_REG
	.comm	_AUX_MU_LCR_REG,4,2             ## @AUX_MU_LCR_REG
	.comm	_AUX_MU_MCR_REG,4,2             ## @AUX_MU_MCR_REG
	.comm	_AUX_MU_BAUD_REG,4,2            ## @AUX_MU_BAUD_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uart_init                      ; -- Begin function uart_init
	.p2align	2
_uart_init:                             ; @uart_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	x19, x0
Lloh0:
	adrp	x20, _GPFSEL1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GPFSEL1@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_get32
	mov	x1, x0
	mov	w8, #18
	bfi	w1, w8, #12, #6
	ldr	w0, [x20]
	bl	_put32
Lloh2:
	adrp	x8, _GPPUD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPPUD@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_put32
	mov	w0, #150
	bl	_delay
Lloh5:
	adrp	x20, _GPPUDCLK0@GOTPAGE
Lloh6:
	ldr	x20, [x20, _GPPUDCLK0@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #49152
	bl	_put32
	mov	w0, #150
	bl	_delay
	ldr	w0, [x20]
	mov	w1, #0
	bl	_put32
Lloh7:
	adrp	x8, _AUX_ENABLES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AUX_ENABLES@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_put32
Lloh10:
	adrp	x21, _AUX_MU_CNTL_REG@GOTPAGE
Lloh11:
	ldr	x21, [x21, _AUX_MU_CNTL_REG@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_put32
Lloh12:
	adrp	x8, _AUX_MU_IER_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUX_MU_IER_REG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_put32
Lloh15:
	adrp	x8, _AUX_MU_LCR_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AUX_MU_LCR_REG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_put32
Lloh18:
	adrp	x8, _AUX_MU_MCR_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AUX_MU_MCR_REG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_put32
Lloh21:
	adrp	x8, _AUX_MU_BAUD_REG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AUX_MU_BAUD_REG@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_BAUD_REG_VAL
	mov	x1, x0
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_put32
	ldr	w0, [x21]
	mov	w1, #3
	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	_put32
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPFSEL1,4,2                    ; @GPFSEL1
	.comm	_GPPUD,4,2                      ; @GPPUD
	.comm	_GPPUDCLK0,4,2                  ; @GPPUDCLK0
	.comm	_AUX_ENABLES,4,2                ; @AUX_ENABLES
	.comm	_AUX_MU_CNTL_REG,4,2            ; @AUX_MU_CNTL_REG
	.comm	_AUX_MU_IER_REG,4,2             ; @AUX_MU_IER_REG
	.comm	_AUX_MU_LCR_REG,4,2             ; @AUX_MU_LCR_REG
	.comm	_AUX_MU_MCR_REG,4,2             ; @AUX_MU_MCR_REG
	.comm	_AUX_MU_BAUD_REG,4,2            ; @AUX_MU_BAUD_REG
.subsections_via_symbols
