	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_tiocmget
_rs_tiocmget:                           ## @rs_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	4(%rdi), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_serial_paranoia_check
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movl	(%rbx), %eax
	movq	_TTY_IO_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movb	(%r14), %bl
	callq	_local_irq_save
	movq	_ciab@GOTPCREL(%rip), %rax
	movb	(%rax), %r14b
	callq	_local_irq_restore
	movq	_SER_RTS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	$0, %edx
	testb	%bl, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_7:
	movq	_SER_DTR@GOTPCREL(%rip), %rsi
	movl	$0, %eax
	testb	%bl, (%rsi)
	je	LBB0_9
## %bb.8:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	_SER_DCD@GOTPCREL(%rip), %rdi
	movl	$0, %esi
	testb	%r14b, (%rdi)
	jne	LBB0_11
## %bb.10:
	movq	_TIOCM_CAR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_11:
	orl	%edx, %eax
	movq	_SER_DSR@GOTPCREL(%rip), %rdi
	movl	$0, %edx
	testb	%r14b, (%rdi)
	jne	LBB0_13
## %bb.12:
	movq	_TIOCM_DSR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_13:
	orl	%edx, %esi
	orl	%esi, %eax
	movq	_SER_CTS@GOTPCREL(%rip), %rdx
	testb	%r14b, (%rdx)
	jne	LBB0_15
## %bb.14:
	movq	_TIOCM_CTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_15:
	orl	%ecx, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rs_ioctl"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TTY_IO_ERROR,4,2               ## @TTY_IO_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ciab,1,0                       ## @ciab
	.comm	_SER_RTS,1,0                    ## @SER_RTS
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_SER_DTR,1,0                    ## @SER_DTR
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_SER_DCD,1,0                    ## @SER_DCD
	.comm	_TIOCM_CAR,4,2                  ## @TIOCM_CAR
	.comm	_SER_DSR,1,0                    ## @SER_DSR
	.comm	_TIOCM_DSR,4,2                  ## @TIOCM_DSR
	.comm	_SER_CTS,1,0                    ## @SER_CTS
	.comm	_TIOCM_CTS,4,2                  ## @TIOCM_CTS
	.no_dead_strip	_rs_tiocmget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_tiocmget
_rs_tiocmget:                           ; @rs_tiocmget
	.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	x20, x0
	ldr	x19, [x0, #8]
	ldr	w1, [x0, #4]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_serial_paranoia_check
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _TTY_IO_ERROR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TTY_IO_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldrb	w19, [x19]
	bl	_local_irq_save
Lloh9:
	adrp	x8, _ciab@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ciab@GOTPAGEOFF]
	ldrb	w20, [x8]
	bl	_local_irq_restore
Lloh11:
	adrp	x8, _SER_RTS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SER_RTS@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w19
Lloh13:
	adrp	x9, _TIOCM_RTS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TIOCM_RTS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w8, #0xff
	csel	w8, wzr, w9, eq
Lloh16:
	adrp	x9, _SER_DTR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SER_DTR@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w9, w9, w19
Lloh18:
	adrp	x10, _TIOCM_DTR@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TIOCM_DTR@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w9, #0xff
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _SER_DCD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SER_DCD@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w9, w9, w20
Lloh23:
	adrp	x10, _TIOCM_CAR@GOTPAGE
Lloh24:
	ldr	x10, [x10, _TIOCM_CAR@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	tst	w9, #0xff
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _SER_DSR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SER_DSR@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w9, w9, w20
Lloh28:
	adrp	x10, _TIOCM_DSR@GOTPAGE
Lloh29:
	ldr	x10, [x10, _TIOCM_DSR@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w9, #0xff
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _SER_CTS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SER_CTS@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w9, w9, w20
Lloh33:
	adrp	x10, _TIOCM_CTS@GOTPAGE
Lloh34:
	ldr	x10, [x10, _TIOCM_CTS@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w9, #0xff
	csel	w9, w10, wzr, eq
	orr	w0, w8, w9
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rs_ioctl"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TTY_IO_ERROR,4,2               ; @TTY_IO_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ciab,1,0                       ; @ciab
	.comm	_SER_RTS,1,0                    ; @SER_RTS
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_SER_DTR,1,0                    ; @SER_DTR
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_SER_DCD,1,0                    ; @SER_DCD
	.comm	_TIOCM_CAR,4,2                  ; @TIOCM_CAR
	.comm	_SER_DSR,1,0                    ; @SER_DSR
	.comm	_TIOCM_DSR,4,2                  ; @TIOCM_DSR
	.comm	_SER_CTS,1,0                    ; @SER_CTS
	.comm	_TIOCM_CTS,4,2                  ; @TIOCM_CTS
	.no_dead_strip	_rs_tiocmget
.subsections_via_symbols
