	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_SeekPrio                   ## -- Begin function DVD_SeekPrio
	.p2align	4, 0x90
_DVD_SeekPrio:                          ## @DVD_SeekPrio
	.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	%edx, %ecx
	leaq	-1(%rsi), %rax
	movl	$-1, %ebx
	movabsq	$8511160318, %rdx               ## imm = 0x1FB4DFFFE
	cmpq	%rdx, %rax
	ja	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movq	___dvd_seeksynccb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_DVD_SeekAbsAsyncPrio
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	callq	__CPU_ISR_Disable
	movq	___dvd_wait_queue@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ebx
	leal	1(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$10, %ebx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	callq	_LWP_ThreadSleep
	jmp	LBB0_3
LBB0_6:
	movl	$-3, %ebx
LBB0_7:
	callq	__CPU_ISR_Restore
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_seeksynccb,4,2           ## @__dvd_seeksynccb
	.comm	___dvd_wait_queue,4,2           ## @__dvd_wait_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_SeekPrio                   ; -- Begin function DVD_SeekPrio
	.p2align	2
_DVD_SeekPrio:                          ; @DVD_SeekPrio
	.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
	sub	x8, x1, #1
	mov	x9, #8589934590
	movk	x9, #64333, lsl #16
	cmp	x8, x9
	b.hi	LBB0_6
; %bb.1:
	mov	x3, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___dvd_seeksynccb@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___dvd_seeksynccb@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_DVD_SeekAbsAsyncPrio
	cbz	w0, LBB0_6
; %bb.2:
	bl	__CPU_ISR_Disable
Lloh3:
	adrp	x21, ___dvd_wait_queue@GOTPAGE
Lloh4:
	ldr	x21, [x21, ___dvd_wait_queue@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x19]
	add	w8, w20, #1
	cmp	w8, #2
	b.lo	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #10
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	bl	_LWP_ThreadSleep
	b	LBB0_3
LBB0_6:
	mov	w20, #-1
	b	LBB0_9
LBB0_7:
	mov	w20, #-3
LBB0_8:
	bl	__CPU_ISR_Restore
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_seeksynccb,4,2           ; @__dvd_seeksynccb
	.comm	___dvd_wait_queue,4,2           ; @__dvd_wait_queue
.subsections_via_symbols
