	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mstartup
_mstartup:                              ## @mstartup
	.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, %rbx
	movq	_UART_FCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UART_FCR_CLEAR_RCVR@GOTPCREL(%rip), %rax
	movq	_UART_FCR_CLEAR_XMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_serial_outp
	movq	_UART_LSR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_serial_inp
	cmpl	$255, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_UART_RX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_serial_inp
	movq	_UART_IIR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_serial_inp
	movq	_UART_MSR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_serial_inp
	movq	_UART_LCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UART_LCR_WLEN8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_outp
	movl	$0, (%rbx)
	movq	_UART_MCR_DTR@GOTPCREL(%rip), %rax
	movq	_UART_MCR_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_UART_MCR_OUT2@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rbx)
	movq	_UART_MCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_serial_outp
	movq	_UART_IER_MSI@GOTPCREL(%rip), %rax
	movq	_UART_IER_RLSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_UART_IER_RDI@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, 4(%rbx)
	movq	_UART_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_serial_outp
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_serial_inp
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_serial_inp
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_serial_inp
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_serial_inp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, 32(%rbx)
	movq	_BASE_BAUD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_change_speed
	movl	$1, 8(%rbx)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_FCR,4,2                   ## @UART_FCR
	.comm	_UART_FCR_CLEAR_RCVR,4,2        ## @UART_FCR_CLEAR_RCVR
	.comm	_UART_FCR_CLEAR_XMIT,4,2        ## @UART_FCR_CLEAR_XMIT
	.comm	_UART_LSR,4,2                   ## @UART_LSR
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_UART_RX,4,2                    ## @UART_RX
	.comm	_UART_IIR,4,2                   ## @UART_IIR
	.comm	_UART_MSR,4,2                   ## @UART_MSR
	.comm	_UART_LCR,4,2                   ## @UART_LCR
	.comm	_UART_LCR_WLEN8,4,2             ## @UART_LCR_WLEN8
	.comm	_UART_MCR_DTR,4,2               ## @UART_MCR_DTR
	.comm	_UART_MCR_RTS,4,2               ## @UART_MCR_RTS
	.comm	_UART_MCR_OUT2,4,2              ## @UART_MCR_OUT2
	.comm	_UART_MCR,4,2                   ## @UART_MCR
	.comm	_UART_IER_MSI,4,2               ## @UART_IER_MSI
	.comm	_UART_IER_RLSI,4,2              ## @UART_IER_RLSI
	.comm	_UART_IER_RDI,4,2               ## @UART_IER_RDI
	.comm	_UART_IER,4,2                   ## @UART_IER
	.comm	_BASE_BAUD,4,2                  ## @BASE_BAUD
	.no_dead_strip	_mstartup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mstartup
_mstartup:                              ; @mstartup
	.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
Lloh0:
	adrp	x8, _UART_FCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UART_FCR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _UART_FCR_CLEAR_RCVR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UART_FCR_CLEAR_RCVR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _UART_FCR_CLEAR_XMIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UART_FCR_CLEAR_XMIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_serial_outp
Lloh9:
	adrp	x20, _UART_LSR@GOTPAGE
Lloh10:
	ldr	x20, [x20, _UART_LSR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_serial_inp
	cmp	w0, #255
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x21, _UART_RX@GOTPAGE
Lloh15:
	ldr	x21, [x21, _UART_RX@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_serial_inp
Lloh16:
	adrp	x22, _UART_IIR@GOTPAGE
Lloh17:
	ldr	x22, [x22, _UART_IIR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_serial_inp
Lloh18:
	adrp	x23, _UART_MSR@GOTPAGE
Lloh19:
	ldr	x23, [x23, _UART_MSR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_serial_inp
Lloh20:
	adrp	x8, _UART_LCR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UART_LCR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _UART_LCR_WLEN8@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UART_LCR_WLEN8@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_outp
	str	wzr, [x19]
Lloh26:
	adrp	x8, _UART_MCR_DTR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UART_MCR_DTR@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _UART_MCR_RTS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _UART_MCR_RTS@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _UART_MCR_OUT2@GOTPAGE
Lloh33:
	ldr	x9, [x9, _UART_MCR_OUT2@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w2, w8, w9
	str	w2, [x19]
Lloh35:
	adrp	x8, _UART_MCR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _UART_MCR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_serial_outp
Lloh38:
	adrp	x8, _UART_IER_MSI@GOTPAGE
Lloh39:
	ldr	x8, [x8, _UART_IER_MSI@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _UART_IER_RLSI@GOTPAGE
Lloh42:
	ldr	x9, [x9, _UART_IER_RLSI@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh44:
	adrp	x9, _UART_IER_RDI@GOTPAGE
Lloh45:
	ldr	x9, [x9, _UART_IER_RDI@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w2, w8, w9
	str	w2, [x19, #4]
Lloh47:
	adrp	x8, _UART_IER@GOTPAGE
Lloh48:
	ldr	x8, [x8, _UART_IER@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_serial_outp
	ldr	w1, [x20]
	mov	x0, x19
	bl	_serial_inp
	ldr	w1, [x21]
	mov	x0, x19
	bl	_serial_inp
	ldr	w1, [x22]
	mov	x0, x19
	bl	_serial_inp
	ldr	w1, [x23]
	mov	x0, x19
	bl	_serial_inp
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
Lloh50:
	adrp	x8, _BASE_BAUD@GOTPAGE
Lloh51:
	ldr	x8, [x8, _BASE_BAUD@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_change_speed
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_3:
	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
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_FCR,4,2                   ; @UART_FCR
	.comm	_UART_FCR_CLEAR_RCVR,4,2        ; @UART_FCR_CLEAR_RCVR
	.comm	_UART_FCR_CLEAR_XMIT,4,2        ; @UART_FCR_CLEAR_XMIT
	.comm	_UART_LSR,4,2                   ; @UART_LSR
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_UART_RX,4,2                    ; @UART_RX
	.comm	_UART_IIR,4,2                   ; @UART_IIR
	.comm	_UART_MSR,4,2                   ; @UART_MSR
	.comm	_UART_LCR,4,2                   ; @UART_LCR
	.comm	_UART_LCR_WLEN8,4,2             ; @UART_LCR_WLEN8
	.comm	_UART_MCR_DTR,4,2               ; @UART_MCR_DTR
	.comm	_UART_MCR_RTS,4,2               ; @UART_MCR_RTS
	.comm	_UART_MCR_OUT2,4,2              ; @UART_MCR_OUT2
	.comm	_UART_MCR,4,2                   ; @UART_MCR
	.comm	_UART_IER_MSI,4,2               ; @UART_IER_MSI
	.comm	_UART_IER_RLSI,4,2              ; @UART_IER_RLSI
	.comm	_UART_IER_RDI,4,2               ; @UART_IER_RDI
	.comm	_UART_IER,4,2                   ; @UART_IER
	.comm	_BASE_BAUD,4,2                  ; @BASE_BAUD
	.no_dead_strip	_mstartup
.subsections_via_symbols
