	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_uart_receive_chars
_sdio_uart_receive_chars:               ## @sdio_uart_receive_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	24(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	20(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$-256, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_UART_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdio_in
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_TTY_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	incl	28(%rbx)
	movq	_UART_LSR_PE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UART_LSR_BI@GOTPCREL(%rip), %r12
	orl	(%r12), %edi
	movq	_UART_LSR_FE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_UART_LSR_OE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	andl	(%r14), %edi
	callq	_unlikely
	movl	(%r14), %ecx
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, (%r12)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_UART_LSR_PE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UART_LSR_FE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	notl	%eax
	andl	%eax, %ecx
	movl	%ecx, (%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	_UART_LSR_PE@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	_UART_LSR_FE@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	(%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %ecx
	movq	_UART_LSR_OE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	12(%rbx)
	movl	(%r14), %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	andl	(%rbx), %ecx
	movl	%ecx, (%r14)
	testl	%ecx, (%r12)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_TTY_BREAK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_UART_LSR_PE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_TTY_PARITY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_UART_LSR_FE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_TTY_FRAME@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %r13d
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %eax
	movl	%eax, %esi
	andl	%ecx, %esi
	movq	_UART_LSR_OE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %edi
	notl	%edi
	testl	%edi, %esi
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_tty_insert_flip_char
	movl	(%r14), %ecx
	movl	4(%rbx), %eax
	movq	_UART_LSR_OE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	notl	%eax
	andl	%ecx, %eax
	testl	%edx, %eax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_TTY_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_tty_insert_flip_char
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_UART_LSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdio_in
	movl	%eax, (%r14)
	movq	_UART_LSR_DR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r15), %eax
	testl	%r15d, %r15d
	movl	%eax, %r15d
	jne	LBB0_1
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_flip_buffer_push           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_RX,4,2                    ## @UART_RX
	.comm	_TTY_NORMAL,4,2                 ## @TTY_NORMAL
	.comm	_UART_LSR_BI,4,2                ## @UART_LSR_BI
	.comm	_UART_LSR_PE,4,2                ## @UART_LSR_PE
	.comm	_UART_LSR_FE,4,2                ## @UART_LSR_FE
	.comm	_UART_LSR_OE,4,2                ## @UART_LSR_OE
	.comm	_TTY_BREAK,4,2                  ## @TTY_BREAK
	.comm	_TTY_PARITY,4,2                 ## @TTY_PARITY
	.comm	_TTY_FRAME,4,2                  ## @TTY_FRAME
	.comm	_TTY_OVERRUN,4,2                ## @TTY_OVERRUN
	.comm	_UART_LSR,4,2                   ## @UART_LSR
	.comm	_UART_LSR_DR,4,2                ## @UART_LSR_DR
	.no_dead_strip	_sdio_uart_receive_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_receive_chars
_sdio_uart_receive_chars:               ; @sdio_uart_receive_chars
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	add	x9, x0, #24
	add	x8, x0, #20
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
	add	x8, x0, #16
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x21, x0, #8
	mov	w8, #-256
Lloh0:
	adrp	x28, _UART_LSR_BI@GOTPAGE
Lloh1:
	ldr	x28, [x28, _UART_LSR_BI@GOTPAGEOFF]
Lloh2:
	adrp	x27, _UART_LSR_PE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _UART_LSR_PE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _UART_LSR_FE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _UART_LSR_FE@GOTPAGEOFF]
Lloh6:
	adrp	x24, _UART_LSR_OE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _UART_LSR_OE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
Lloh8:
	adrp	x8, _UART_RX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UART_RX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdio_in
	mov	x22, x0
Lloh11:
	adrp	x8, _TTY_NORMAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TTY_NORMAL@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
	ldr	w8, [x19]
	ldr	w9, [x28]
	ldr	w10, [x27]
	orr	w9, w10, w9
	ldr	w10, [x26]
	orr	w9, w9, w10
	ldr	w10, [x24]
	orr	w9, w9, w10
	and	w0, w9, w8
	bl	_unlikely
	ldr	w8, [x19]
	cbz	x0, LBB0_14
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x26]
	ldr	w10, [x27]
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w10, [x27]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	tst	w10, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w10, [x26]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	tst	w10, w8
	b.eq	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	ldr	w8, [x19]
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x20]
	and	w8, w8, w9
	str	w8, [x19]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh14:
	adrp	x9, _TTY_BREAK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TTY_BREAK@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x9]
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh17:
	adrp	x9, _TTY_PARITY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TTY_PARITY@GOTPAGEOFF]
Lloh19:
	ldr	w23, [x9]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x26]
Lloh20:
	adrp	x10, _TTY_FRAME@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TTY_FRAME@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w23, w23, w10, eq
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x20, #4]
	and	w11, w9, w8
	ldr	w10, [x24]
	bics	wzr, w11, w10
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_tty_insert_flip_char
	ldr	w8, [x19]
	ldr	w9, [x20, #4]
	ldr	w10, [x24]
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	bic	w8, w8, w9
	tst	w8, w10
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh23:
	adrp	x8, _TTY_OVERRUN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TTY_OVERRUN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_tty_insert_flip_char
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh26:
	adrp	x8, _UART_LSR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UART_LSR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdio_in
	str	w0, [x19]
Lloh29:
	adrp	x8, _UART_LSR_DR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _UART_LSR_DR@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w25, #1
	cbnz	w25, LBB0_1
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_tty_flip_buffer_push
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_RX,4,2                    ; @UART_RX
	.comm	_TTY_NORMAL,4,2                 ; @TTY_NORMAL
	.comm	_UART_LSR_BI,4,2                ; @UART_LSR_BI
	.comm	_UART_LSR_PE,4,2                ; @UART_LSR_PE
	.comm	_UART_LSR_FE,4,2                ; @UART_LSR_FE
	.comm	_UART_LSR_OE,4,2                ; @UART_LSR_OE
	.comm	_TTY_BREAK,4,2                  ; @TTY_BREAK
	.comm	_TTY_PARITY,4,2                 ; @TTY_PARITY
	.comm	_TTY_FRAME,4,2                  ; @TTY_FRAME
	.comm	_TTY_OVERRUN,4,2                ; @TTY_OVERRUN
	.comm	_UART_LSR,4,2                   ; @UART_LSR
	.comm	_UART_LSR_DR,4,2                ; @UART_LSR_DR
	.no_dead_strip	_sdio_uart_receive_chars
.subsections_via_symbols
