	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_recursive_calls
_lookup_recursive_calls:                ## @lookup_recursive_calls
	.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), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_max_count@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	leal	16777215(%rcx), %edx
	addl	$33554430, %ecx                 ## imm = 0x1FFFFFE
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$24, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %esi
	negl	%esi
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rdx
	callq	_fibheap_insert
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, 8(%rbx)
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	_lookup_recursive_calls.priority(%rip), %esi
	leal	1(%rsi), %eax
	movl	%eax, _lookup_recursive_calls.priority(%rip)
	jmp	LBB0_12
LBB0_5:
	movq	(%r15), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rbx), %rbx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 16(%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_lookup_recursive_calls
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_lookup_recursive_calls.priority,4,2 ## @lookup_recursive_calls.priority
	.comm	_max_count,4,2                  ## @max_count
	.no_dead_strip	_lookup_recursive_calls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_recursive_calls
_lookup_recursive_calls:                ; @lookup_recursive_calls
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x1]
	cbz	x22, LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _max_count@GOTPAGE
Lloh1:
	ldr	x23, [x23, _max_count@GOTPAGEOFF]
	adrp	x24, _lookup_recursive_calls.priority@PAGE
	mov	w25, #16777215
	mov	w26, #33554430
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22]
	add	w10, w8, w25
	add	w8, w8, w26
	cmp	w10, #0
	csel	w8, w8, w10, lt
	asr	w8, w8, #24
	sdiv	w8, w9, w8
	neg	w1, w8
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x2, x22
	bl	_fibheap_insert
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23]
	cbnz	w8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x24, _lookup_recursive_calls.priority@PAGEOFF]
	add	w8, w1, #1
	str	w8, [x24, _lookup_recursive_calls.priority@PAGEOFF]
	b	LBB0_3
LBB0_8:
	ldr	x21, [x21]
	cbnz	x21, LBB0_11
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [x21, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_lookup_recursive_calls
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_lookup_recursive_calls.priority,4,2 ; @lookup_recursive_calls.priority
	.comm	_max_count,4,2                  ; @max_count
	.no_dead_strip	_lookup_recursive_calls
.subsections_via_symbols
