	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rp_tiocmget
_rp_tiocmget:                           ## @rp_tiocmget
	.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
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_sGetChanStatusLo
	movl	%eax, %r14d
	movq	(%r15), %rax
	movl	12(%rax), %r13d
	movq	_SET_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r13d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	movq	_SET_DTR@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	je	LBB0_4
## %bb.3:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movq	_CD_ACT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	je	LBB0_6
## %bb.5:
	movq	_TIOCM_CAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_sGetChanRI
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_TIOCM_RNG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	orl	%ecx, %ebx
	movq	_DSR_ACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	je	LBB0_10
## %bb.9:
	movq	_TIOCM_DSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	orl	%eax, %ebx
	orl	%r12d, %r13d
	movq	_CTS_ACT@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	je	LBB0_12
## %bb.11:
	movq	_TIOCM_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_12:
	orl	%r14d, %ebx
	orl	%ebx, %r13d
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_RTS,4,2                    ## @SET_RTS
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_SET_DTR,4,2                    ## @SET_DTR
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_CD_ACT,4,2                     ## @CD_ACT
	.comm	_TIOCM_CAR,4,2                  ## @TIOCM_CAR
	.comm	_TIOCM_RNG,4,2                  ## @TIOCM_RNG
	.comm	_DSR_ACT,4,2                    ## @DSR_ACT
	.comm	_TIOCM_DSR,4,2                  ## @TIOCM_DSR
	.comm	_CTS_ACT,4,2                    ## @CTS_ACT
	.comm	_TIOCM_CTS,4,2                  ## @TIOCM_CTS
	.no_dead_strip	_rp_tiocmget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rp_tiocmget
_rp_tiocmget:                           ; @rp_tiocmget
	.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
	ldr	x19, [x0]
	mov	x0, x19
	bl	_sGetChanStatusLo
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w8, [x8, #12]
Lloh0:
	adrp	x9, _SET_RTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SET_RTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TIOCM_RTS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TIOCM_RTS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh6:
	adrp	x10, _SET_DTR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SET_DTR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _TIOCM_DTR@GOTPAGE
Lloh10:
	ldr	x11, [x11, _TIOCM_DTR@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _CD_ACT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CD_ACT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _TIOCM_CAR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TIOCM_CAR@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w21, w8, w9
	mov	x0, x19
	bl	_sGetChanRI
Lloh18:
	adrp	x8, _TIOCM_RNG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TIOCM_RNG@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
Lloh21:
	adrp	x9, _DSR_ACT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DSR_ACT@GOTPAGEOFF]
	orr	w8, w21, w8
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _TIOCM_DSR@GOTPAGE
Lloh25:
	ldr	x10, [x10, _TIOCM_DSR@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _CTS_ACT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CTS_ACT@GOTPAGEOFF]
Lloh29:
	adrp	x10, _TIOCM_CTS@GOTPAGE
Lloh30:
	ldr	x10, [x10, _TIOCM_CTS@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	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
	ret
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_RTS,4,2                    ; @SET_RTS
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_SET_DTR,4,2                    ; @SET_DTR
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_CD_ACT,4,2                     ; @CD_ACT
	.comm	_TIOCM_CAR,4,2                  ; @TIOCM_CAR
	.comm	_TIOCM_RNG,4,2                  ; @TIOCM_RNG
	.comm	_DSR_ACT,4,2                    ; @DSR_ACT
	.comm	_TIOCM_DSR,4,2                  ; @TIOCM_DSR
	.comm	_CTS_ACT,4,2                    ; @CTS_ACT
	.comm	_TIOCM_CTS,4,2                  ; @TIOCM_CTS
	.no_dead_strip	_rp_tiocmget
.subsections_via_symbols
