	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function obj_alloc
_obj_alloc:                             ## @obj_alloc
	.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
	movl	%edi, %ebx
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r14
	movl	%ebx, 4(%rax)
	movq	_noids@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.4:
	movq	_oidtbl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_5
## %bb.7:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	cmpl	%eax, %ebx
	jne	LBB0_3
LBB0_8:
	movq	_oidtbl@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	leal	8(,%rax,8), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, (%r12)
	incl	(%r15)
	jmp	LBB0_11
LBB0_3:
	movq	_oidtbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_11:
	movl	%ebx, %ecx
	movq	%r14, (%rax,%rcx,8)
	movl	%ebx, (%r14)
	jmp	LBB0_12
LBB0_9:
	movq	%r14, %rdi
	callq	_free
	xorl	%r14d, %r14d
LBB0_12:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_noids,4,2                      ## @noids
	.comm	_oidtbl,8,3                     ## @oidtbl
	.no_dead_strip	_obj_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function obj_alloc
_obj_alloc:                             ; @obj_alloc
	.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	x20, x0
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	mov	x19, x0
	str	w20, [x0, #4]
Lloh0:
	adrp	x21, _noids@GOTPAGE
Lloh1:
	ldr	x21, [x21, _noids@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _oidtbl@GOTPAGE
Lloh3:
	ldr	x22, [x22, _oidtbl@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
	ldr	x9, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x20, lsl #3]
	cbz	x10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.4:
	mov	x20, x8
	b	LBB0_7
LBB0_5:
	mov	w20, #0
LBB0_6:
	cmp	w20, w8
	b.ne	LBB0_9
LBB0_7:
	ldr	x0, [x22]
	lsl	w8, w8, #3
	add	w1, w8, #8
	bl	_realloc
	cbz	x0, LBB0_11
; %bb.8:
	str	x0, [x22]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	b	LBB0_10
LBB0_9:
	ldr	x0, [x22]
LBB0_10:
	str	x19, [x0, w20, uxtw #3]
	str	w20, [x19]
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_noids,4,2                      ; @noids
	.comm	_oidtbl,8,3                     ; @oidtbl
	.no_dead_strip	_obj_alloc
.subsections_via_symbols
