	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_get_mem                  ## -- Begin function alloc_get_mem
	.p2align	4, 0x90
_alloc_get_mem:                         ## @alloc_get_mem
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$0, 20(%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	16(%r14), %rdi
	callq	_lock_quick_lock
LBB0_2:
	movslq	(%r14), %rax
	leaq	32(,%rax,4), %r15
	movq	24(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_lock_get_mem
	addq	%rax, %r15
	movq	%rbx, %rdi
	callq	_alloc_special_next
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	movq	8(%r14), %r12
	movq	_ALLOC_REG_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpl	$0, 20(%r14)
	jne	LBB0_6
## %bb.5:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_lock_quick_unlock
LBB0_6:
	imulq	%r12, %rbx
	addq	%r15, %rbx
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALLOC_REG_SIZE,8,3             ## @ALLOC_REG_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_get_mem                  ; -- Begin function alloc_get_mem
	.p2align	2
_alloc_get_mem:                         ; @alloc_get_mem
	.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	w8, [x0, #20]
	cbnz	w8, LBB0_2
; %bb.1:
	add	x0, x19, #16
	bl	_lock_quick_lock
LBB0_2:
	ldrsw	x8, [x19]
	lsl	x8, x8, #2
	add	x21, x8, #32
	ldr	x20, [x19, #24]
	cbz	x20, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_lock_get_mem
	add	x21, x0, x21
	mov	x0, x20
	bl	_alloc_special_next
	mov	x20, x0
	cbnz	x0, LBB0_3
LBB0_4:
	ldr	x20, [x19, #8]
Lloh0:
	adrp	x8, _ALLOC_REG_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALLOC_REG_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_6
; %bb.5:
	add	x0, x19, #16
	bl	_lock_quick_unlock
LBB0_6:
	madd	x0, x22, x20, x21
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ALLOC_REG_SIZE,8,3             ; @ALLOC_REG_SIZE
.subsections_via_symbols
