	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_idm_set                        ## -- Begin function idm_set
	.p2align	4, 0x90
_idm_set:                               ## @idm_set
	.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	_IDX_MAX_INDEX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movl	%esi, %edi
	callq	_idx_array_index
	cmpq	$0, (%r12,%rax,8)
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_idm_grow
	testq	%rax, %rax
	js	LBB0_4
LBB0_5:
	movq	(%r15), %r15
	movl	%ebx, %edi
	callq	_idx_array_index
	movq	(%r15,%rax,8), %r15
	movl	%ebx, %edi
	callq	_idx_entry_index
	movq	%r14, (%r15,%rax,8)
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$-1, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IDX_MAX_INDEX,4,2              ## @IDX_MAX_INDEX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_idm_set                        ; -- Begin function idm_set
	.p2align	2
_idm_set:                               ; @idm_set
	.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
Lloh0:
	adrp	x8, _IDX_MAX_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDX_MAX_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	mov	w19, #-1
	b	LBB0_5
LBB0_2:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x0]
	mov	x0, x1
	bl	_idx_array_index
	ldr	x8, [x22, x0, lsl #3]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	_idm_grow
	tbnz	x0, #63, LBB0_6
LBB0_4:
	ldr	x21, [x21]
	mov	x0, x19
	bl	_idx_array_index
	ldr	x21, [x21, x0, lsl #3]
	mov	x0, x19
	bl	_idx_entry_index
	str	x20, [x21, x0, lsl #3]
LBB0_5:
	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
LBB0_6:
	mov	w19, #-1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IDX_MAX_INDEX,4,2              ; @IDX_MAX_INDEX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
