	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_sc26198setsignals
_stl_sc26198setsignals:                 ## @stl_sc26198setsignals
	.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, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_pr_debug
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	movq	_IPR_DTR@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movl	$0, %r13d
	cmovgl	%eax, %r13d
	cmovel	%eax, %ebx
	cmovel	%r12d, %r13d
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	jle	LBB0_4
## %bb.3:
	movq	_IPR_RTS@GOTPCREL(%rip), %rax
	orb	(%rax), %r13b
	jmp	LBB0_4
LBB0_1:
	movq	_IPR_RTS@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
LBB0_4:
	movq	_brd_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %edi
	movl	4(%r15), %esi
	callq	_BRDENABLE
	movq	_IOPIOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_stl_sc26198getreg
	notb	%bl
	andb	%al, %bl
	orb	%r13b, %bl
	movzbl	%bl, %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_stl_sc26198setreg
	movl	(%r15), %edi
	callq	_BRDDISABLE
	movq	%r14, %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_sc26198setsignals(portp=%p,dtr=%d,rts=%d)\n"

	.comm	_IPR_DTR,1,0                    ## @IPR_DTR
	.comm	_IPR_RTS,1,0                    ## @IPR_RTS
	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_IOPIOR,4,2                     ## @IOPIOR
	.no_dead_strip	_stl_sc26198setsignals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_sc26198setsignals
_stl_sc26198setsignals:                 ; @stl_sc26198setsignals
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_pr_debug
Lloh2:
	adrp	x8, _IPR_DTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPR_DTR@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w21, #0
	csel	w9, w8, wzr, gt
	csel	w22, w8, wzr, eq
	csel	w23, wzr, w9, eq
	cbz	w20, LBB0_3
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _IPR_RTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IPR_RTS@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w23, w8, w23
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _IPR_RTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPR_RTS@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w22, w8, w22
LBB0_4:
Lloh8:
	adrp	x20, _brd_lock@GOTPAGE
Lloh9:
	ldr	x20, [x20, _brd_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldp	w0, w1, [x19]
	bl	_BRDENABLE
Lloh10:
	adrp	x8, _IOPIOR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IOPIOR@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198getreg
	bic	w8, w0, w22
	orr	w8, w8, w23
	and	w2, w8, #0xff
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198setreg
	ldr	w0, [x19]
	bl	_BRDDISABLE
	mov	x0, x20
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_sc26198setsignals(portp=%p,dtr=%d,rts=%d)\n"

	.comm	_IPR_DTR,1,0                    ; @IPR_DTR
	.comm	_IPR_RTS,1,0                    ; @IPR_RTS
	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_IOPIOR,4,2                     ; @IOPIOR
	.no_dead_strip	_stl_sc26198setsignals
.subsections_via_symbols
