	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx_getsignals
_sx_getsignals:                         ## @sx_getsignals
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_hi_op@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sx_read_channel_byte
	movl	%eax, %r15d
	movq	_hi_ip@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sx_read_channel_byte
	movl	%eax, %r14d
	movq	_SX_DEBUG_MODEMSIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_OP_DTR@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%r13b
	movq	_OP_RTS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%r12b
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_tty_port_carrier_raised
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_hi_ip@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sx_read_channel_byte
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_hi_state@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sx_read_channel_byte
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str(%rip), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_sx_dprintk
	addq	$16, %rsp
	movq	_OP_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	je	LBB0_2
## %bb.1:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_OP_RTS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	je	LBB0_4
## %bb.3:
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_4:
	movq	_IP_CTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	je	LBB0_6
## %bb.5:
	movq	_TIOCM_CTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	movq	_IP_DCD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r14d, %edx
	je	LBB0_8
## %bb.7:
	movq	_TIOCM_CAR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_8:
	orl	%edx, %ecx
	orl	%eax, %r15d
	movq	_IP_DSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	je	LBB0_10
## %bb.9:
	movq	_TIOCM_DSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	orl	%ecx, %r15d
	movq	_IP_RI@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r14d
	je	LBB0_12
## %bb.11:
	movq	_TIOCM_RNG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_12:
	orl	%r14d, %eax
	orl	%eax, %r15d
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hi_op,4,2                      ## @hi_op
	.comm	_hi_ip,4,2                      ## @hi_ip
	.comm	_SX_DEBUG_MODEMSIGNALS,4,2      ## @SX_DEBUG_MODEMSIGNALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getsignals: %d/%d  (%d/%d) %02x/%02x\n"

	.comm	_OP_DTR,4,2                     ## @OP_DTR
	.comm	_OP_RTS,4,2                     ## @OP_RTS
	.comm	_hi_state,4,2                   ## @hi_state
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_IP_CTS,4,2                     ## @IP_CTS
	.comm	_TIOCM_CTS,4,2                  ## @TIOCM_CTS
	.comm	_IP_DCD,4,2                     ## @IP_DCD
	.comm	_TIOCM_CAR,4,2                  ## @TIOCM_CAR
	.comm	_IP_DSR,4,2                     ## @IP_DSR
	.comm	_TIOCM_DSR,4,2                  ## @TIOCM_DSR
	.comm	_IP_RI,4,2                      ## @IP_RI
	.comm	_TIOCM_RNG,4,2                  ## @TIOCM_RNG
	.no_dead_strip	_sx_getsignals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx_getsignals
_sx_getsignals:                         ; @sx_getsignals
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
Lloh0:
	adrp	x8, _hi_op@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hi_op@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sx_read_channel_byte
	mov	x20, x0
Lloh3:
	adrp	x27, _hi_ip@GOTPAGE
Lloh4:
	ldr	x27, [x27, _hi_ip@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x21
	bl	_sx_read_channel_byte
	mov	x19, x0
Lloh5:
	adrp	x8, _SX_DEBUG_MODEMSIGNALS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SX_DEBUG_MODEMSIGNALS@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
Lloh8:
	adrp	x28, _OP_DTR@GOTPAGE
Lloh9:
	ldr	x28, [x28, _OP_DTR@GOTPAGEOFF]
	ldr	w8, [x28]
	tst	w8, w20
	cset	w23, ne
Lloh10:
	adrp	x8, _OP_RTS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OP_RTS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w24, ne
	ldr	w25, [x21, #4]
	mov	x0, x21
	bl	_tty_port_carrier_raised
	mov	x26, x0
	ldr	w1, [x27]
	mov	x0, x21
	bl	_sx_read_channel_byte
	mov	x27, x0
Lloh13:
	adrp	x8, _hi_state@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hi_state@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sx_read_channel_byte
	mov	x7, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	bl	_sx_dprintk
Lloh18:
	adrp	x8, _TIOCM_DTR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TIOCM_DTR@GOTPAGEOFF]
	ldr	w9, [x28]
Lloh20:
	ldr	w8, [x8]
	tst	w9, w20
	csel	w8, wzr, w8, eq
Lloh21:
	adrp	x9, _TIOCM_RTS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TIOCM_RTS@GOTPAGEOFF]
Lloh23:
	adrp	x10, _OP_RTS@GOTPAGE
Lloh24:
	ldr	x10, [x10, _OP_RTS@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
Lloh26:
	ldr	w9, [x9]
	tst	w10, w20
	csel	w9, wzr, w9, eq
Lloh27:
	adrp	x10, _IP_CTS@GOTPAGE
Lloh28:
	ldr	x10, [x10, _IP_CTS@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh29:
	ldr	w9, [x10]
Lloh30:
	adrp	x10, _TIOCM_CTS@GOTPAGE
Lloh31:
	ldr	x10, [x10, _TIOCM_CTS@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _IP_DCD@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IP_DCD@GOTPAGEOFF]
Lloh35:
	adrp	x10, _TIOCM_CAR@GOTPAGE
Lloh36:
	ldr	x10, [x10, _TIOCM_CAR@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
Lloh39:
	adrp	x10, _IP_DSR@GOTPAGE
Lloh40:
	ldr	x10, [x10, _IP_DSR@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh41:
	ldr	w9, [x10]
Lloh42:
	adrp	x10, _TIOCM_DSR@GOTPAGE
Lloh43:
	ldr	x10, [x10, _TIOCM_DSR@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh45:
	adrp	x9, _IP_RI@GOTPAGE
Lloh46:
	ldr	x9, [x9, _IP_RI@GOTPAGEOFF]
Lloh47:
	adrp	x10, _TIOCM_RNG@GOTPAGE
Lloh48:
	ldr	x10, [x10, _TIOCM_RNG@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
Lloh50:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh26
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hi_op,4,2                      ; @hi_op
	.comm	_hi_ip,4,2                      ; @hi_ip
	.comm	_SX_DEBUG_MODEMSIGNALS,4,2      ; @SX_DEBUG_MODEMSIGNALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getsignals: %d/%d  (%d/%d) %02x/%02x\n"

	.comm	_OP_DTR,4,2                     ; @OP_DTR
	.comm	_OP_RTS,4,2                     ; @OP_RTS
	.comm	_hi_state,4,2                   ; @hi_state
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_IP_CTS,4,2                     ; @IP_CTS
	.comm	_TIOCM_CTS,4,2                  ; @TIOCM_CTS
	.comm	_IP_DCD,4,2                     ; @IP_DCD
	.comm	_TIOCM_CAR,4,2                  ; @TIOCM_CAR
	.comm	_IP_DSR,4,2                     ; @IP_DSR
	.comm	_TIOCM_DSR,4,2                  ; @TIOCM_DSR
	.comm	_IP_RI,4,2                      ; @IP_RI
	.comm	_TIOCM_RNG,4,2                  ; @TIOCM_RNG
	.no_dead_strip	_sx_getsignals
.subsections_via_symbols
