	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx_check_modem
_sx_check_modem:                        ## @sx_check_modem
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SX_DEBUG_SIGNALS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dprintk
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_sx_get_port
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	32(%rax), %r15
	movq	_CD186x_MCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_sx_in
	movq	_MCR_CDCHG@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%ecx, %eax
	je	LBB0_5
## %bb.2:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dprintk
	movq	_CD186x_MSVR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sx_in
	movq	_MSVR_CD@GOTPCREL(%rip), %rcx
	movl	(%r13), %edi
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	callq	_dprintk
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.4(%rip), %rsi
	callq	_dprintk
	movq	%r15, %rdi
	callq	_tty_hangup
LBB0_5:
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sx_out                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SX_DEBUG_SIGNALS,4,2           ## @SX_DEBUG_SIGNALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Modem intr. "

L_.str.1:                               ## @.str.1
	.asciz	"Modem"

	.comm	_CD186x_MCR,4,2                 ## @CD186x_MCR
	.comm	_MCR_CDCHG,1,0                  ## @MCR_CDCHG
L_.str.2:                               ## @.str.2
	.asciz	"CD just changed... "

	.comm	_CD186x_MSVR,4,2                ## @CD186x_MSVR
	.comm	_MSVR_CD,4,2                    ## @MSVR_CD
L_.str.3:                               ## @.str.3
	.asciz	"Waking up guys in open.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Sending HUP.\n"

	.comm	_CD186x_IER,4,2                 ## @CD186x_IER
	.comm	_IER_TXRDY,4,2                  ## @IER_TXRDY
	.comm	_MCR_CTSCHG,1,0                 ## @MCR_CTSCHG
	.comm	_MCR_DSSXHG,1,0                 ## @MCR_DSSXHG
	.comm	_MSVR_CTS,4,2                   ## @MSVR_CTS
	.comm	_MSVR_DSR,4,2                   ## @MSVR_DSR
	.no_dead_strip	_sx_check_modem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx_check_modem
_sx_check_modem:                        ; @sx_check_modem
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x23, _SX_DEBUG_SIGNALS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SX_DEBUG_SIGNALS@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dprintk
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sx_get_port
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0, #32]
Lloh6:
	adrp	x22, _CD186x_MCR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CD186x_MCR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sx_in
Lloh8:
	adrp	x8, _MCR_CDCHG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MCR_CDCHG@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w0, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	w0, [x23]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dprintk
Lloh12:
	adrp	x8, _CD186x_MSVR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CD186x_MSVR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sx_in
	mov	x8, x0
Lloh15:
	adrp	x9, _MSVR_CD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MSVR_CD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w0, [x23]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dprintk
	add	x0, x20, #24
	bl	_wake_up_interruptible
	b	LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dprintk
	mov	x0, x21
	bl	_tty_hangup
LBB0_6:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sx_out
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SX_DEBUG_SIGNALS,4,2           ; @SX_DEBUG_SIGNALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Modem intr. "

l_.str.1:                               ; @.str.1
	.asciz	"Modem"

	.comm	_CD186x_MCR,4,2                 ; @CD186x_MCR
	.comm	_MCR_CDCHG,1,0                  ; @MCR_CDCHG
l_.str.2:                               ; @.str.2
	.asciz	"CD just changed... "

	.comm	_CD186x_MSVR,4,2                ; @CD186x_MSVR
	.comm	_MSVR_CD,4,2                    ; @MSVR_CD
l_.str.3:                               ; @.str.3
	.asciz	"Waking up guys in open.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Sending HUP.\n"

	.comm	_CD186x_IER,4,2                 ; @CD186x_IER
	.comm	_IER_TXRDY,4,2                  ; @IER_TXRDY
	.comm	_MCR_CTSCHG,1,0                 ; @MCR_CTSCHG
	.comm	_MCR_DSSXHG,1,0                 ; @MCR_DSSXHG
	.comm	_MSVR_CTS,4,2                   ; @MSVR_CTS
	.comm	_MSVR_DSR,4,2                   ; @MSVR_DSR
	.no_dead_strip	_sx_check_modem
.subsections_via_symbols
