	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_modem_status
_check_modem_status:                    ## @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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_UART_ESI_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ESI_GET_UART_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_serial_out
	movq	_UART_ESI_STAT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_serial_in
	movl	%eax, %ebx
	movq	_UART_MSR_ANY_DELTA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.1:
	movq	_UART_MSR_TERI@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	incl	32(%r14)
LBB0_3:
	movq	_UART_MSR_DDSR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	incl	28(%r14)
LBB0_5:
	movq	_UART_MSR_DDCD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	incl	24(%r14)
LBB0_7:
	movq	_UART_MSR_DCTS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	incl	20(%r14)
LBB0_9:
	leaq	12(%r14), %rdi
	callq	_wake_up_interruptible
LBB0_10:
	movq	_ASYNC_CHECK_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_14
## %bb.11:
	movq	_UART_MSR_DDCD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.12:
	movq	_UART_MSR_DCD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.15:
	addq	$8, %r14
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	movl	4(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tty_hangup                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_ESI_CMD1,4,2              ## @UART_ESI_CMD1
	.comm	_ESI_GET_UART_STAT,4,2          ## @ESI_GET_UART_STAT
	.comm	_UART_ESI_STAT2,4,2             ## @UART_ESI_STAT2
	.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	_ASYNC_CHECK_CD,4,2             ## @ASYNC_CHECK_CD
	.comm	_UART_MSR_DCD,4,2               ## @UART_MSR_DCD
	.no_dead_strip	_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 check_modem_status
_check_modem_status:                    ; @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_ESI_CMD1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UART_ESI_CMD1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ESI_GET_UART_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESI_GET_UART_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_serial_out
Lloh6:
	adrp	x8, _UART_ESI_STAT2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UART_ESI_STAT2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_serial_in
	mov	x20, x0
Lloh9:
	adrp	x8, _UART_MSR_ANY_DELTA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UART_MSR_ANY_DELTA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x21, _UART_MSR_DDCD@GOTPAGE
Lloh13:
	ldr	x21, [x21, _UART_MSR_DDCD@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.1:
Lloh14:
	adrp	x8, _UART_MSR_TERI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UART_MSR_TERI@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
LBB0_3:
Lloh17:
	adrp	x8, _UART_MSR_DDSR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UART_MSR_DDSR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_5:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_7:
Lloh20:
	adrp	x8, _UART_MSR_DCTS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UART_MSR_DCTS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_9:
	add	x0, x19, #12
	bl	_wake_up_interruptible
LBB0_10:
	ldr	w8, [x19]
Lloh23:
	adrp	x9, _ASYNC_CHECK_CD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ASYNC_CHECK_CD@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.11:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.12:
Lloh26:
	adrp	x8, _UART_MSR_DCD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UART_MSR_DCD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.13:
	add	x0, x19, #8
	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	_wake_up_interruptible
LBB0_14:
	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_15:
	ldr	w0, [x19, #4]
	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_hangup
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_ESI_CMD1,4,2              ; @UART_ESI_CMD1
	.comm	_ESI_GET_UART_STAT,4,2          ; @ESI_GET_UART_STAT
	.comm	_UART_ESI_STAT2,4,2             ; @UART_ESI_STAT2
	.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	_ASYNC_CHECK_CD,4,2             ; @ASYNC_CHECK_CD
	.comm	_UART_MSR_DCD,4,2               ; @UART_MSR_DCD
	.no_dead_strip	_check_modem_status
.subsections_via_symbols
