	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxser_check_modem_status
_mxser_check_modem_status:              ## @mxser_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_UART_MSR_TERI@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	incl	60(%r15)
LBB0_2:
	movq	_UART_MSR_DDSR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	incl	56(%r15)
LBB0_4:
	movq	_UART_MSR_DDCD@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_6
## %bb.5:
	incl	52(%r15)
LBB0_6:
	movq	_UART_MSR_DCTS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	incl	48(%r15)
LBB0_8:
	movl	%ebx, 44(%r15)
	leaq	40(%r15), %rdi
	callq	_wake_up_interruptible
	movl	32(%r15), %eax
	movq	_ASYNC_CHECK_CD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	testl	%ebx, (%r12)
	je	LBB0_12
## %bb.10:
	movq	_UART_MSR_DCD@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_12
## %bb.11:
	leaq	36(%r15), %rdi
	callq	_wake_up_interruptible
	movl	32(%r15), %eax
LBB0_12:
	movq	_ASYNC_CTS_FLOW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.13:
	cmpl	$0, (%r14)
	movq	_UART_MSR_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_19
## %bb.14:
	testl	%ebx, %eax
	je	LBB0_22
## %bb.15:
	movl	$0, (%r14)
	movq	(%r15), %rax
	movq	_PORT_16550A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.16:
	movq	24(%r15), %rax
	cmpl	$0, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	_UART_IER_THRI@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	notl	%edi
	andl	8(%r15), %edi
	movq	_UART_IER@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	16(%r15), %rsi
	callq	_outb
	movl	8(%r15), %edi
	orl	(%r12), %edi
	movl	%edi, 8(%r15)
	movq	(%rbx), %rsi
	addq	16(%r15), %rsi
	callq	_outb
LBB0_18:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_wakeup                     ## TAILCALL
LBB0_19:
	testl	%ebx, %eax
	jne	LBB0_22
## %bb.20:
	movl	$1, (%r14)
	movq	(%r15), %rax
	movq	_PORT_16550A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.21:
	movq	24(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_23
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_UART_IER_THRI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	8(%r15), %edi
	movl	%edi, 8(%r15)
	movq	_UART_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_ASYNC_CTS_FLOW,4,2             ## @ASYNC_CTS_FLOW
	.comm	_UART_MSR_CTS,4,2               ## @UART_MSR_CTS
	.comm	_PORT_16550A,8,3                ## @PORT_16550A
	.comm	_UART_IER_THRI,4,2              ## @UART_IER_THRI
	.comm	_UART_IER,8,3                   ## @UART_IER
	.no_dead_strip	_mxser_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 mxser_check_modem_status
_mxser_check_modem_status:              ; @mxser_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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _UART_MSR_TERI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UART_MSR_TERI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #60]
	add	w8, w8, #1
	str	w8, [x19, #60]
LBB0_2:
Lloh3:
	adrp	x8, _UART_MSR_DDSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UART_MSR_DDSR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #56]
	add	w8, w8, #1
	str	w8, [x19, #56]
LBB0_4:
Lloh6:
	adrp	x22, _UART_MSR_DDCD@GOTPAGE
Lloh7:
	ldr	x22, [x22, _UART_MSR_DDCD@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x19, #52]
	add	w8, w8, #1
	str	w8, [x19, #52]
LBB0_6:
Lloh8:
	adrp	x8, _UART_MSR_DCTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UART_MSR_DCTS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
LBB0_8:
	str	w21, [x19, #44]
	add	x0, x19, #40
	bl	_wake_up_interruptible
	ldr	w8, [x19, #32]
Lloh11:
	adrp	x9, _ASYNC_CHECK_CD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ASYNC_CHECK_CD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	ldr	w9, [x22]
	tst	w9, w21
	b.eq	LBB0_12
; %bb.10:
Lloh14:
	adrp	x9, _UART_MSR_DCD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UART_MSR_DCD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_12
; %bb.11:
	add	x0, x19, #36
	bl	_wake_up_interruptible
	ldr	w8, [x19, #32]
LBB0_12:
Lloh17:
	adrp	x9, _ASYNC_CTS_FLOW@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ASYNC_CTS_FLOW@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.13:
	ldr	w9, [x20]
Lloh20:
	adrp	x8, _UART_MSR_CTS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UART_MSR_CTS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	and	w8, w8, w21
	cbz	w9, LBB0_19
; %bb.14:
	cbz	w8, LBB0_22
; %bb.15:
	str	wzr, [x20]
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _PORT_16550A@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PORT_16550A@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.16:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cbnz	w8, LBB0_18
; %bb.17:
	ldr	w8, [x19, #8]
Lloh26:
	adrp	x21, _UART_IER_THRI@GOTPAGE
Lloh27:
	ldr	x21, [x21, _UART_IER_THRI@GOTPAGEOFF]
	ldr	w9, [x21]
	bic	w0, w8, w9
	ldr	x8, [x19, #16]
Lloh28:
	adrp	x22, _UART_IER@GOTPAGE
Lloh29:
	ldr	x22, [x22, _UART_IER@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_outb
	ldr	w8, [x21]
	ldr	w9, [x19, #8]
	orr	w0, w9, w8
	str	w0, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_outb
LBB0_18:
	mov	x0, x20
	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_wakeup
LBB0_19:
	cbnz	w8, LBB0_22
; %bb.20:
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x19]
Lloh30:
	adrp	x9, _PORT_16550A@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PORT_16550A@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.21:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_23
LBB0_22:
	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_23:
Lloh33:
	adrp	x8, _UART_IER_THRI@GOTPAGE
Lloh34:
	ldr	x8, [x8, _UART_IER_THRI@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w0, w9, w8
	str	w0, [x19, #8]
	ldr	x8, [x19, #16]
Lloh36:
	adrp	x9, _UART_IER@GOTPAGE
Lloh37:
	ldr	x9, [x9, _UART_IER@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_outb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_ASYNC_CTS_FLOW,4,2             ; @ASYNC_CTS_FLOW
	.comm	_UART_MSR_CTS,4,2               ; @UART_MSR_CTS
	.comm	_PORT_16550A,8,3                ; @PORT_16550A
	.comm	_UART_IER_THRI,4,2              ; @UART_IER_THRI
	.comm	_UART_IER,8,3                   ; @UART_IER
	.no_dead_strip	_mxser_check_modem_status
.subsections_via_symbols
