	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_signals
_get_signals:                           ## @get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_SR3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_read_reg
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_read_status_reg
	movq	_SerialSignal_DTR@GOTPCREL(%rip), %rcx
	movq	_SerialSignal_RTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	(%rcx), %edx
	andl	4(%rbx), %edx
	movl	%edx, 4(%rbx)
	movq	_BIT3@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_SerialSignal_CTS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 4(%rbx)
LBB0_2:
	movq	_BIT2@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_SerialSignal_DCD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 4(%rbx)
LBB0_4:
	movq	_BIT1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %ecx
	addl	%ecx, %ecx
	shll	%cl, %esi
	testl	%eax, %esi
	jne	LBB0_6
## %bb.5:
	movq	_SerialSignal_RI@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, 4(%rbx)
LBB0_6:
	movq	_BIT0@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	testl	%eax, %esi
	jne	LBB0_8
## %bb.7:
	movq	_SerialSignal_DSR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, 4(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SR3,4,2                        ## @SR3
	.comm	_SerialSignal_DTR,4,2           ## @SerialSignal_DTR
	.comm	_SerialSignal_RTS,4,2           ## @SerialSignal_RTS
	.comm	_BIT3,4,2                       ## @BIT3
	.comm	_SerialSignal_CTS,4,2           ## @SerialSignal_CTS
	.comm	_BIT2,4,2                       ## @BIT2
	.comm	_SerialSignal_DCD,4,2           ## @SerialSignal_DCD
	.comm	_BIT1,4,2                       ## @BIT1
	.comm	_SerialSignal_RI,4,2            ## @SerialSignal_RI
	.comm	_BIT0,4,2                       ## @BIT0
	.comm	_SerialSignal_DSR,4,2           ## @SerialSignal_DSR
	.no_dead_strip	_get_signals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_signals
_get_signals:                           ; @get_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	x8, _SR3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SR3@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_read_reg
	mov	x20, x0
	mov	x0, x19
	bl	_read_status_reg
Lloh3:
	adrp	x8, _SerialSignal_DTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SerialSignal_DTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SerialSignal_RTS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SerialSignal_RTS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	add	w8, w9, w8
	and	w8, w10, w8
	str	w8, [x19, #4]
Lloh9:
	adrp	x9, _BIT3@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BIT3@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x9, _SerialSignal_CTS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SerialSignal_CTS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_2:
Lloh15:
	adrp	x9, _BIT2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BIT2@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_4
; %bb.3:
Lloh18:
	adrp	x9, _SerialSignal_DCD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SerialSignal_DCD@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
LBB0_4:
Lloh21:
	adrp	x9, _BIT1@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BIT1@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x9]
	ldr	w9, [x19]
	lsl	w9, w9, #1
	lsl	w10, w10, w9
	tst	w10, w0
	b.ne	LBB0_6
; %bb.5:
Lloh24:
	adrp	x10, _SerialSignal_RI@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SerialSignal_RI@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x19, #4]
LBB0_6:
Lloh27:
	adrp	x10, _BIT0@GOTPAGE
Lloh28:
	ldr	x10, [x10, _BIT0@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	lsl	w9, w10, w9
	tst	w9, w0
	b.ne	LBB0_8
; %bb.7:
Lloh30:
	adrp	x9, _SerialSignal_DSR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SerialSignal_DSR@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SR3,4,2                        ; @SR3
	.comm	_SerialSignal_DTR,4,2           ; @SerialSignal_DTR
	.comm	_SerialSignal_RTS,4,2           ; @SerialSignal_RTS
	.comm	_BIT3,4,2                       ; @BIT3
	.comm	_SerialSignal_CTS,4,2           ; @SerialSignal_CTS
	.comm	_BIT2,4,2                       ; @BIT2
	.comm	_SerialSignal_DCD,4,2           ; @SerialSignal_DCD
	.comm	_BIT1,4,2                       ; @BIT1
	.comm	_SerialSignal_RI,4,2            ; @SerialSignal_RI
	.comm	_BIT0,4,2                       ; @BIT0
	.comm	_SerialSignal_DSR,4,2           ; @SerialSignal_DSR
	.no_dead_strip	_get_signals
.subsections_via_symbols
