	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usc_load_txfifo
_usc_load_txfifo:                       ## @usc_load_txfifo
	.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
	cmpl	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rbx)
	je	LBB0_14
LBB0_2:
	movq	_TCmd_SelectTicrTxFifostatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usc_TCmd
	movq	_TICR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_usc_InReg
	cmpl	$256, %eax                      ## imm = 0x100
	jae	LBB0_3
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_CCAR@GOTPCREL(%rip), %r13
	movq	_TDR@GOTPCREL(%rip), %r12
	movq	_LSBONLY@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	movslq	16(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 16(%rbx)
	movl	(%rax,%rcx,4), %edi
	movq	(%r13), %rsi
	addq	32(%rbx), %rsi
	callq	_outw
	movq	_SERIAL_XMIT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	andl	%eax, 16(%rbx)
	decl	(%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %eax
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, 24(%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_usc_InReg
	cmpl	$255, %eax
	jbe	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %ecx
	jl	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$512, %eax                      ## imm = 0x200
	jl	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 4(%rbx)
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rdi
	addq	32(%rbx), %rdi
	callq	_inw
	andl	$1920, %eax                     ## imm = 0x780
	movl	(%r15), %edi
	addl	(%r12), %edi
	orl	%eax, %edi
	movq	(%r13), %rsi
	addq	32(%rbx), %rsi
	callq	_outw
	movl	4(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rsi
	addq	32(%rbx), %rsi
	callq	_outw
	movl	$0, 4(%rbx)
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	movslq	16(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 16(%rbx)
	movl	(%rax,%rcx,4), %edi
	movq	_SERIAL_XMIT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	andl	%eax, %edx
	incl	%edx
	andl	%eax, %edx
	movl	%edx, 16(%rbx)
	movq	_DATAREG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_outw
	addl	$-2, (%rbx)
	movl	$2, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_TCmd_SelectTicrTxFifostatus,4,2 ## @TCmd_SelectTicrTxFifostatus
	.comm	_TICR,4,2                       ## @TICR
	.comm	_SERIAL_XMIT_SIZE,4,2           ## @SERIAL_XMIT_SIZE
	.comm	_DATAREG,8,3                    ## @DATAREG
	.comm	_CCAR,8,3                       ## @CCAR
	.comm	_TDR,4,2                        ## @TDR
	.comm	_LSBONLY,4,2                    ## @LSBONLY
	.no_dead_strip	_usc_load_txfifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usc_load_txfifo
_usc_load_txfifo:                       ; @usc_load_txfifo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _TCmd_SelectTicrTxFifostatus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCmd_SelectTicrTxFifostatus@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usc_TCmd
Lloh3:
	adrp	x20, _TICR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _TICR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_usc_InReg
	cmp	w0, #256
	b.hs	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x21, _SERIAL_XMIT_SIZE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SERIAL_XMIT_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x22, _DATAREG@GOTPAGE
Lloh8:
	ldr	x22, [x22, _DATAREG@GOTPAGEOFF]
Lloh9:
	adrp	x23, _CCAR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CCAR@GOTPAGEOFF]
Lloh11:
	adrp	x24, _TDR@GOTPAGE
Lloh12:
	ldr	x24, [x24, _TDR@GOTPAGEOFF]
Lloh13:
	adrp	x25, _LSBONLY@GOTPAGE
Lloh14:
	ldr	x25, [x25, _LSBONLY@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #16]
	add	w10, w9, #1
	str	w10, [x19, #16]
	ldr	w0, [x8, x9, lsl #2]
	ldr	x8, [x19, #32]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_outw
	ldr	w8, [x19, #16]
	ldr	w9, [x21]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x19, #16]
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x19, #24]
	add	x8, x9, x8
	str	x8, [x19, #24]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_usc_InReg
	cmp	w0, #255
	b.ls	LBB0_3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w0, #512
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #32]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inw
	and	w8, w0, #0x780
	ldr	w9, [x24]
	ldr	w10, [x25]
	add	w9, w10, w9
	orr	w0, w9, w8
	ldr	x8, [x19, #32]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_outw
	ldr	w0, [x19, #4]
	cbz	w0, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #32]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_outw
	str	wzr, [x19, #4]
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #16]
	add	w10, w9, #1
	str	w10, [x19, #16]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w8, [x21]
	sub	w8, w8, #1
	and	w9, w8, w10
	add	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x19, #16]
	ldr	x8, [x19, #32]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_outw
	ldr	w8, [x19]
	sub	w8, w8, #2
	str	w8, [x19]
	mov	w8, #2
	b	LBB0_7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TCmd_SelectTicrTxFifostatus,4,2 ; @TCmd_SelectTicrTxFifostatus
	.comm	_TICR,4,2                       ; @TICR
	.comm	_SERIAL_XMIT_SIZE,4,2           ; @SERIAL_XMIT_SIZE
	.comm	_DATAREG,8,3                    ; @DATAREG
	.comm	_CCAR,8,3                       ; @CCAR
	.comm	_TDR,4,2                        ; @TDR
	.comm	_LSBONLY,4,2                    ; @LSBONLY
	.no_dead_strip	_usc_load_txfifo
.subsections_via_symbols
