	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prio_new_queue
_prio_new_queue:                        ## @prio_new_queue
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %rax
	movq	48(%rdi), %r12
	movq	(%rax), %rax
	movslq	(%rax), %r14
	movq	_DN_SCHED_PRIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	incq	%r12
	leaq	8(%r12), %r15
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rax
	cmpq	%rbx, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rcx
	movq	8(%rax), %rdx
	movq	%rcx, (%rdx)
	movq	8(%rbx), %rcx
	movq	%rcx, 8(%rax)
	movdqu	16(%rbx), %xmm0
	movdqu	16(%rax), %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 16(%rax)
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, (%rbx)
	movdqu	%xmm0, 16(%rbx)
	jmp	LBB0_5
LBB0_2:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	___set_bit
	movq	(%r12), %rax
	movq	%rbx, (%rax,%r14,8)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DN_SCHED_PRIO,4,2              ## @DN_SCHED_PRIO
	.no_dead_strip	_prio_new_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prio_new_queue
_prio_new_queue:                        ; @prio_new_queue
	.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
	ldp	x9, x8, [x0, #40]
	ldr	x9, [x9]
	ldrsw	x20, [x9]
Lloh0:
	adrp	x9, _DN_SCHED_PRIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DN_SCHED_PRIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x0, #32]
	ldr	x9, [x0]
	cbz	x9, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x22, x8, #1
	add	x21, x22, #8
	mov	x0, x20
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x22]
	ldr	x8, [x8, x20, lsl #3]
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x8, #8]
	ldp	x10, x11, [x19]
	str	x10, [x9]
	str	x11, [x8, #8]
	ldr	q0, [x19, #16]
	ldr	q1, [x8, #16]
	add.2d	v0, v1, v0
	str	q0, [x8, #16]
	stp	xzr, xzr, [x19, #16]
	stp	xzr, xzr, [x19]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	___set_bit
	ldr	x8, [x22]
	str	x19, [x8, x20, lsl #3]
LBB0_5:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_DN_SCHED_PRIO,4,2              ; @DN_SCHED_PRIO
	.no_dead_strip	_prio_new_queue
.subsections_via_symbols
