	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uart_reinit                    ## -- Begin function uart_reinit
	.p2align	4, 0x90
_uart_reinit:                           ## @uart_reinit
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_UART_MODEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_uart_setreg
	movq	_UART_C2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_uart_getreg
	movl	(%r13), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_uart_setreg
	movq	_UART_C1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_uart_setreg
	movl	%r15d, %ecx
	shll	$4, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	movl	%ebx, %eax
	cltd
	idivl	%r15d
	movl	%eax, %ebx
	movl	%r12d, %eax
	shll	$4, %eax
	subl	%eax, %ebx
	movq	_UART_BDH@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_uart_getreg
	movq	_UART_BDH_SBR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%r12d, %edx
	shrl	$8, %edx
	andl	$31, %edx
	orl	%ecx, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_uart_setreg
	movzbl	%r12b, %edx
	movq	_UART_BDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_uart_setreg
	movq	_UART_C4@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_uart_getreg
	movq	_UART_C4_BRFA@GOTPCREL(%rip), %rcx
	xorl	%eax, %ebx
	andl	(%rcx), %ebx
	xorl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_uart_setreg
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_uart_getreg
	movq	_UART_C2_RE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_UART_C2_TE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uart_setreg                    ## TAILCALL
LBB0_1:
	leaq	L_str(%rip), %rdi
	jmp	_puts                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_MODEM,4,2                 ## @UART_MODEM
	.comm	_UART_C2,4,2                    ## @UART_C2
	.comm	_UART_C2_RE,4,2                 ## @UART_C2_RE
	.comm	_UART_C2_TE,4,2                 ## @UART_C2_TE
	.comm	_UART_C1,4,2                    ## @UART_C1
	.comm	_UART_BDH,4,2                   ## @UART_BDH
	.comm	_UART_BDH_SBR,4,2               ## @UART_BDH_SBR
	.comm	_UART_BDL,4,2                   ## @UART_BDL
	.comm	_UART_C4,4,2                    ## @UART_C4
	.comm	_UART_C4_BRFA,4,2               ## @UART_C4_BRFA
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Error: can't reconfigure bas"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uart_reinit                    ; -- Begin function uart_reinit
	.p2align	2
_uart_reinit:                           ; @uart_reinit
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _UART_MODEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UART_MODEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_uart_setreg
Lloh3:
	adrp	x22, _UART_C2@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UART_C2@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_uart_getreg
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_uart_setreg
Lloh5:
	adrp	x8, _UART_C1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UART_C1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_uart_setreg
	lsl	w8, w20, #4
	sdiv	w23, w21, w8
	sdiv	w8, w21, w20
	sub	w20, w8, w23, lsl #4
Lloh8:
	adrp	x21, _UART_BDH@GOTPAGE
Lloh9:
	ldr	x21, [x21, _UART_BDH@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uart_getreg
Lloh10:
	adrp	x8, _UART_BDH_SBR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UART_BDH_SBR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ubfx	w9, w23, #8, #5
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uart_setreg
	and	w2, w23, #0xff
Lloh13:
	adrp	x8, _UART_BDL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UART_BDL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uart_setreg
Lloh16:
	adrp	x21, _UART_C4@GOTPAGE
Lloh17:
	ldr	x21, [x21, _UART_C4@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uart_getreg
Lloh18:
	adrp	x8, _UART_C4_BRFA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UART_C4_BRFA@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w9, w0, w8
	and	w8, w8, w20
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uart_setreg
	ldr	w1, [x22]
	mov	x0, x19
	bl	_uart_getreg
Lloh21:
	adrp	x8, _UART_C2_RE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _UART_C2_RE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _UART_C2_TE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _UART_C2_TE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w1, [x22]
	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_setreg
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
Lloh27:
	adrp	x0, l_str@PAGE
Lloh28:
	add	x0, x0, l_str@PAGEOFF
	b	_puts
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_MODEM,4,2                 ; @UART_MODEM
	.comm	_UART_C2,4,2                    ; @UART_C2
	.comm	_UART_C2_RE,4,2                 ; @UART_C2_RE
	.comm	_UART_C2_TE,4,2                 ; @UART_C2_TE
	.comm	_UART_C1,4,2                    ; @UART_C1
	.comm	_UART_BDH,4,2                   ; @UART_BDH
	.comm	_UART_BDH_SBR,4,2               ; @UART_BDH_SBR
	.comm	_UART_BDL,4,2                   ; @UART_BDL
	.comm	_UART_C4,4,2                    ; @UART_C4
	.comm	_UART_C4_BRFA,4,2               ; @UART_C4_BRFA
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Error: can't reconfigure bas"

.subsections_via_symbols
