	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btuart_write
_btuart_write:                          ## @btuart_write
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %r13d
	movq	_UART_LSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	movq	_UART_LSR_THRE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.2:
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.3:
	movl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	movq	_UART_TX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	callq	_outb
	incq	%rbx
	cmpl	$2, %r15d
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%r15d
	cmpq	%r12, %rbx
	jb	LBB0_4
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_LSR,8,3                   ## @UART_LSR
	.comm	_UART_LSR_THRE,4,2              ## @UART_LSR_THRE
	.comm	_UART_TX,8,3                    ## @UART_TX
	.no_dead_strip	_btuart_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btuart_write
_btuart_write:                          ; @btuart_write
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	w23, w0
Lloh0:
	adrp	x8, _UART_LSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UART_LSR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x23
	bl	_inb
Lloh3:
	adrp	x8, _UART_LSR_THRE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UART_LSR_THRE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	mov	w21, #0
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.2:
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x21, #0
	mov	w22, w22
Lloh6:
	adrp	x24, _UART_TX@GOTPAGE
Lloh7:
	ldr	x24, [x24, _UART_TX@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, x21, lsl #2]
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outb
	add	x21, x21, #1
	cmp	w20, #2
	b.lo	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w20, w20, #1
	cmp	x21, x22
	b.lo	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_LSR,8,3                   ; @UART_LSR
	.comm	_UART_LSR_THRE,4,2              ; @UART_LSR_THRE
	.comm	_UART_TX,8,3                    ; @UART_TX
	.no_dead_strip	_btuart_write
.subsections_via_symbols
