	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uart_reset
_uart_reset:                            ## @uart_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_DEFAULT_RCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DEFAULT_BAUD@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
                                        ## kill: def $eax killed $eax def $rax
	leal	15(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movl	%ecx, %eax
	sarl	$4, %eax
	movl	%eax, (%rdi)
	sarl	$20, %ecx
	movl	%ecx, 4(%rdi)
	movl	8(%rdi), %edi
	callq	_modem_status
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rxfifo_reset                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_RCLK,4,2               ## @DEFAULT_RCLK
	.comm	_DEFAULT_BAUD,4,2               ## @DEFAULT_BAUD
	.no_dead_strip	_uart_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uart_reset
_uart_reset:                            ; @uart_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _DEFAULT_RCLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_RCLK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DEFAULT_BAUD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEFAULT_BAUD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w9, w8, #4
	asr	w8, w8, #20
	stp	w9, w8, [x0]
	ldr	w0, [x0, #8]
	bl	_modem_status
	str	w0, [x19, #12]
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rxfifo_reset
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_RCLK,4,2               ; @DEFAULT_RCLK
	.comm	_DEFAULT_BAUD,4,2               ; @DEFAULT_BAUD
	.no_dead_strip	_uart_reset
.subsections_via_symbols
