	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iheap_insert
_iheap_insert:                          ## @iheap_insert
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_HC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_MAX_WORDS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setl	%dil
	callq	_assert
	cmpl	$0, 8(%r14)
	je	LBB0_8
## %bb.1:
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movq	_H@GOTPCREL(%rip), %r8
	movl	%ecx, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	shrl	%eax
	movq	(%r8), %rsi
	movq	(%rsi,%rax,8), %rdi
	cmpq	%rbx, (%rdi)
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %edx
	movq	%rdi, (%rsi,%rdx,8)
	cmpl	$3, %ecx
	movl	%eax, %ecx
	ja	LBB0_3
	jmp	LBB0_7
LBB0_6:
	movl	%ecx, %eax
LBB0_7:
	movq	_H@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	%r14, (%rcx,%rax,8)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HC,4,2                         ## @HC
	.comm	_MAX_WORDS,4,2                  ## @MAX_WORDS
	.comm	_H,8,3                          ## @H
	.no_dead_strip	_iheap_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iheap_insert
_iheap_insert:                          ; @iheap_insert
	.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
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _HC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HC@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _MAX_WORDS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_WORDS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, lt
	bl	_assert
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	w10, [x21]
	add	w9, w10, #1
	str	w9, [x21]
Lloh5:
	adrp	x8, _H@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H@GOTPAGEOFF]
	cmp	w10, #1
	b.lt	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w10, w9, #1
	ldr	x11, [x8]
	ldr	x12, [x11, w10, uxtw #3]
	ldr	x13, [x12]
	cmp	x13, x20
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x12, [x11, w9, uxtw #3]
	cmp	w9, #3
	mov	x9, x10
	b.hi	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x10, x9
LBB0_5:
	ldr	x8, [x8]
	str	x19, [x8, w10, sxtw #3]
LBB0_6:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HC,4,2                         ; @HC
	.comm	_MAX_WORDS,4,2                  ; @MAX_WORDS
	.comm	_H,8,3                          ; @H
	.no_dead_strip	_iheap_insert
.subsections_via_symbols
