	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_UART_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_sdio_out
	incl	(%r13)
	movq	$0, 16(%r13)
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	8(%r13), %rdi
	callq	_tty_port_tty_get
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	24(%r13), %r15
	movq	%r15, %rdi
	callq	_kfifo_len
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	cmpq	$0, 8(%r14)
	jne	LBB0_6
## %bb.5:
	cmpq	$0, (%r14)
	je	LBB0_8
LBB0_6:
	movq	%r13, %rdi
	callq	_sdio_uart_stop_tx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.7:
	movq	%r14, %rdi
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_kref_put                   ## TAILCALL
LBB0_8:
	leaq	4(%r13), %rcx
	leaq	-176(%rbp), %rsi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_kfifo_out_locked
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_UART_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-176(%rbp,%rbx,8), %rdx
	movq	%r13, %rdi
	callq	_sdio_out
	incl	(%r13)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_kfifo_len
	movl	%eax, %r15d
	movq	_WAKEUP_CHARS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_tty_wakeup
	testl	%r15d, %r15d
	jne	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_sdio_uart_stop_tx
LBB0_14:
	movq	%r14, %rdi
	callq	_tty_kref_put
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_TX,4,2                    ## @UART_TX
	.comm	_WAKEUP_CHARS,4,2               ## @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:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x2, [x0, #16]
	cbz	x2, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _UART_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UART_TX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdio_out
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	str	xzr, [x19, #16]
LBB0_2:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.3:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_4:
	add	x0, x19, #8
	bl	_tty_port_tty_get
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.5:
	add	x21, x19, #24
	mov	x0, x21
	bl	_kfifo_len
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_sdio_uart_stop_tx
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.9:
	mov	x0, x20
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_tty_kref_put
LBB0_10:
	add	x3, x19, #4
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #16
	bl	_kfifo_out_locked
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.11:
	mov	w22, w0
	add	x23, sp, #8
Lloh12:
	adrp	x24, _UART_TX@GOTPAGE
Lloh13:
	ldr	x24, [x24, _UART_TX@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	x2, [x23], #8
	mov	x0, x19
	bl	_sdio_out
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	subs	x22, x22, #1
	b.ne	LBB0_12
LBB0_13:
	mov	x0, x21
	bl	_kfifo_len
Lloh14:
	adrp	x8, _WAKEUP_CHARS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WAKEUP_CHARS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_16
; %bb.14:
	mov	x21, x0
	mov	x0, x20
	bl	_tty_wakeup
	cbnz	w21, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_sdio_uart_stop_tx
LBB0_16:
	mov	x0, x20
	bl	_tty_kref_put
	b	LBB0_2
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_TX,4,2                    ; @UART_TX
	.comm	_WAKEUP_CHARS,4,2               ; @WAKEUP_CHARS
	.no_dead_strip	_sdio_uart_transmit_chars
.subsections_via_symbols
