	.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, %rbx
	movq	_CHA@GOTPCREL(%rip), %r14
	movq	_MODE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	callq	_read_reg
	movq	8(%rbx), %rdx
	movq	_MGSL_MODE_ASYNC@GOTPCREL(%rip), %rsi
	movq	_SerialSignal_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rbx), %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_3
## %bb.1:
	movq	_BIT6@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	testl	%ecx, %ecx
	je	LBB0_2
LBB0_5:
	notb	%dl
	andb	%dl, %al
	jmp	LBB0_6
LBB0_3:
	movq	_BIT2@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	testl	%ecx, %ecx
	je	LBB0_5
LBB0_2:
	orb	%dl, %al
LBB0_6:
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_write_reg
	movq	_SerialSignal_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PVR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movq	_PVR_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_reg_bits                 ## TAILCALL
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_reg_bits                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHA,8,3                        ## @CHA
	.comm	_MODE,8,3                       ## @MODE
	.comm	_MGSL_MODE_ASYNC,8,3            ## @MGSL_MODE_ASYNC
	.comm	_SerialSignal_RTS,4,2           ## @SerialSignal_RTS
	.comm	_BIT6,1,0                       ## @BIT6
	.comm	_BIT2,1,0                       ## @BIT2
	.comm	_SerialSignal_DTR,4,2           ## @SerialSignal_DTR
	.comm	_PVR,8,3                        ## @PVR
	.comm	_PVR_DTR,4,2                    ## @PVR_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	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	x20, _CHA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CHA@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _MODE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MODE@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_read_reg
	ldr	x9, [x19, #8]
Lloh4:
	adrp	x8, _MGSL_MODE_ASYNC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MGSL_MODE_ASYNC@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x8]
	ldr	w8, [x19]
Lloh7:
	adrp	x11, _SerialSignal_RTS@GOTPAGE
Lloh8:
	ldr	x11, [x11, _SerialSignal_RTS@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	and	w8, w11, w8
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x9, _BIT6@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BIT6@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w10, w9, w0
	bic	w9, w0, w9
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x9, _BIT2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BIT2@GOTPAGEOFF]
	ldrb	w9, [x9]
	bic	w10, w0, w9
	orr	w9, w9, w0
LBB0_3:
	cmp	w8, #0
	csel	w2, w10, w9, eq
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	bl	_write_reg
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _SerialSignal_DTR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SerialSignal_DTR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	x10, [x20]
Lloh17:
	adrp	x11, _PVR@GOTPAGE
Lloh18:
	ldr	x11, [x11, _PVR@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	add	x1, x11, x10
Lloh20:
	adrp	x10, _PVR_DTR@GOTPAGE
Lloh21:
	ldr	x10, [x10, _PVR_DTR@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x10]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	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	_clear_reg_bits
LBB0_5:
	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	_set_reg_bits
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CHA,8,3                        ; @CHA
	.comm	_MODE,8,3                       ; @MODE
	.comm	_MGSL_MODE_ASYNC,8,3            ; @MGSL_MODE_ASYNC
	.comm	_SerialSignal_RTS,4,2           ; @SerialSignal_RTS
	.comm	_BIT6,1,0                       ; @BIT6
	.comm	_BIT2,1,0                       ; @BIT2
	.comm	_SerialSignal_DTR,4,2           ; @SerialSignal_DTR
	.comm	_PVR,8,3                        ; @PVR
	.comm	_PVR_DTR,4,2                    ; @PVR_DTR
	.no_dead_strip	_set_signals
.subsections_via_symbols
