	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_wait_modem_status
_hso_wait_modem_status:                 ## @hso_wait_modem_status
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	movq	8(%r15), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_spin_lock_irq
	leaq	4(%r14), %r12
	leaq	-80(%rbp), %rdi
	movq	%r12, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_add_wait_queue
	movq	_TIOCM_RNG@GOTPCREL(%rip), %r13
	movq	_TIOCM_DSR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_spin_lock_irq
	leaq	-104(%rbp), %rdi
	movq	%r12, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	testq	%rbx, (%r13)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, (%r14)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rax
	cmpq	-72(%rbp), %rax
	jne	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_TIOCM_CD@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jne	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax
	movq	%rax, -64(%rbp)
	movups	-104(%rbp), %xmm0
	movaps	%xmm0, -80(%rbp)
	jmp	LBB0_3
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_11:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___set_current_state
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_remove_wait_queue
LBB0_13:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_TIOCM_RNG,8,3                  ## @TIOCM_RNG
	.comm	_TIOCM_DSR,8,3                  ## @TIOCM_DSR
	.comm	_TIOCM_CD,8,3                   ## @TIOCM_CD
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	_hso_wait_modem_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_wait_modem_status
_hso_wait_modem_status:                 ; @hso_wait_modem_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x23, _current@GOTPAGE
Lloh4:
	ldr	x23, [x23, _current@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_DECLARE_WAITQUEUE
	ldr	x19, [x21, #8]
	cbz	x19, LBB0_11
; %bb.1:
	mov	x0, x21
	bl	_spin_lock_irq
	add	x22, x19, #4
	add	x0, sp, #32
	mov	x1, x22
	mov	w2, #24
	bl	_memcpy
	mov	x0, x21
	bl	_spin_unlock_irq
Lloh5:
	adrp	x1, _wait@GOTPAGE
Lloh6:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x19
	bl	_add_wait_queue
Lloh7:
	adrp	x24, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh9:
	adrp	x25, _TIOCM_RNG@GOTPAGE
Lloh10:
	ldr	x25, [x25, _TIOCM_RNG@GOTPAGEOFF]
Lloh11:
	adrp	x26, _TIOCM_DSR@GOTPAGE
Lloh12:
	ldr	x26, [x26, _TIOCM_DSR@GOTPAGEOFF]
Lloh13:
	adrp	x27, _TIOCM_CD@GOTPAGE
Lloh14:
	ldr	x27, [x27, _TIOCM_CD@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_spin_lock_irq
	add	x0, sp, #8
	mov	x1, x22
	mov	w2, #24
	bl	_memcpy
	mov	x0, x21
	bl	_spin_unlock_irq
	ldr	w0, [x24]
	bl	_set_current_state
	ldr	x8, [x25]
	tst	x8, x20
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #32]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	tst	x8, x20
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [sp, #40]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	tst	x8, x20
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [sp, #48]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_schedule
	ldr	w0, [x23]
	bl	_signal_pending
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	q0, [sp, #8]
	str	q0, [sp, #32]
	ldr	x8, [sp, #24]
	str	x8, [sp, #48]
	b	LBB0_2
LBB0_10:
	mov	w20, #0
	b	LBB0_13
LBB0_11:
Lloh15:
	adrp	x8, _ENOENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_12:
Lloh18:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
Lloh21:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	___set_current_state
Lloh24:
	adrp	x1, _wait@GOTPAGE
Lloh25:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x19
	bl	_remove_wait_queue
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_TIOCM_RNG,8,3                  ; @TIOCM_RNG
	.comm	_TIOCM_DSR,8,3                  ; @TIOCM_DSR
	.comm	_TIOCM_CD,8,3                   ; @TIOCM_CD
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	_hso_wait_modem_status
.subsections_via_symbols
