	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_uart_check_modem_status
_sdio_uart_check_modem_status:          ## @sdio_uart_check_modem_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_UART_MSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdio_in
	movq	_UART_MSR_ANY_DELTA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.1:
	movq	_UART_MSR_TERI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	incl	20(%rbx)
LBB0_3:
	movq	_UART_MSR_DDSR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	incl	16(%rbx)
LBB0_5:
	movq	_UART_MSR_DDCD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	incl	12(%rbx)
LBB0_7:
	movq	_UART_MSR_DCTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.8:
	incl	8(%rbx)
	movq	(%rbx), %rcx
	movq	8(%rcx), %rdx
	movq	_CRTSCTS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	je	LBB0_13
## %bb.9:
	movq	_UART_MSR_CTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	$0, (%rcx)
	je	LBB0_12
## %bb.10:
	testl	%eax, %edx
	je	LBB0_13
## %bb.11:
	movl	$0, (%rcx)
	movq	%rbx, %rdi
	callq	_sdio_uart_start_tx
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tty_wakeup                     ## TAILCALL
LBB0_12:
	testl	%eax, %edx
	je	LBB0_14
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_14:
	movl	$1, (%rcx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sdio_uart_stop_tx              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_MSR,4,2                   ## @UART_MSR
	.comm	_UART_MSR_ANY_DELTA,4,2         ## @UART_MSR_ANY_DELTA
	.comm	_UART_MSR_TERI,4,2              ## @UART_MSR_TERI
	.comm	_UART_MSR_DDSR,4,2              ## @UART_MSR_DDSR
	.comm	_UART_MSR_DDCD,4,2              ## @UART_MSR_DDCD
	.comm	_UART_MSR_DCTS,4,2              ## @UART_MSR_DCTS
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_UART_MSR_CTS,4,2               ## @UART_MSR_CTS
	.no_dead_strip	_sdio_uart_check_modem_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_uart_check_modem_status
_sdio_uart_check_modem_status:          ; @sdio_uart_check_modem_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _UART_MSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UART_MSR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sdio_in
Lloh3:
	adrp	x8, _UART_MSR_ANY_DELTA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UART_MSR_ANY_DELTA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.1:
Lloh6:
	adrp	x8, _UART_MSR_TERI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UART_MSR_TERI@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_3:
Lloh9:
	adrp	x8, _UART_MSR_DDSR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UART_MSR_DDSR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_5:
Lloh12:
	adrp	x8, _UART_MSR_DDCD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UART_MSR_DDCD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_7:
Lloh15:
	adrp	x8, _UART_MSR_DCTS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UART_MSR_DCTS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.8:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _CRTSCTS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _CRTSCTS@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.9:
Lloh21:
	adrp	x9, _UART_MSR_CTS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UART_MSR_CTS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w9, w9, w0
	ldr	w10, [x8]
	cbz	w10, LBB0_12
; %bb.10:
	cbz	w9, LBB0_13
; %bb.11:
	str	wzr, [x8]
	mov	x0, x19
	bl	_sdio_uart_start_tx
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tty_wakeup
LBB0_12:
	cbz	w9, LBB0_14
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w9, #1
	str	w9, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdio_uart_stop_tx
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_MSR,4,2                   ; @UART_MSR
	.comm	_UART_MSR_ANY_DELTA,4,2         ; @UART_MSR_ANY_DELTA
	.comm	_UART_MSR_TERI,4,2              ; @UART_MSR_TERI
	.comm	_UART_MSR_DDSR,4,2              ; @UART_MSR_DDSR
	.comm	_UART_MSR_DDCD,4,2              ; @UART_MSR_DDCD
	.comm	_UART_MSR_DCTS,4,2              ; @UART_MSR_DCTS
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_UART_MSR_CTS,4,2               ; @UART_MSR_CTS
	.no_dead_strip	_sdio_uart_check_modem_status
.subsections_via_symbols
