	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_serial_tiocmget
_hso_serial_tiocmget:                   ## @hso_serial_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), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_lock_irq
	xorl	%ebx, %ebx
	cmpq	$0, 24(%r14)
	movl	$0, %eax
	je	LBB0_4
## %bb.3:
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	cmpq	$0, 16(%r14)
	je	LBB0_6
## %bb.5:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_6:
	orl	%eax, %ebx
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_B_RING_SIGNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_9
## %bb.8:
	movq	_TIOCM_RNG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	orl	%ebx, %ecx
	movq	_B_RX_CARRIER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_11
## %bb.10:
	movq	_TIOCM_CD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_11:
	orl	%edx, %ecx
	movq	_B_TX_CARRIER@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_13
## %bb.12:
	movq	_TIOCM_DSR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_13:
	movl	%ecx, %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_hso_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no tty structures\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_B_RING_SIGNAL,4,2              ## @B_RING_SIGNAL
	.comm	_TIOCM_RNG,4,2                  ## @TIOCM_RNG
	.comm	_B_RX_CARRIER,4,2               ## @B_RX_CARRIER
	.comm	_TIOCM_CD,4,2                   ## @TIOCM_CD
	.comm	_B_TX_CARRIER,4,2               ## @B_TX_CARRIER
	.comm	_TIOCM_DSR,4,2                  ## @TIOCM_DSR
	.no_dead_strip	_hso_serial_tiocmget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_serial_tiocmget
_hso_serial_tiocmget:                   ; @hso_serial_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
	ldr	x19, [x0]
	cbz	x19, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_irq
Lloh0:
	adrp	x8, _TIOCM_RTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIOCM_RTS@GOTPAGEOFF]
	ldp	x11, x9, [x19, #16]
Lloh2:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w9, wzr, w8, eq
Lloh3:
	adrp	x8, _TIOCM_DTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIOCM_DTR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	ldr	x8, [x19, #8]
	cmp	x11, #0
	csel	w10, wzr, w10, eq
	orr	w20, w10, w9
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh6:
	adrp	x8, _B_RING_SIGNAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B_RING_SIGNAL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _TIOCM_RNG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TIOCM_RNG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
Lloh12:
	adrp	x9, _B_RX_CARRIER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _B_RX_CARRIER@GOTPAGEOFF]
	orr	w8, w8, w20
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _TIOCM_CD@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TIOCM_CD@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
Lloh18:
	adrp	x8, _B_TX_CARRIER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _B_TX_CARRIER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh21:
	adrp	x8, _TIOCM_DSR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TIOCM_DSR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irq
	b	LBB0_6
LBB0_5:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_hso_dbg
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no tty structures\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_B_RING_SIGNAL,4,2              ; @B_RING_SIGNAL
	.comm	_TIOCM_RNG,4,2                  ; @TIOCM_RNG
	.comm	_B_RX_CARRIER,4,2               ; @B_RX_CARRIER
	.comm	_TIOCM_CD,4,2                   ; @TIOCM_CD
	.comm	_B_TX_CARRIER,4,2               ; @B_TX_CARRIER
	.comm	_TIOCM_DSR,4,2                  ; @TIOCM_DSR
	.no_dead_strip	_hso_serial_tiocmget
.subsections_via_symbols
