	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetNextHeapBlock
_GetNextHeapBlock:                      ## @GetNextHeapBlock
	.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	%rsi, %rbx
	movq	%rdi, %r15
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_r_return_val_if_fail
	movq	(%r15), %rdx
	movq	(%rbx), %rax
	cmpq	%rdx, %rax
	ja	LBB0_10
## %bb.1:
	movq	16(%r15), %rcx
	leaq	(%rax,%rax,2), %rdi
	movl	(%rcx,%rdi,8), %esi
	testb	$2, %sil
	jne	LBB0_2
## %bb.5:
	movl	4(%rcx,%rdi,8), %r8d
	movl	%r8d, 12(%rbx)
	movl	8(%rcx,%rdi,8), %r9d
	movq	_EXTRA_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r9d, %edx
	je	LBB0_7
## %bb.6:
	notl	%edx
	andl	%edx, %r9d
	movslq	%r9d, %rdx
	movq	%rdx, 16(%rbx)
	subl	8(%rdx), %r8d
	movl	%r8d, 12(%rbx)
	movl	(%rdx), %edx
	addl	16(%rcx,%rdi,8), %edx
	movl	%edx, 8(%rbx)
	jmp	LBB0_8
LBB0_2:
	leaq	(%rcx,%rdi,8), %rdi
	addq	$24, %rdi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rax
	ja	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15), %esi
	addl	-8(%rdi), %esi
	movl	%esi, 8(%rbx)
	incq	%rax
	movl	4(%rcx), %esi
	movl	%esi, 12(%rbx)
	movl	(%rdi), %esi
	addq	$24, %rdi
	testb	$2, %sil
	jne	LBB0_3
	jmp	LBB0_9
LBB0_7:
	movq	$0, 16(%rbx)
	addl	%r8d, 8(%rbx)
LBB0_8:
	incq	%rax
LBB0_9:
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_UPDATE_FLAGS
	movl	$1, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTRA_FLAG,4,2                 ## @EXTRA_FLAG
	.no_dead_strip	_GetNextHeapBlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetNextHeapBlock
_GetNextHeapBlock:                      ; @GetNextHeapBlock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w0, ne
	mov	w1, #0
	bl	_r_return_val_if_fail
	mov	w0, #0
	ldr	x8, [x19]
	ldr	x10, [x20]
	cmp	x8, x10
	b.hi	LBB0_11
; %bb.1:
	ldr	x9, [x20, #16]
	mov	w11, #24
	mul	x11, x8, x11
	ldr	w1, [x9, x11]
	tbnz	w1, #1, LBB0_4
; %bb.2:
	mov	w10, #24
	madd	x11, x8, x10, x9
	ldp	w10, w11, [x11, #4]
	str	w10, [x19, #12]
Lloh0:
	adrp	x12, _EXTRA_FLAG@GOTPAGE
Lloh1:
	ldr	x12, [x12, _EXTRA_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_8
; %bb.3:
	bic	w11, w11, w12
	sxtw	x11, w11
	str	x11, [x19, #16]
	ldr	w12, [x11, #8]
	sub	w10, w10, w12
	mov	w12, #24
	madd	x9, x8, x12, x9
	ldr	w9, [x9, #16]
	ldr	w11, [x11]
	add	w9, w11, w9
	str	w10, [x19, #12]
	b	LBB0_9
LBB0_4:
	mov	w11, #24
	madd	x11, x8, x11, x9
	add	x11, x11, #24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x10
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w12, [x11, #-8]
	ldr	w13, [x20, #8]
	add	w12, w13, w12
	add	x8, x8, #1
	ldr	w13, [x9, #4]
	stp	w12, w13, [x19, #8]
	ldr	w1, [x11], #24
	tbnz	w1, #1, LBB0_5
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	str	xzr, [x19, #16]
	ldr	w9, [x19, #8]
	add	w9, w9, w10
LBB0_9:
	str	w9, [x19, #8]
	add	x8, x8, #1
LBB0_10:
	str	x8, [x19]
	mov	x0, x19
	bl	_UPDATE_FLAGS
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTRA_FLAG,4,2                 ; @EXTRA_FLAG
	.no_dead_strip	_GetNextHeapBlock
.subsections_via_symbols
