	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx_setsignals
_sx_setsignals:                         ## @sx_setsignals
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_func_enter2
	movq	_hi_op@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sx_read_channel_byte
	testl	%r15d, %r15d
	js	LBB0_4
## %bb.1:
	movq	_OP_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_3
## %bb.2:
	orl	%ecx, %eax
LBB0_4:
	testl	%r14d, %r14d
	js	LBB0_8
LBB0_5:
	movq	_OP_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_7
## %bb.6:
	orl	%ecx, %eax
	jmp	LBB0_8
LBB0_3:
	notl	%ecx
	andl	%ecx, %eax
	testl	%r14d, %r14d
	jns	LBB0_5
	jmp	LBB0_8
LBB0_7:
	notl	%ecx
	andl	%ecx, %eax
LBB0_8:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_sx_write_channel_byte
	movq	_SX_DEBUG_MODEMSIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_sx_dprintk
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_func_exit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hi_op,4,2                      ## @hi_op
	.comm	_OP_DTR,4,2                     ## @OP_DTR
	.comm	_OP_RTS,4,2                     ## @OP_RTS
	.comm	_SX_DEBUG_MODEMSIGNALS,4,2      ## @SX_DEBUG_MODEMSIGNALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setsignals: %d/%d\n"

	.no_dead_strip	_sx_setsignals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx_setsignals
_sx_setsignals:                         ; @sx_setsignals
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_func_enter2
Lloh0:
	adrp	x22, _hi_op@GOTPAGE
Lloh1:
	ldr	x22, [x22, _hi_op@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_sx_read_channel_byte
	mov	x2, x0
	tbnz	w20, #31, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _OP_DTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OP_DTR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w9, w2, w8
	orr	w8, w8, w2
	cmp	w20, #0
	csel	w2, w9, w8, eq
LBB0_2:
	tbnz	w19, #31, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _OP_RTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OP_RTS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w9, w2, w8
	orr	w8, w8, w2
	cmp	w19, #0
	csel	w2, w9, w8, eq
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_sx_write_channel_byte
Lloh8:
	adrp	x8, _SX_DEBUG_MODEMSIGNALS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SX_DEBUG_MODEMSIGNALS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_sx_dprintk
	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
	b	_func_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hi_op,4,2                      ; @hi_op
	.comm	_OP_DTR,4,2                     ; @OP_DTR
	.comm	_OP_RTS,4,2                     ; @OP_RTS
	.comm	_SX_DEBUG_MODEMSIGNALS,4,2      ; @SX_DEBUG_MODEMSIGNALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setsignals: %d/%d\n"

	.no_dead_strip	_sx_setsignals
.subsections_via_symbols
