	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_special_obtain           ## -- Begin function alloc_special_obtain
	.p2align	4, 0x90
_alloc_special_obtain:                  ## @alloc_special_obtain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_log_assert
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_alloc_special_next
	movq	%rax, 16(%r14)
	decl	8(%r14)
LBB0_9:
	movq	%r14, %rdi
	callq	_alloc_get_id
	movq	%rax, (%rbx)
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	callq	_lock_quick_lock
	movq	(%r14), %rdi
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_alloc_special_next
	movq	(%r14), %rdi
	movq	%rax, 8(%rdi)
	decl	4(%rdi)
	callq	_lock_quick_unlock
	jmp	LBB0_9
LBB0_5:
	callq	_lock_quick_unlock
LBB0_6:
	movq	%r14, %rdi
	callq	_prealloc_setup
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_alloc_setup_special
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc_special_obtain: out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_special_obtain           ; -- Begin function alloc_special_obtain
	.p2align	2
_alloc_special_obtain:                  ; @alloc_special_obtain
	.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, x0
	bl	_log_assert
	ldr	x20, [x19, #16]
	cbz	x20, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_alloc_special_next
	str	x0, [x19, #16]
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #8]
LBB0_2:
	mov	x0, x19
	bl	_alloc_get_id
	str	x0, [x20]
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.5:
	bl	_lock_quick_lock
	ldr	x0, [x19]
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_alloc_special_next
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	w9, [x8, #4]
	sub	w9, w9, #1
	str	w9, [x8, #4]
	mov	x0, x8
	bl	_lock_quick_unlock
	b	LBB0_2
LBB0_7:
	bl	_lock_quick_unlock
LBB0_8:
	mov	x0, x19
	bl	_prealloc_setup
	mov	w0, #8
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_alloc_setup_special
	b	LBB0_2
LBB0_10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc_special_obtain: out of memory"

.subsections_via_symbols
