	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx_flush_chars
_sx_flush_chars:                        ## @sx_flush_chars
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	%r15, %rdi
	callq	_port_Board
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_func_enter
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_sx_paranoia_check
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_func_exit                      ## TAILCALL
LBB0_1:
	cmpq	$0, (%r15)
	jle	LBB0_6
## %bb.2:
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
## %bb.3:
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 12(%r15)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_IER_TXRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_port_Board
	movq	%rax, %r12
	movq	_CD186x_CAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_port_No
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_sx_out
	movq	%r15, %rdi
	callq	_port_Board
	movq	_CD186x_IER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%r15), %edx
	movq	%rax, %rdi
	callq	_sx_out
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sx_flush_chars"

	.comm	_IER_TXRDY,4,2                  ## @IER_TXRDY
	.comm	_CD186x_CAR,4,2                 ## @CD186x_CAR
	.comm	_CD186x_IER,4,2                 ## @CD186x_IER
	.no_dead_strip	_sx_flush_chars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx_flush_chars
_sx_flush_chars:                        ; @sx_flush_chars
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	ldr	x20, [x0, #24]
	mov	x0, x20
	bl	_port_Board
	mov	x19, x0
	bl	_func_enter
	ldr	w1, [x21, #16]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sx_paranoia_check
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_func_exit
LBB0_2:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_1
; %bb.3:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_1
; %bb.4:
	ldr	x8, [x21]
	cbnz	x8, LBB0_1
; %bb.5:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_1
; %bb.6:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _IER_TXRDY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IER_TXRDY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_port_Board
	mov	x21, x0
Lloh5:
	adrp	x8, _CD186x_CAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CD186x_CAR@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_port_No
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_sx_out
	mov	x0, x20
	bl	_port_Board
Lloh8:
	adrp	x8, _CD186x_IER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CD186x_IER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	bl	_sx_out
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sx_flush_chars"

	.comm	_IER_TXRDY,4,2                  ; @IER_TXRDY
	.comm	_CD186x_CAR,4,2                 ; @CD186x_CAR
	.comm	_CD186x_IER,4,2                 ; @CD186x_IER
	.no_dead_strip	_sx_flush_chars
.subsections_via_symbols
