	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf2qp_enqueue
_wf2qp_enqueue:                         ## @wf2qp_enqueue
	.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	%rsi, %r15
	movq	%rdi, %r14
	leaq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r12
	movslq	(%rdx), %r13
	cmpq	%rdx, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%r15, %rdi
	movq	%rdx, %rsi
	xorl	%edx, %edx
	callq	_dn_enqueue
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_17
## %bb.3:
	movl	$0, %eax
	cmpq	%rbx, (%r15)
	jne	LBB0_17
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	jmp	LBB0_5
LBB0_1:
	movq	%r12, %rdi
LBB0_5:
	leaq	16(%r15), %rbx
	movq	16(%r15), %rsi
	callq	_DN_KEY_LT
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	28(%r14), %rsi
	movq	%rsi, (%rbx)
	movq	(%r12), %rax
	movl	4(%r14), %ecx
	addl	(%rax), %ecx
	movl	%ecx, 4(%r14)
	movq	_ONE_FP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	movl	%eax, 8(%r14)
	jmp	LBB0_8
LBB0_7:
	leaq	36(%r14), %rdi
	movq	%r15, %rsi
	callq	_heap_extract
	movq	8(%r15), %rdi
	movq	28(%r14), %rsi
	callq	_MAX64
	movq	%rax, %rsi
	movq	%rax, 16(%r15)
LBB0_8:
	movslq	(%r15), %rax
	imulq	%r13, %rax
	addq	%rsi, %rax
	movq	%rax, 8(%r15)
	cmpq	$0, 20(%r14)
	jne	LBB0_11
## %bb.9:
	cmpq	$0, 12(%r14)
	jne	LBB0_11
## %bb.10:
	movq	28(%r14), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_MAX64
	movq	%rax, 28(%r14)
	movq	(%rbx), %rsi
LBB0_11:
	movq	28(%r14), %rdi
	callq	_DN_KEY_LT
	leaq	12(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	addq	$20, %r14
	cmpq	$0, (%rdi)
	jne	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rdi
	callq	_D
LBB0_15:
	movq	%r14, %rdi
	jmp	LBB0_16
LBB0_12:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movq	(%rbx), %rsi
	movq	%r15, %rdx
	callq	_heap_insert
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ONE_FP,4,2                     ## @ONE_FP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"++ ouch! not eligible but empty scheduler!"

	.no_dead_strip	_wf2qp_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf2qp_enqueue
_wf2qp_enqueue:                         ; @wf2qp_enqueue
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x22, x1
	ldr	x24, [x22, #8]!
	ldrsw	x23, [x2]
	ldr	x8, [x1]
	cmp	x8, x2
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x0, x19
	mov	x1, x2
	mov	w2, #0
	bl	_dn_enqueue
	cbz	x0, LBB0_6
; %bb.2:
	mov	w0, #1
	b	LBB0_19
LBB0_3:
	mov	x0, x24
LBB0_4:
	mov	x21, x19
	ldr	x1, [x21, #16]!
	bl	_DN_KEY_LT
	cbz	x0, LBB0_8
; %bb.5:
	ldur	x1, [x20, #28]
	str	x1, [x21]
	ldr	x8, [x24]
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	add	w8, w9, w8
Lloh0:
	adrp	x9, _ONE_FP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ONE_FP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w9, w9, w8
	stp	w8, w9, [x20, #4]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x19]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.7:
	ldr	x0, [x22]
	b	LBB0_4
LBB0_8:
	add	x0, x20, #36
	mov	x1, x19
	bl	_heap_extract
	ldr	x0, [x19, #8]
	ldur	x1, [x20, #28]
	bl	_MAX64
	mov	x1, x0
	str	x0, [x19, #16]
LBB0_9:
	ldrsw	x8, [x19]
	madd	x8, x8, x23, x1
	str	x8, [x19, #8]
	mov	x23, x20
	ldr	x8, [x23, #20]!
	cbnz	x8, LBB0_12
; %bb.10:
	ldur	x8, [x20, #12]
	cbnz	x8, LBB0_12
; %bb.11:
	ldur	x8, [x20, #28]
	mov	x0, x1
	mov	x1, x8
	bl	_MAX64
	stur	x0, [x20, #28]
	ldr	x1, [x21]
LBB0_12:
	ldur	x0, [x20, #28]
	bl	_DN_KEY_LT
	mov	x8, x0
	add	x0, x20, #12
	cbz	x8, LBB0_16
; %bb.13:
	ldr	x8, [x0]
	cbnz	x8, LBB0_15
; %bb.14:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D
LBB0_15:
	mov	x0, x23
	b	LBB0_17
LBB0_16:
	mov	x21, x22
LBB0_17:
	ldr	x1, [x21]
	mov	x2, x19
	bl	_heap_insert
LBB0_18:
	mov	w0, #0
LBB0_19:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ONE_FP,4,2                     ; @ONE_FP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"++ ouch! not eligible but empty scheduler!"

	.no_dead_strip	_wf2qp_enqueue
.subsections_via_symbols
