	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_get_ids                 ## -- Begin function lookup_get_ids
	.p2align	4, 0x90
_lookup_get_ids:                        ## @lookup_get_ids
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	cmpl	$0, (%rdi)
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_6
## %bb.1:
	leaq	4(%r12), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_map_int_int_get
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, (%r15)
	addq	$4, %r15
	decl	%r13d
	jmp	LBB0_5
LBB0_6:
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_map_int_int_used
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movslq	%eax, %rbx
	shlq	$2, %rbx
	movq	%rbx, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_dl_malloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_dl_malloc
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_map_int_int_pairs
	xorl	%edi, %edi
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	sete	%dil
	callq	_assert
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_9
## %bb.10:
	movl	%eax, %ecx
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_20:
	testb	$1, %cl
	je	LBB0_24
## %bb.21:
	cmpl	$-1, (%r14,%rax,4)
	je	LBB0_24
## %bb.22:
	testl	%r13d, %r13d
	jle	LBB0_24
## %bb.23:
	movl	(%rbx,%rax,4), %eax
	movl	%eax, (%r15)
	addq	$4, %r15
	jmp	LBB0_24
LBB0_7:
	subq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	sarq	$2, %r15
	jmp	LBB0_25
LBB0_9:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_24:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dl_free
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dl_free
	subq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	shrq	$2, %r15
LBB0_25:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%ecx, %edx
	andl	$-2, %edx
	xorl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rdx
	je	LBB0_20
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, (%r14,%rax,4)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rbx,%rax,4), %esi
	movl	%esi, (%r15)
	addq	$4, %r15
	decl	%r13d
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$-1, 4(%r14,%rax,4)
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%rbx,%rax,4), %esi
	movl	%esi, (%r15)
	addq	$4, %r15
	decl	%r13d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_get_ids                 ; -- Begin function lookup_get_ids
	.p2align	2
_lookup_get_ids:                        ; @lookup_get_ids
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	add	x22, x21, #4
	mov	x26, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x22
	bl	_map_int_int_get
	cmp	x0, #0
	ccmp	w20, #1, #8, eq
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x23, lsl #2]
	str	w8, [x26], #4
	sub	w20, w20, #1
	b	LBB0_2
LBB0_5:
	mov	x26, x19
LBB0_6:
	add	x25, x21, #4
	mov	x0, x25
	bl	_map_int_int_used
	cbz	w0, LBB0_13
; %bb.7:
	mov	x24, x0
	sbfiz	x21, x24, #2, #32
	mov	x0, x21
	bl	_dl_malloc
	mov	x22, x0
	mov	x0, x21
	bl	_dl_malloc
	mov	x23, x0
	mov	x0, x25
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_map_int_int_pairs
	cmp	w0, w24
	cset	w0, eq
	bl	_assert
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.8:
	mov	w8, w24
	mov	x9, x23
	mov	x10, x22
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #4
	add	x9, x9, #4
	subs	x8, x8, #1
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cmn	w11, #1
	ccmp	w20, #1, #8, ne
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w11, [x10]
	str	w11, [x26], #4
	sub	w20, w20, #1
	b	LBB0_9
LBB0_12:
	mov	x0, x22
	mov	x1, x21
	bl	_dl_free
	mov	x0, x23
	mov	x1, x21
	bl	_dl_free
	sub	x8, x26, x19
	lsr	x0, x8, #2
	b	LBB0_14
LBB0_13:
	sub	x8, x26, x19
	asr	x0, x8, #2
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
