	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_new
_handle_new:                            ## @handle_new
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%edi, %ebx
	movq	_first_unused_handle@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_num_handles@GOTPCREL(%rip), %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rsi
	incq	%rsi
	movq	%rsi, (%r14)
	movq	_handles@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$4, %edx
	movl	%ecx, %r12d
	movq	%r8, %r15
	callq	_xreallocarray
	movq	_handles@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rdi
	decq	%rdi
	callq	_handle_unused
	movq	_first_unused_handle@GOTPCREL(%rip), %rdi
	movq	%r15, %r8
	movl	%r12d, %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rdi), %eax
LBB0_2:
	movq	_handles@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movslq	%eax, %r14
	movq	%r14, %rax
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %r12
	movl	(%rdx,%r12), %eax
	movl	%eax, (%rdi)
	movl	%ebx, 4(%rdx,%r12)
	movq	%r8, 40(%rdx,%r12)
	movq	(%r15), %rax
	movl	%r13d, 8(%rax,%r12)
	movl	%ecx, 12(%rax,%r12)
	movq	%rsi, %rdi
	callq	_xstrdup
	movq	(%r15), %rcx
	movl	%eax, 32(%rcx,%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rcx,%r12)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_first_unused_handle,4,2        ## @first_unused_handle
	.comm	_num_handles,8,3                ## @num_handles
	.comm	_handles,8,3                    ## @handles
	.no_dead_strip	_handle_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_new
_handle_new:                            ; @handle_new
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x26, _first_unused_handle@GOTPAGE
Lloh1:
	ldr	x26, [x26, _first_unused_handle@GOTPAGEOFF]
	ldr	w24, [x26]
Lloh2:
	adrp	x25, _handles@GOTPAGE
Lloh3:
	ldr	x25, [x25, _handles@GOTPAGEOFF]
	cmn	w24, #1
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x24, _num_handles@GOTPAGE
Lloh5:
	ldr	x24, [x24, _num_handles@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, #1
	str	x1, [x24]
	ldr	x0, [x25]
	mov	w2, #4
	bl	_xreallocarray
	str	x0, [x25]
	ldr	x8, [x24]
	sub	x0, x8, #1
	bl	_handle_unused
	ldr	w24, [x26]
LBB0_2:
	ldr	x8, [x25]
	mov	w27, #48
	smaddl	x8, w24, w27, x8
	ldr	w9, [x8]
	str	w9, [x26]
	str	w23, [x8, #4]
	str	x22, [x8, #40]
	ldr	x8, [x25]
	smaddl	x8, w24, w27, x8
	stp	w21, w20, [x8, #8]
	mov	x0, x19
	bl	_xstrdup
	ldr	x8, [x25]
	smaddl	x8, w24, w27, x8
	str	w0, [x8, #32]
	stp	xzr, xzr, [x8, #16]
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_first_unused_handle,4,2        ; @first_unused_handle
	.comm	_num_handles,8,3                ; @num_handles
	.comm	_handles,8,3                    ; @handles
	.no_dead_strip	_handle_new
.subsections_via_symbols
