	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_uart_startup
_sdio_uart_startup:                     ## @sdio_uart_startup
	.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, %r14
	movq	_TTY_IO_ERROR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	24(%r14), %rsi
	addq	$4, %rsi
	callq	_set_bit
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___get_free_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	8(%r14), %r15
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	callq	_circ_clear
	movq	%r14, %rdi
	callq	_sdio_uart_claim_func
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movl	16(%r14), %edi
	callq	_sdio_enable_func
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movl	16(%r14), %edi
	movq	_sdio_uart_irq@GOTPCREL(%rip), %rsi
	callq	_sdio_claim_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.11:
	movl	%eax, %ebx
	movl	16(%r14), %edi
	callq	_sdio_disable_func
LBB0_12:
	movq	%r14, %rdi
	callq	_sdio_uart_release_func
LBB0_13:
	movq	(%r15), %rdi
	callq	_free_page
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_UART_FCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_UART_FCR_ENABLE_FIFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_sdio_out
	movq	_UART_FCR_CLEAR_RCVR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r15), %edx
	movl	(%rbx), %esi
	movq	_UART_FCR_CLEAR_XMIT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sdio_out
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_sdio_out
	movq	_UART_LSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdio_in
	movq	_UART_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdio_in
	movq	_UART_IIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdio_in
	movq	_UART_MSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdio_in
	movq	_UART_LCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UART_LCR_WLEN8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sdio_out
	movq	_UART_IER_RLSI@GOTPCREL(%rip), %rax
	movq	_UART_IER_RDI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_UART_IER_RTOIE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_UART_IER_UUE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_TIOCM_OUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	24(%r14), %rax
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_sdio_uart_change_speed
	movq	24(%r14), %rsi
	movq	8(%rsi), %rax
	movl	(%rax), %eax
	movq	_CBAUD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rax
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdio_uart_set_mctrl
	movq	24(%r14), %rsi
	movq	8(%rsi), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_sdio_uart_get_mctrl
	movq	_TIOCM_CTS@GOTPCREL(%rip), %rcx
	movq	24(%r14), %rsi
	testl	%eax, (%rcx)
	jne	LBB0_10
## %bb.9:
	movl	$1, (%rsi)
LBB0_10:
	movl	(%r12), %edi
	addq	$4, %rsi
	callq	_clear_bit
	movl	16(%r14), %edi
	callq	_sdio_uart_irq
	movq	%r14, %rdi
	callq	_sdio_uart_release_func
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_TTY_IO_ERROR,4,2               ## @TTY_IO_ERROR
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UART_FCR,4,2                   ## @UART_FCR
	.comm	_UART_FCR_ENABLE_FIFO,4,2       ## @UART_FCR_ENABLE_FIFO
	.comm	_UART_FCR_CLEAR_RCVR,4,2        ## @UART_FCR_CLEAR_RCVR
	.comm	_UART_FCR_CLEAR_XMIT,4,2        ## @UART_FCR_CLEAR_XMIT
	.comm	_UART_LSR,4,2                   ## @UART_LSR
	.comm	_UART_RX,4,2                    ## @UART_RX
	.comm	_UART_IIR,4,2                   ## @UART_IIR
	.comm	_UART_MSR,4,2                   ## @UART_MSR
	.comm	_UART_LCR,4,2                   ## @UART_LCR
	.comm	_UART_LCR_WLEN8,4,2             ## @UART_LCR_WLEN8
	.comm	_UART_IER_RLSI,4,2              ## @UART_IER_RLSI
	.comm	_UART_IER_RDI,4,2               ## @UART_IER_RDI
	.comm	_UART_IER_RTOIE,4,2             ## @UART_IER_RTOIE
	.comm	_UART_IER_UUE,4,2               ## @UART_IER_UUE
	.comm	_TIOCM_OUT2,4,2                 ## @TIOCM_OUT2
	.comm	_CBAUD,4,2                      ## @CBAUD
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_TIOCM_CTS,4,2                  ## @TIOCM_CTS
	.no_dead_strip	_sdio_uart_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_uart_startup
_sdio_uart_startup:                     ; @sdio_uart_startup
	.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	x19, x0
