	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_tiocmset
_rs_tiocmset:                           ## @rs_tiocmset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	4(%rdi), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %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_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	_local_irq_save
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_SER_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_7:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_SER_DTR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%r12)
LBB0_9:
	testl	%r14d, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_SER_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%r12)
LBB0_11:
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.13:
	movq	_SER_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	(%r12), %edi
	movl	%edi, (%r12)
	jmp	LBB0_14
LBB0_12:
	movl	(%r12), %edi
LBB0_14:
	callq	_rtsdtr_ctrl
	callq	_local_irq_restore
	xorl	%eax, %eax
	jmp	LBB0_15
	.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	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_SER_RTS,4,2                    ## @SER_RTS
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_SER_DTR,4,2                    ## @SER_DTR
	.no_dead_strip	_rs_tiocmset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_tiocmset
_rs_tiocmset:                           ; @rs_tiocmset
	.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	x20, x3
	mov	x21, x2
	mov	x22, 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, [x22]
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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_local_irq_save
Lloh9:
	adrp	x9, _TIOCM_RTS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TIOCM_RTS@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh11:
	adrp	x8, _SER_RTS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SER_RTS@GOTPAGEOFF]
	tst	w10, w21
	b.eq	LBB0_8
; %bb.7:
	ldr	w10, [x8]
	ldr	w11, [x19]
	orr	w10, w11, w10
	str	w10, [x19]
LBB0_8:
Lloh13:
	adrp	x11, _TIOCM_DTR@GOTPAGE
Lloh14:
	ldr	x11, [x11, _TIOCM_DTR@GOTPAGEOFF]
	ldr	w12, [x11]
Lloh15:
	adrp	x10, _SER_DTR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SER_DTR@GOTPAGEOFF]
	tst	w12, w21
	b.eq	LBB0_10
; %bb.9:
	ldr	w12, [x10]
	ldr	w13, [x19]
	orr	w12, w13, w12
	str	w12, [x19]
LBB0_10:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_12:
	ldr	w8, [x11]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x10]
	ldr	w9, [x19]
	bic	w0, w9, w8
	str	w0, [x19]
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19]
LBB0_15:
	bl	_rtsdtr_ctrl
	bl	_local_irq_restore
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_SER_RTS,4,2                    ; @SER_RTS
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_SER_DTR,4,2                    ; @SER_DTR
	.no_dead_strip	_rs_tiocmset
.subsections_via_symbols
