	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_cd1400setsignals
_stl_cd1400setsignals:                  ## @stl_cd1400setsignals
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_pr_debug
	xorl	%eax, %eax
	testl	%r14d, %r14d
	movq	_MSVR1_DTR@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %r12d
	cmovlel	%eax, %r12d
	movq	_MSVR2_RTS@GOTPCREL(%rip), %rax
	movb	(%rax), %r13b
	movq	_brd_lock@GOTPCREL(%rip), %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
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.1:
	movzbl	%r13b, %eax
	cmovel	%r15d, %eax
	movq	_MSVR2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_stl_cd1400setreg
LBB0_2:
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.3:
	movq	_MSVR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r12b, %edx
	movq	%rbx, %rdi
	callq	_stl_cd1400setreg
LBB0_4:
	movl	4(%rbx), %edi
	callq	_BRDDISABLE
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stl_cd1400setsignals(portp=%p,dtr=%d,rts=%d)\n"

	.comm	_MSVR1_DTR,1,0                  ## @MSVR1_DTR
	.comm	_MSVR2_RTS,1,0                  ## @MSVR2_RTS
	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_CAR,4,2                        ## @CAR
	.comm	_MSVR2,4,2                      ## @MSVR2
	.comm	_MSVR1,4,2                      ## @MSVR1
	.no_dead_strip	_stl_cd1400setsignals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_cd1400setsignals
_stl_cd1400setsignals:                  ; @stl_cd1400setsignals
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_pr_debug
Lloh2:
	adrp	x8, _MSVR1_DTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSVR1_DTR@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w20, #0
	csel	w22, w8, wzr, gt
Lloh4:
	adrp	x8, _MSVR2_RTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSVR2_RTS@GOTPAGEOFF]
	ldrb	w23, [x8]
Lloh6:
	adrp	x0, _brd_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldp	w0, w1, [x19, #4]
	bl	_BRDENABLE
Lloh8:
	adrp	x8, _CAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x19]
	and	w2, w8, #0x3
	mov	x0, x19
	bl	_stl_cd1400setreg
	tbnz	w21, #31, LBB0_2
; %bb.1:
	cmp	w21, #0
	csel	w2, wzr, w23, eq
Lloh11:
	adrp	x8, _MSVR2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSVR2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stl_cd1400setreg
LBB0_2:
	tbnz	w20, #31, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _MSVR1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSVR1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	and	w2, w22, #0xff
	mov	x0, x19
	bl	_stl_cd1400setreg
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_BRDDISABLE
Lloh17:
	adrp	x0, _brd_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_cd1400setsignals(portp=%p,dtr=%d,rts=%d)\n"

	.comm	_MSVR1_DTR,1,0                  ; @MSVR1_DTR
	.comm	_MSVR2_RTS,1,0                  ; @MSVR2_RTS
	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_CAR,4,2                        ; @CAR
	.comm	_MSVR2,4,2                      ; @MSVR2
	.comm	_MSVR1,4,2                      ; @MSVR1
	.no_dead_strip	_stl_cd1400setsignals
.subsections_via_symbols
