	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxser_tiocmset
_mxser_tiocmset:                        ## @mxser_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	(%rdi), %rax
	movq	_MXSER_PORTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movl	%edx, %ebx
	movq	%rdi, %rsi
	movq	16(%rdi), %r15
	movq	_TTY_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	movq	_UART_MCR_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r15)
LBB0_7:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ecx
	je	LBB0_9
## %bb.8:
	movq	_UART_MCR_DTR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 16(%r15)
LBB0_9:
	testl	%r14d, %eax
	je	LBB0_11
## %bb.10:
	movq	_UART_MCR_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r15)
LBB0_11:
	testl	%r14d, %ecx
	je	LBB0_12
## %bb.13:
	movq	_UART_MCR_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	16(%r15), %edi
	movl	%edi, 16(%r15)
	jmp	LBB0_14
LBB0_12:
	movl	16(%r15), %edi
LBB0_14:
	movq	_UART_MCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_outb
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MXSER_PORTS,8,3                ## @MXSER_PORTS
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_TTY_IO_ERROR,4,2               ## @TTY_IO_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_UART_MCR_RTS,4,2               ## @UART_MCR_RTS
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_UART_MCR_DTR,4,2               ## @UART_MCR_DTR
	.comm	_UART_MCR,8,3                   ## @UART_MCR
	.no_dead_strip	_mxser_tiocmset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxser_tiocmset
_mxser_tiocmset:                        ; @mxser_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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MXSER_PORTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MXSER_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	ldr	x19, [x0, #16]
Lloh5:
	adrp	x8, _TTY_IO_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TTY_IO_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	x1, x0, #8
	mov	x0, x8
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	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:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh10:
	adrp	x8, _TIOCM_RTS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TIOCM_RTS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x8]
Lloh13:
	adrp	x8, _UART_MCR_RTS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UART_MCR_RTS@GOTPAGEOFF]
	tst	w9, w21
	b.eq	LBB0_8
; %bb.7:
	ldr	w10, [x8]
	ldr	w11, [x19, #16]
	orr	w10, w11, w10
	str	w10, [x19, #16]
LBB0_8:
Lloh15:
	adrp	x10, _TIOCM_DTR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TIOCM_DTR@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x10]
Lloh18:
	adrp	x10, _UART_MCR_DTR@GOTPAGE
Lloh19:
	ldr	x10, [x10, _UART_MCR_DTR@GOTPAGEOFF]
	tst	w11, w21
	b.eq	LBB0_10
; %bb.9:
	ldr	w12, [x10]
	ldr	w13, [x19, #16]
	orr	w12, w13, w12
	str	w12, [x19, #16]
LBB0_10:
	tst	w9, w20
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
LBB0_12:
	tst	w11, w20
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x10]
	ldr	w9, [x19, #16]
	bic	w0, w9, w8
	str	w0, [x19, #16]
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19, #16]
LBB0_15:
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _UART_MCR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _UART_MCR@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MXSER_PORTS,8,3                ; @MXSER_PORTS
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_TTY_IO_ERROR,4,2               ; @TTY_IO_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_UART_MCR_RTS,4,2               ; @UART_MCR_RTS
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_UART_MCR_DTR,4,2               ; @UART_MCR_DTR
	.comm	_UART_MCR,8,3                   ; @UART_MCR
	.no_dead_strip	_mxser_tiocmset
.subsections_via_symbols
