	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_signals
_set_signals:                           ## @set_signals
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_read_reg
	movq	_SerialSignal_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r15), %ecx
	movq	_BIT0@GOTPCREL(%rip), %rdx
	movb	(%rdx), %bl
	movl	%ebx, %edx
	notb	%dl
	andb	%al, %dl
	orb	%al, %bl
	testl	%ecx, %ecx
	movzbl	%bl, %eax
	movzbl	%dl, %ecx
	cmovel	%eax, %ecx
	movl	(%r14), %esi
	movzbl	%cl, %edx
	movq	%r15, %rdi
	callq	_write_reg
	movq	_BIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movb	4(%r15), %cl
	addb	%cl, %cl
	shll	%cl, %eax
	movq	_SerialSignal_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_2
## %bb.1:
	notl	%eax
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	andl	%eax, (%rcx)
	jmp	LBB0_3
LBB0_2:
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%rcx)
LBB0_3:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_control_reg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL,4,2                        ## @CTL
	.comm	_SerialSignal_RTS,4,2           ## @SerialSignal_RTS
	.comm	_BIT0,1,0                       ## @BIT0
	.comm	_BIT1,4,2                       ## @BIT1
	.comm	_SerialSignal_DTR,4,2           ## @SerialSignal_DTR
	.no_dead_strip	_set_signals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_signals
_set_signals:                           ; @set_signals
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _CTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_read_reg
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _SerialSignal_RTS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SerialSignal_RTS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _BIT0@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BIT0@GOTPAGEOFF]
	ldrb	w10, [x10]
	bic	w11, w0, w10
	orr	w10, w10, w0
	tst	w9, w8
	csel	w8, w10, w11, eq
	ldr	w1, [x20]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_write_reg
Lloh7:
	adrp	x8, _BIT1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BIT1@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldp	w10, w9, [x19]
	lsl	w9, w9, #1
	lsl	w8, w8, w9
Lloh10:
	adrp	x9, _SerialSignal_DTR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SerialSignal_DTR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	w10, [x9]
	bic	w8, w10, w8
	b	LBB0_3
LBB0_2:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	w10, [x9]
	orr	w8, w10, w8
LBB0_3:
	str	w8, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_control_reg
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL,4,2                        ; @CTL
	.comm	_SerialSignal_RTS,4,2           ; @SerialSignal_RTS
	.comm	_BIT0,1,0                       ; @BIT0
	.comm	_BIT1,4,2                       ; @BIT1
	.comm	_SerialSignal_DTR,4,2           ; @SerialSignal_DTR
	.no_dead_strip	_set_signals
.subsections_via_symbols
