	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_UART_MSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdio_in
	movl	%eax, %ebx
	movq	_UART_MSR_ANY_DELTA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.1:
	movq	_UART_MSR_TERI@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	incl	16(%r14)
LBB0_3:
	movq	_UART_MSR_DDSR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	incl	12(%r14)
LBB0_5:
	movq	_UART_MSR_DDCD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.6:
	incl	8(%r14)
	movq	_UART_MSR_DCD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tty_port_tty_hangup
LBB0_9:
	movq	_UART_MSR_DCTS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.10:
	incl	4(%r14)
	movq	%r14, %rdi
	callq	_tty_port_tty_get
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	%r15, %rdi
	callq	_C_CRTSCTS
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	_UART_MSR_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$0, (%r15)
	je	LBB0_15
## %bb.13:
	testl	%ebx, %eax
	je	LBB0_17
## %bb.14:
	movl	$0, (%r15)
	movq	%r14, %rdi
	callq	_sdio_uart_start_tx
	movq	%r15, %rdi
	callq	_tty_wakeup
	jmp	LBB0_17
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testl	%ebx, %eax
	jne	LBB0_17
## %bb.16:
	movl	$1, (%r15)
	movq	%r14, %rdi
	callq	_sdio_uart_stop_tx
LBB0_17:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_kref_put                   ## 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_DCD,4,2               ## @UART_MSR_DCD
	.comm	_UART_MSR_DCTS,4,2              ## @UART_MSR_DCTS
	.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	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	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_15
; %bb.1:
	mov	x20, x0
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, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_3:
Lloh9:
	adrp	x8, _UART_MSR_DDSR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UART_MSR_DDSR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_5:
Lloh12:
	adrp	x8, _UART_MSR_DDCD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UART_MSR_DDCD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.6:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
Lloh15:
	adrp	x8, _UART_MSR_DCD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UART_MSR_DCD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	x0, x19
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	bl	_wake_up_interruptible
	b	LBB0_9
LBB0_8:
	mov	w1, #0
	bl	_tty_port_tty_hangup
LBB0_9:
Lloh18:
	adrp	x8, _UART_MSR_DCTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UART_MSR_DCTS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.10:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_tty_port_tty_get
	mov	x21, x0
	cbz	x0, LBB0_18
; %bb.11:
	mov	x0, x21
	bl	_C_CRTSCTS
	cbz	x0, LBB0_18
; %bb.12:
Lloh21:
	adrp	x8, _UART_MSR_CTS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _UART_MSR_CTS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w8, w8, w20
	ldr	w9, [x21]
	cbz	w9, LBB0_16
; %bb.13:
	cbz	w8, LBB0_18
; %bb.14:
	str	wzr, [x21]
	mov	x0, x19
	bl	_sdio_uart_start_tx
	mov	x0, x21
	bl	_tty_wakeup
	b	LBB0_18
LBB0_15:
	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_16:
	cbnz	w8, LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x19
	bl	_sdio_uart_stop_tx
LBB0_18:
	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
	b	_tty_kref_put
	.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_DCD,4,2               ; @UART_MSR_DCD
	.comm	_UART_MSR_DCTS,4,2              ; @UART_MSR_DCTS
	.comm	_UART_MSR_CTS,4,2               ; @UART_MSR_CTS
	.no_dead_strip	_sdio_uart_check_modem_status
.subsections_via_symbols
