	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_uart_transmit_chars
_sdio_uart_transmit_chars:              ## @sdio_uart_transmit_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	%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
	movq	16(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_UART_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdio_out
	incl	8(%rbx)
	movq	$0, 16(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_circ_empty
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_12
## %bb.4:
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.5:
	movl	$16, %r12d
	movq	_UART_TX@GOTPCREL(%rip), %r15
	movq	_UART_XMIT_SIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	24(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	%rbx, %rdi
	callq	_sdio_out
	movq	24(%rbx), %rax
	incq	%rax
	movslq	(%r13), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	%rcx, 24(%rbx)
	incl	8(%rbx)
	movq	%r14, %rdi
	callq	_circ_empty
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	-1(%r12), %eax
	cmpl	$1, %r12d
	movl	%eax, %r12d
	ja	LBB0_6
LBB0_8:
	movq	%r14, %rdi
	callq	_circ_chars_pending
	movq	_WAKEUP_CHARS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_10
## %bb.9:
	movq	(%rbx), %rdi
	callq	_tty_wakeup
LBB0_10:
	movq	%r14, %rdi
	callq	_circ_empty
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdio_uart_stop_tx              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_TX,4,2                    ## @UART_TX
	.comm	_UART_XMIT_SIZE,4,2             ## @UART_XMIT_SIZE
	.comm	_WAKEUP_CHARS,8,3               ## @WAKEUP_CHARS
	.no_dead_strip	_sdio_uart_transmit_chars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_uart_transmit_chars
_sdio_uart_transmit_chars:              ; @sdio_uart_transmit_chars
	.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	x19, x0
	ldr	x2, [x0, #16]
	cbz	x2, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _UART_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UART_TX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdio_out
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	str	xzr, [x19, #16]
LBB0_2:
	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
LBB0_3:
	add	x20, x19, #24
	mov	x0, x20
	bl	_circ_empty
	cbnz	x0, LBB0_12
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_12
; %bb.5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
; %bb.6:
	mov	w21, #16
Lloh3:
	adrp	x22, _UART_TX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UART_TX@GOTPAGEOFF]
Lloh5:
	adrp	x23, _UART_XMIT_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _UART_XMIT_SIZE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldp	x9, x8, [x19, #24]
	ldr	x2, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_sdio_out
	ldr	x8, [x19, #24]
	add	x8, x8, #1
	ldrsw	x9, [x23]
	sub	x9, x9, #1
	and	x8, x8, x9
	str	x8, [x19, #24]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_circ_empty
	subs	w21, w21, #1
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	b.hi	LBB0_7
LBB0_9:
	mov	x0, x20
	bl	_circ_chars_pending
Lloh7:
	adrp	x8, _WAKEUP_CHARS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WAKEUP_CHARS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_11
; %bb.10:
	ldr	x0, [x19]
	bl	_tty_wakeup
LBB0_11:
	mov	x0, x20
	bl	_circ_empty
	cbz	x0, LBB0_2
LBB0_12:
	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	_sdio_uart_stop_tx
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_TX,4,2                    ; @UART_TX
	.comm	_UART_XMIT_SIZE,4,2             ; @UART_XMIT_SIZE
	.comm	_WAKEUP_CHARS,8,3               ; @WAKEUP_CHARS
	.no_dead_strip	_sdio_uart_transmit_chars
.subsections_via_symbols
