	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eset_first_fit_locked
_eset_first_fit_locked:                 ## @eset_first_fit_locked
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rdi
	movq	%rsi, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_sz_psz_quantize_ceil
	movl	%eax, %edi
	callq	_sz_psz2ind
	movq	%rax, %rbx
	movq	_maps_coalesce@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_opt_retain@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	je	LBB0_1
## %bb.5:
	movl	16(%r12), %edi
	movq	_eset_bitmap_info@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	callq	_bitmap_ffu
	movq	%rax, %r14
	movq	_SC_NPSIZES@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	incq	%rax
	xorl	%ebx, %ebx
	cmpq	%rax, %r14
	jae	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	(,%r14,4), %rbx
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	callq	_extent_heap_empty
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	addq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_extent_heap_first
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_extent_size_get
	xorl	%edi, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rax
	setae	%dil
	callq	_assert
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_sz_pind2sz
	movq	_opt_lg_extent_max_active_fit@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shrq	%cl, %rax
	cmpq	%rbx, %rax
	ja	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_extent_snad_comp
	testq	%rax, %rax
	jns	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rbx
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	je	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	setb	%al
	movzbl	%al, %edi
	callq	_assert
	movl	16(%r12), %edi
	incq	%r14
	movq	_eset_bitmap_info@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_bitmap_ffu
	movq	%rax, %r14
	movslq	(%r13), %rax
	incq	%rax
	cmpq	%rax, %r14
	jb	LBB0_7
	jmp	LBB0_3
LBB0_1:
	shlq	$2, %rbx
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	callq	_extent_heap_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	8(%r12), %rbx
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_extent_heap_first              ## TAILCALL
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_maps_coalesce,4,2              ## @maps_coalesce
	.comm	_opt_retain,4,2                 ## @opt_retain
	.comm	_eset_bitmap_info,4,2           ## @eset_bitmap_info
	.comm	_SC_NPSIZES,4,2                 ## @SC_NPSIZES
	.comm	_opt_lg_extent_max_active_fit,8,3 ## @opt_lg_extent_max_active_fit
	.no_dead_strip	_eset_first_fit_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eset_first_fit_locked
_eset_first_fit_locked:                 ; @eset_first_fit_locked
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x0, x2
	bl	_sz_psz_quantize_ceil
	bl	_sz_psz2ind
	mov	x21, x0
Lloh0:
	adrp	x8, _maps_coalesce@GOTPAGE
Lloh1:
	ldr	x8, [x8, _maps_coalesce@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _opt_retain@GOTPAGE
Lloh4:
	ldr	x9, [x9, _opt_retain@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cbz	w8, LBB0_10
; %bb.1:
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x1, _eset_bitmap_info@GOTPAGE
Lloh7:
	ldr	x1, [x1, _eset_bitmap_info@GOTPAGEOFF]
	mov	x2, x21
	bl	_bitmap_ffu
Lloh8:
	adrp	x25, _SC_NPSIZES@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SC_NPSIZES@GOTPAGEOFF]
	ldrsw	x8, [x25]
	add	x8, x8, #1
	cmp	x0, x8
	b.hs	LBB0_11
; %bb.2:
	mov	x22, x0
	mov	x21, #0
Lloh10:
	adrp	x23, _eset_bitmap_info@GOTPAGE
Lloh11:
	ldr	x23, [x23, _eset_bitmap_info@GOTPAGEOFF]
Lloh12:
	adrp	x26, _opt_lg_extent_max_active_fit@GOTPAGE
Lloh13:
	ldr	x26, [x26, _opt_lg_extent_max_active_fit@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x24, x22, #2
	add	x0, x8, x24
	bl	_extent_heap_empty
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #8]
	add	x0, x8, x24
	bl	_extent_heap_first
	mov	x24, x0
	bl	_extent_size_get
	cmp	x0, x20
	cset	w0, hs
	bl	_assert
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_sz_pind2sz
	ldr	x8, [x26]
	lsr	x8, x0, x8
	cmp	x8, x20
	b.hi	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	mov	x1, x21
	bl	_extent_snad_comp
	tbz	x0, #63, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x24
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x25]
	cmp	x22, x8
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cset	w0, lo
	bl	_assert
	ldr	w0, [x19, #16]
	add	x2, x22, #1
	mov	x1, x23
	bl	_bitmap_ffu
	mov	x22, x0
	ldrsw	x8, [x25]
	add	x8, x8, #1
	cmp	x0, x8
	b.lo	LBB0_3
	b	LBB0_12
LBB0_10:
	ldr	x8, [x19, #8]
	add	x0, x8, x21, lsl #2
	bl	_extent_heap_empty
	cbz	x0, LBB0_13
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	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_13:
	ldr	x8, [x19, #8]
	add	x0, x8, x21, lsl #2
	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
	b	_extent_heap_first
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_maps_coalesce,4,2              ; @maps_coalesce
	.comm	_opt_retain,4,2                 ; @opt_retain
	.comm	_eset_bitmap_info,4,2           ; @eset_bitmap_info
	.comm	_SC_NPSIZES,4,2                 ; @SC_NPSIZES
	.comm	_opt_lg_extent_max_active_fit,8,3 ; @opt_lg_extent_max_active_fit
	.no_dead_strip	_eset_first_fit_locked
.subsections_via_symbols
