	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp_wait_ready
_lp_wait_ready:                         ## @lp_wait_ready
	.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
	movq	_lp_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_IEEE1284_MODE_COMPAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_current@GOTPCREL(%rip), %r12
	movq	_LP_ABORT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_lp_check_status
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	callq	_LP_F
	testl	%eax, (%r13)
	jne	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_2
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lp_table,8,3                   ## @lp_table
	.comm	_IEEE1284_MODE_COMPAT,8,3       ## @IEEE1284_MODE_COMPAT
	.comm	_LP_ABORT,4,2                   ## @LP_ABORT
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_lp_wait_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp_wait_ready
_lp_wait_ready:                         ; @lp_wait_ready
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _lp_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lp_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
Lloh3:
	adrp	x9, _IEEE1284_MODE_COMPAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE1284_MODE_COMPAT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh6:
	adrp	x22, _current@GOTPAGE
Lloh7:
	ldr	x22, [x22, _current@GOTPAGEOFF]
Lloh8:
	adrp	x23, _LP_ABORT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _LP_ABORT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_lp_check_status
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w19, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_LP_F
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_signal_pending
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w21, LBB0_2
	b	LBB0_9
LBB0_7:
	mov	w21, #0
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _EINTR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_lp_table,8,3                   ; @lp_table
	.comm	_IEEE1284_MODE_COMPAT,8,3       ; @IEEE1284_MODE_COMPAT
	.comm	_LP_ABORT,4,2                   ; @LP_ABORT
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_lp_wait_ready
.subsections_via_symbols