Lloh0:
	adrp	x22, _TTY_IO_ERROR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TTY_IO_ERROR@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x19, #24]
	add	x1, x8, #4
	bl	_set_bit
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	___get_free_page
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x19
	str	x0, [x20, #8]!
	mov	x0, x20
	bl	_circ_clear
	mov	x0, x19
	bl	_sdio_uart_claim_func
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_sdio_enable_func
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x1, _sdio_uart_irq@GOTPAGE
Lloh6:
	ldr	x1, [x1, _sdio_uart_irq@GOTPAGEOFF]
	bl	_sdio_claim_irq
	cbz	w0, LBB0_9
; %bb.4:
	mov	x21, x0
	ldr	w0, [x19, #16]
	bl	_sdio_disable_func
LBB0_5:
	mov	x0, x19
	bl	_sdio_uart_release_func
LBB0_6:
	ldr	x0, [x20]
	bl	_free_page
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
	ret
LBB0_9:
Lloh10:
	adrp	x20, _UART_FCR@GOTPAGE
Lloh11:
	ldr	x20, [x20, _UART_FCR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh12:
	adrp	x21, _UART_FCR_ENABLE_FIFO@GOTPAGE
Lloh13:
	ldr	x21, [x21, _UART_FCR_ENABLE_FIFO@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_sdio_out
	ldr	w1, [x20]
	ldr	w8, [x21]
Lloh14:
	adrp	x9, _UART_FCR_CLEAR_RCVR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UART_FCR_CLEAR_RCVR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _UART_FCR_CLEAR_XMIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _UART_FCR_CLEAR_XMIT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_sdio_out
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_sdio_out
Lloh20:
	adrp	x8, _UART_LSR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UART_LSR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdio_in
Lloh23:
	adrp	x8, _UART_RX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UART_RX@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdio_in
Lloh26:
	adrp	x8, _UART_IIR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UART_IIR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdio_in
Lloh29:
	adrp	x8, _UART_MSR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _UART_MSR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdio_in
Lloh32:
	adrp	x8, _UART_LCR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _UART_LCR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _UART_LCR_WLEN8@GOTPAGE
Lloh36:
	ldr	x8, [x8, _UART_LCR_WLEN8@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sdio_out
Lloh38:
	adrp	x8, _UART_IER_RLSI@GOTPAGE
Lloh39:
	ldr	x8, [x8, _UART_IER_RLSI@GOTPAGEOFF]
Lloh40:
	adrp	x9, _UART_IER_RDI@GOTPAGE
Lloh41:
	ldr	x9, [x9, _UART_IER_RDI@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh44:
	adrp	x9, _UART_IER_RTOIE@GOTPAGE
Lloh45:
	ldr	x9, [x9, _UART_IER_RTOIE@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh47:
	adrp	x9, _UART_IER_UUE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _UART_IER_UUE@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh50:
	adrp	x8, _TIOCM_OUT2@GOTPAGE
Lloh51:
	ldr	x8, [x8, _TIOCM_OUT2@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	x1, [x8, #8]
	mov	x0, x19
	mov	x2, #0
	bl	_sdio_uart_change_speed
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
Lloh53:
	adrp	x10, _CBAUD@GOTPAGE
Lloh54:
	ldr	x10, [x10, _CBAUD@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
Lloh56:
	adrp	x8, _TIOCM_RTS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _TIOCM_RTS@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _TIOCM_DTR@GOTPAGE
Lloh60:
	ldr	x9, [x9, _TIOCM_DTR@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_sdio_uart_set_mctrl
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
LBB0_11:
Lloh62:
	adrp	x10, _CRTSCTS@GOTPAGE
Lloh63:
	ldr	x10, [x10, _CRTSCTS@GOTPAGEOFF]
Lloh64:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_sdio_uart_get_mctrl
Lloh65:
	adrp	x8, _TIOCM_CTS@GOTPAGE
Lloh66:
	ldr	x8, [x8, _TIOCM_CTS@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x8]
	ldr	x8, [x19, #24]
	tst	w9, w0
	b.ne	LBB0_14
; %bb.13:
	mov	w9, #1
	str	w9, [x8]
LBB0_14:
	ldr	w0, [x22]
	add	x1, x8, #4
	bl	_clear_bit
	ldr	w0, [x19, #16]
	bl	_sdio_uart_irq
	mov	x0, x19
	bl	_sdio_uart_release_func
	mov	w21, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_TTY_IO_ERROR,4,2               ; @TTY_IO_ERROR
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UART_FCR,4,2                   ; @UART_FCR
	.comm	_UART_FCR_ENABLE_FIFO,4,2       ; @UART_FCR_ENABLE_FIFO
	.comm	_UART_FCR_CLEAR_RCVR,4,2        ; @UART_FCR_CLEAR_RCVR
	.comm	_UART_FCR_CLEAR_XMIT,4,2        ; @UART_FCR_CLEAR_XMIT
	.comm	_UART_LSR,4,2                   ; @UART_LSR
	.comm	_UART_RX,4,2                    ; @UART_RX
	.comm	_UART_IIR,4,2                   ; @UART_IIR
	.comm	_UART_MSR,4,2                   ; @UART_MSR
	.comm	_UART_LCR,4,2                   ; @UART_LCR
	.comm	_UART_LCR_WLEN8,4,2             ; @UART_LCR_WLEN8
	.comm	_UART_IER_RLSI,4,2              ; @UART_IER_RLSI
	.comm	_UART_IER_RDI,4,2               ; @UART_IER_RDI
	.comm	_UART_IER_RTOIE,4,2             ; @UART_IER_RTOIE
	.comm	_UART_IER_UUE,4,2               ; @UART_IER_UUE
	.comm	_TIOCM_OUT2,4,2                 ; @TIOCM_OUT2
	.comm	_CBAUD,4,2                      ; @CBAUD
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_TIOCM_CTS,4,2                  ; @TIOCM_CTS
	.no_dead_strip	_sdio_uart_startup
.subsections_via_symbols
