	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_cd1400getsignals
_stl_cd1400getsignals:                  ## @stl_cd1400getsignals
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_debug
	movq	_brd_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	4(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_BRDENABLE
	movq	_CAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	andl	$3, %edx
	movq	%rbx, %rdi
	callq	_stl_cd1400setreg
	movq	_MSVR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stl_cd1400getreg
	movl	%eax, %r12d
	movq	_MSVR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stl_cd1400getreg
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	callq	_BRDDISABLE
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_MSVR1_DCD@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	$0, %edx
	testb	%r12b, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_TIOCM_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	movq	_MSVR1_CTS@GOTPCREL(%rip), %rsi
	movl	$0, %eax
	testb	%r12b, (%rsi)
	je	LBB0_4
## %bb.3:
	movq	_TIOCM_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%edx, %eax
	movq	_MSVR1_DTR@GOTPCREL(%rip), %rsi
	movl	$0, %edx
	testb	%r12b, (%rsi)
	je	LBB0_6
## %bb.5:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%edx, %eax
	movq	_MSVR2_RTS@GOTPCREL(%rip), %rdx
	testb	%r14b, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	movq	_TIOCM_DSR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	orl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stl_cd1400getsignals(portp=%p)\n"

	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_CAR,4,2                        ## @CAR
	.comm	_MSVR1,4,2                      ## @MSVR1
	.comm	_MSVR2,4,2                      ## @MSVR2
	.comm	_MSVR1_DCD,1,0                  ## @MSVR1_DCD
	.comm	_TIOCM_CD,4,2                   ## @TIOCM_CD
	.comm	_MSVR1_CTS,1,0                  ## @MSVR1_CTS
	.comm	_TIOCM_CTS,4,2                  ## @TIOCM_CTS
	.comm	_MSVR1_DTR,1,0                  ## @MSVR1_DTR
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_MSVR2_RTS,1,0                  ## @MSVR2_RTS
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_TIOCM_DSR,4,2                  ## @TIOCM_DSR
	.comm	_MSVR1_DSR,1,0                  ## @MSVR1_DSR
	.comm	_MSVR1_RI,1,0                   ## @MSVR1_RI
	.comm	_TIOCM_RI,4,2                   ## @TIOCM_RI
	.no_dead_strip	_stl_cd1400getsignals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_cd1400getsignals
_stl_cd1400getsignals:                  ; @stl_cd1400getsignals
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
Lloh2:
	adrp	x20, _brd_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _brd_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldp	w0, w1, [x19, #4]
	bl	_BRDENABLE
Lloh4:
	adrp	x8, _CAR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CAR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w8, [x19]
	and	w2, w8, #0x3
	mov	x0, x19
	bl	_stl_cd1400setreg
Lloh7:
	adrp	x8, _MSVR1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSVR1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stl_cd1400getreg
	mov	x21, x0
Lloh10:
	adrp	x8, _MSVR2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSVR2@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stl_cd1400getreg
	mov	x22, x0
	ldr	w0, [x19, #4]
	bl	_BRDDISABLE
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh13:
	adrp	x8, _MSVR1_DCD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSVR1_DCD@GOTPAGEOFF]
Lloh15:
	adrp	x9, _TIOCM_CD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TIOCM_CD@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	tst	w8, w21
	csel	w8, wzr, w9, eq
Lloh18:
	adrp	x9, _MSVR1_CTS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MSVR1_CTS@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh20:
	adrp	x10, _TIOCM_CTS@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TIOCM_CTS@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _MSVR1_DTR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MSVR1_DTR@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh25:
	adrp	x10, _TIOCM_DTR@GOTPAGE
Lloh26:
	ldr	x10, [x10, _TIOCM_DTR@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _MSVR2_RTS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MSVR2_RTS@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh30:
	adrp	x10, _TIOCM_RTS@GOTPAGE
Lloh31:
	ldr	x10, [x10, _TIOCM_RTS@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	tst	w9, w22
	csel	w9, wzr, w10, eq
Lloh33:
	adrp	x10, _TIOCM_DSR@GOTPAGE
Lloh34:
	ldr	x10, [x10, _TIOCM_DSR@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w8, w8, w10
	orr	w0, w8, w9
	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
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_cd1400getsignals(portp=%p)\n"

	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_CAR,4,2                        ; @CAR
	.comm	_MSVR1,4,2                      ; @MSVR1
	.comm	_MSVR2,4,2                      ; @MSVR2
	.comm	_MSVR1_DCD,1,0                  ; @MSVR1_DCD
	.comm	_TIOCM_CD,4,2                   ; @TIOCM_CD
	.comm	_MSVR1_CTS,1,0                  ; @MSVR1_CTS
	.comm	_TIOCM_CTS,4,2                  ; @TIOCM_CTS
	.comm	_MSVR1_DTR,1,0                  ; @MSVR1_DTR
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_MSVR2_RTS,1,0                  ; @MSVR2_RTS
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_TIOCM_DSR,4,2                  ; @TIOCM_DSR
	.comm	_MSVR1_DSR,1,0                  ; @MSVR1_DSR
	.comm	_MSVR1_RI,1,0                   ; @MSVR1_RI
	.comm	_TIOCM_RI,4,2                   ; @TIOCM_RI
	.no_dead_strip	_stl_cd1400getsignals
.subsections_via_symbols
