	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip2_tiocmset
_ip2_tiocmset:                          ## @ip2_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	%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
	movl	%ecx, %r14d
	movq	_DevTable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	_TIOCM_RTS@GOTPCREL(%rip), %r13
	testl	%edx, (%r13)
	je	LBB0_4
## %bb.3:
	movq	_PTYPE_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMD_RTSUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	movl	$100, %edx
	movl	$1, %ecx
	callq	_i2QueueCommands
	movq	_I2_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_4:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %r12
	testl	%r15d, (%r12)
	je	LBB0_6
## %bb.5:
	movq	_PTYPE_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMD_DTRUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	movl	$100, %edx
	movl	$1, %ecx
	callq	_i2QueueCommands
	movq	_I2_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_6:
	testl	%r14d, (%r13)
	je	LBB0_8
## %bb.7:
	movq	_PTYPE_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMD_RTSDN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	movl	$100, %edx
	movl	$1, %ecx
	callq	_i2QueueCommands
	movq	_I2_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
LBB0_8:
	testl	%r14d, (%r12)
	je	LBB0_10
## %bb.9:
	movq	_PTYPE_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMD_DTRDN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	movl	$100, %edx
	movl	$1, %ecx
	callq	_i2QueueCommands
	movq	_I2_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
LBB0_10:
	movl	(%rbx), %edi
	callq	_serviceOutgoingFifo
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DevTable,8,3                   ## @DevTable
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_PTYPE_INLINE,4,2               ## @PTYPE_INLINE
	.comm	_CMD_RTSUP,4,2                  ## @CMD_RTSUP
	.comm	_I2_RTS,4,2                     ## @I2_RTS
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_CMD_DTRUP,4,2                  ## @CMD_DTRUP
	.comm	_I2_DTR,4,2                     ## @I2_DTR
	.comm	_CMD_RTSDN,4,2                  ## @CMD_RTSDN
	.comm	_CMD_DTRDN,4,2                  ## @CMD_DTRDN
	.no_dead_strip	_ip2_tiocmset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip2_tiocmset
_ip2_tiocmset:                          ; @ip2_tiocmset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _DevTable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DevTable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x19, [x8, x9, lsl #3]
	cbz	x19, LBB0_10
; %bb.1:
	mov	x20, x3
	mov	x21, x2
Lloh3:
	adrp	x25, _TIOCM_RTS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TIOCM_RTS@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh5:
	adrp	x22, _PTYPE_INLINE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PTYPE_INLINE@GOTPAGEOFF]
Lloh7:
	adrp	x23, _I2_RTS@GOTPAGE
Lloh8:
	ldr	x23, [x23, _I2_RTS@GOTPAGEOFF]
	tst	w8, w2
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _CMD_RTSUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_RTSUP@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x1, x19
	mov	w2, #100
	mov	w3, #1
	bl	_i2QueueCommands
	ldr	w8, [x23]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_3:
Lloh12:
	adrp	x26, _TIOCM_DTR@GOTPAGE
Lloh13:
	ldr	x26, [x26, _TIOCM_DTR@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh14:
	adrp	x24, _I2_DTR@GOTPAGE
Lloh15:
	ldr	x24, [x24, _I2_DTR@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x22]
Lloh16:
	adrp	x8, _CMD_DTRUP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMD_DTRUP@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	mov	x1, x19
	mov	w2, #100
	mov	w3, #1
	bl	_i2QueueCommands
	ldr	w8, [x24]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_5:
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x22]
Lloh19:
	adrp	x8, _CMD_RTSDN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CMD_RTSDN@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
	mov	x1, x19
	mov	w2, #100
	mov	w3, #1
	bl	_i2QueueCommands
	ldr	w8, [x23]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_7:
	ldr	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x22]
Lloh22:
	adrp	x8, _CMD_DTRDN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CMD_DTRDN@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	x1, x19
	mov	w2, #100
	mov	w3, #1
	bl	_i2QueueCommands
	ldr	w8, [x24]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_9:
	ldr	w0, [x19]
	bl	_serviceOutgoingFifo
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DevTable,8,3                   ; @DevTable
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_PTYPE_INLINE,4,2               ; @PTYPE_INLINE
	.comm	_CMD_RTSUP,4,2                  ; @CMD_RTSUP
	.comm	_I2_RTS,4,2                     ; @I2_RTS
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_CMD_DTRUP,4,2                  ; @CMD_DTRUP
	.comm	_I2_DTR,4,2                     ; @I2_DTR
	.comm	_CMD_RTSDN,4,2                  ; @CMD_RTSDN
	.comm	_CMD_DTRDN,4,2                  ; @CMD_DTRDN
	.no_dead_strip	_ip2_tiocmset
.subsections_via_symbols
