	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iheap_pop
_iheap_pop:                             ## @iheap_pop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_HC@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	_H@GOTPCREL(%rip), %r9
	movq	(%r9), %rsi
	movq	8(%rsi), %r8
	cmpl	$0, 8(%r8)
	je	LBB0_3
## %bb.2:
	movl	%eax, %r11d
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r11d
	decl	%r11d
	movl	%r11d, (%rcx)
	je	LBB0_15
## %bb.4:
	movq	(%rsi,%rax,8), %r8
LBB0_5:
	movl	$1, %edi
	cmpl	$2, %r11d
	jl	LBB0_14
## %bb.6:
	movq	(%r8), %r10
	movl	$1, %ecx
	movl	$2, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rsi
	cmpl	%r11d, %eax
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %edi
	orl	$1, %edi
	movslq	%edi, %rdx
	movq	(%rsi,%rdx,8), %rdx
	movq	(%rdx), %rdx
	movslq	%eax, %rbx
	movq	(%rsi,%rbx,8), %rbx
	cmpq	(%rbx), %rdx
	jl	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %edi
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	%edi, %rax
	movq	(%rsi,%rax,8), %rax
	cmpq	(%rax), %r10
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movslq	%ecx, %rcx
	movq	%rax, (%rsi,%rcx,8)
	leal	(%rdi,%rdi), %eax
	movl	%edi, %ecx
	cmpl	%r11d, %eax
	jle	LBB0_7
## %bb.13:
	movq	(%r9), %rsi
	jmp	LBB0_14
LBB0_11:
	movl	%ecx, %edi
LBB0_14:
	movslq	%edi, %rax
	movq	%r8, (%rsi,%rax,8)
LBB0_15:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HC,4,2                         ## @HC
	.comm	_H,8,3                          ## @H
	.no_dead_strip	_iheap_pop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iheap_pop
_iheap_pop:                             ; @iheap_pop
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x12, _HC@GOTPAGE
Lloh1:
	ldr	x12, [x12, _HC@GOTPAGEOFF]
	ldr	w10, [x12]
	cbz	w10, LBB0_15
; %bb.1:
Lloh2:
	adrp	x9, _H@GOTPAGE
Lloh3:
	ldr	x9, [x9, _H@GOTPAGEOFF]
	ldr	x11, [x9]
	ldr	x8, [x11, #8]
	ldr	w13, [x8, #8]
	cbz	w13, LBB0_4
; %bb.2:
	cmp	w10, #2
	b.ge	LBB0_6
LBB0_3:
	mov	w14, #1
	b	LBB0_14
LBB0_4:
	subs	w13, w10, #1
	str	w13, [x12]
	b.eq	LBB0_15
; %bb.5:
	sxtw	x8, w10
	ldr	x8, [x11, x8, lsl #3]
	mov	x10, x13
	cmp	w10, #2
	b.lt	LBB0_3
LBB0_6:
	ldr	x12, [x8]
	mov	w13, #1
	mov	w15, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	w15, w10
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x14, w15
	orr	x14, x14, #0x1
	ldr	x16, [x11, x14, lsl #3]
	ldr	x16, [x16]
	ldr	x17, [x11, w15, sxtw #3]
	ldr	x17, [x17]
	cmp	x16, x17
	csel	w14, w14, w15, lt
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x14, x15
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x15, [x11, w14, sxtw #3]
	ldr	x16, [x15]
	cmp	x12, x16
	b.le	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x15, [x11, w13, sxtw #3]
	lsl	w15, w14, #1
	mov	x13, x14
	cmp	w15, w10
	b.le	LBB0_7
; %bb.12:
	ldr	x11, [x9]
	b	LBB0_14
LBB0_13:
	mov	x14, x13
LBB0_14:
	str	x8, [x11, w14, sxtw #3]
LBB0_15:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HC,4,2                         ; @HC
	.comm	_H,8,3                          ; @H
	.no_dead_strip	_iheap_pop
.subsections_via_symbols
