	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx_check_modem_signals
_sx_check_modem_signals:                ## @sx_check_modem_signals
	.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, %r15
	callq	_sx_read_channel_byte
	movl	%eax, %ebx
	movq	_SX_DEBUG_MODEMSIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %r13d
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_tty_port_carrier_raised
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_sx_dprintk
	movq	_ST_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	notl	%eax
	andl	%eax, %ebx
	movq	_SX_DEBUG_MODEMSIGNALS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_sx_dprintk
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_sx_write_channel_byte
	movq	%r14, %rdi
	callq	_gs_got_break
	jmp	LBB0_3
LBB0_1:
	movq	_SX_DEBUG_MODEMSIGNALS@GOTPCREL(%rip), %r12
LBB0_3:
	movq	_ST_DCD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_13
## %bb.4:
	notl	%eax
	andl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_sx_dprintk
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_sx_write_channel_byte
	movq	%r14, %rdi
	callq	_tty_port_carrier_raised
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_sx_dprintk
	cmpl	(%r15), %ebx
	jne	LBB0_5
## %bb.12:
	movl	(%r12), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_11
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, (%r15)
	movq	%r14, %rdi
	callq	_tty_port_carrier_raised
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	_hi_hstat@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sx_read_channel_byte
	movq	_HS_IDLE_CLOSED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_CLOCAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
LBB0_8:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_CLOCAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r12), %edi
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.10:
	leaq	L_.str.7(%rip), %rsi
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sx_dprintk                     ## TAILCALL
LBB0_15:
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_sx_dprintk
	movq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_hangup                     ## TAILCALL
LBB0_14:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_sx_dprintk
	addq	$16, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SX_DEBUG_MODEMSIGNALS,4,2      ## @SX_DEBUG_MODEMSIGNALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checking modem signals (%d/%d)\n"

	.comm	_ST_BREAK,4,2                   ## @ST_BREAK
L_.str.1:                               ## @.str.1
	.asciz	"got a break.\n"

	.comm	_ST_DCD,4,2                     ## @ST_DCD
L_.str.2:                               ## @.str.2
	.asciz	"got a DCD change.\n"

L_.str.3:                               ## @.str.3
	.asciz	"DCD is now %d\n"

	.comm	_hi_hstat,4,2                   ## @hi_hstat
	.comm	_HS_IDLE_CLOSED,4,2             ## @HS_IDLE_CLOSED
	.comm	_CLOCAL,4,2                     ## @CLOCAL
L_.str.4:                               ## @.str.4
	.asciz	"DCD active, unblocking open\n"

L_.str.5:                               ## @.str.5
	.asciz	"DCD raised. Ignoring.\n"

L_.str.6:                               ## @.str.6
	.asciz	"DCD dropped. hanging up....\n"

L_.str.7:                               ## @.str.7
	.asciz	"DCD dropped. ignoring.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Hmmm. card told us DCD changed, but it didn't.\n"

	.no_dead_strip	_sx_check_modem_signals
.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_signals
_sx_check_modem_signals:                ; @sx_check_modem_signals
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_sx_read_channel_byte
	mov	x21, x0
Lloh0:
	adrp	x23, _SX_DEBUG_MODEMSIGNALS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SX_DEBUG_MODEMSIGNALS@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x20, x19
	ldr	w24, [x20], #8
	mov	x0, x20
	bl	_tty_port_carrier_raised
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_sx_dprintk
Lloh4:
	adrp	x8, _ST_BREAK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ST_BREAK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	bic	w21, w21, w8
	ldr	w0, [x23]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sx_dprintk
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_sx_write_channel_byte
	mov	x0, x20
	bl	_gs_got_break
LBB0_2:
Lloh9:
	adrp	x8, _ST_DCD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ST_DCD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.3:
	bic	w21, w21, w8
	ldr	w0, [x23]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sx_dprintk
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_sx_write_channel_byte
	mov	x0, x20
	bl	_tty_port_carrier_raised
	mov	x21, x0
	ldr	w0, [x23]
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sx_dprintk
	ldr	w8, [x19]
	cmp	w21, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x23]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_12
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	str	w21, [x19]
	mov	x0, x20
	bl	_tty_port_carrier_raised
	cbz	w0, LBB0_10
; %bb.7:
Lloh18:
	adrp	x8, _hi_hstat@GOTPAGE
Lloh19:
	ldr	x8, [x8, _hi_hstat@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sx_read_channel_byte
Lloh21:
	adrp	x8, _HS_IDLE_CLOSED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HS_IDLE_CLOSED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _CLOCAL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CLOCAL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_9:
	ldr	w0, [x23]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _CLOCAL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CLOCAL@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	w0, [x23]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_sx_dprintk
LBB0_13:
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_sx_dprintk
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_tty_hangup
LBB0_14:
	ldr	w0, [x23]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sx_dprintk
	add	x0, x19, #16
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_wake_up_interruptible
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SX_DEBUG_MODEMSIGNALS,4,2      ; @SX_DEBUG_MODEMSIGNALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checking modem signals (%d/%d)\n"

	.comm	_ST_BREAK,4,2                   ; @ST_BREAK
l_.str.1:                               ; @.str.1
	.asciz	"got a break.\n"

	.comm	_ST_DCD,4,2                     ; @ST_DCD
l_.str.2:                               ; @.str.2
	.asciz	"got a DCD change.\n"

l_.str.3:                               ; @.str.3
	.asciz	"DCD is now %d\n"

	.comm	_hi_hstat,4,2                   ; @hi_hstat
	.comm	_HS_IDLE_CLOSED,4,2             ; @HS_IDLE_CLOSED
	.comm	_CLOCAL,4,2                     ; @CLOCAL
l_.str.4:                               ; @.str.4
	.asciz	"DCD active, unblocking open\n"

l_.str.5:                               ; @.str.5
	.asciz	"DCD raised. Ignoring.\n"

l_.str.6:                               ; @.str.6
	.asciz	"DCD dropped. hanging up....\n"

l_.str.7:                               ; @.str.7
	.asciz	"DCD dropped. ignoring.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Hmmm. card told us DCD changed, but it didn't.\n"

	.no_dead_strip	_sx_check_modem_signals
.subsections_via_symbols
