	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_database_info_list_new         ## -- Begin function database_info_list_new
	.p2align	4, 0x90
_database_info_list_new:                ## @database_info_list_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
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_libretrodb_new
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_libretrodb_cursor_new
	movq	%rax, %r13
	testq	%r14, %r14
	je	LBB0_11
## %bb.1:
	testq	%r13, %r13
	je	LBB0_11
## %bb.2:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_database_cursor_open
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	jne	LBB0_12
	jmp	LBB0_13
LBB0_4:
	movl	$144, %edi
	callq	_malloc
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	xorl	%r15d, %r15d
	movl	$0, (%rax)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%rax)
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$-1, %r12d
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movq	%r13, %rdi
	leaq	-208(%rbp), %rsi
	callq	_database_cursor_iterate
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %r13
	leal	1(%r15), %ebx
	movl	%ebx, %eax
	shll	$4, %eax
	leal	(%rax,%rax,8), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r14
	movl	%r15d, %eax
	leaq	(%rax,%rax,8), %rdi
	shlq	$4, %rdi
	addq	%r14, %rdi
	leaq	-208(%rbp), %rsi
	movl	$144, %edx
	callq	_memcpy
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r15d
	movq	%r13, %r14
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rbx)
	movl	%r15d, (%rbx)
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_database_cursor_close
	movq	%r14, %rdi
	callq	_libretrodb_free
LBB0_13:
	testq	%r13, %r13
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_libretrodb_cursor_free
LBB0_15:
	movq	%rbx, %rax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_free
LBB0_18:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	movq	%r13, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_20
## %bb.19:
	callq	_free
LBB0_20:
	movq	-96(%rbp), %rdi
	testq	%rdi, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_22
## %bb.21:
	callq	_free
LBB0_22:
	movq	-104(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_free
LBB0_24:
	movq	-112(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	callq	_free
LBB0_26:
	movq	-120(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	callq	_free
LBB0_28:
	movq	-128(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.29:
	callq	_free
LBB0_30:
	movq	-136(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:
	callq	_free
LBB0_32:
	movq	-144(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.33:
	callq	_free
LBB0_34:
	movq	-152(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.35:
	callq	_free
LBB0_36:
	movq	-160(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_38
## %bb.37:
	callq	_free
LBB0_38:
	movq	-168(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_40
## %bb.39:
	callq	_free
LBB0_40:
	movq	-176(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_42
## %bb.41:
	callq	_free
LBB0_42:
	movq	-184(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_44
## %bb.43:
	callq	_free
LBB0_44:
	movq	-192(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_46
## %bb.45:
	callq	_free
LBB0_46:
	movq	%r15, %rdi
	callq	_database_info_list_free
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_database_info_list_new         ; -- Begin function database_info_list_new
	.p2align	2
_database_info_list_new:                ; @database_info_list_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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, x1
	mov	x23, x0
	bl	_libretrodb_new
	mov	x20, x0
	bl	_libretrodb_cursor_new
	mov	x19, x0
	mov	x21, #0
	cbz	x20, LBB0_11
; %bb.1:
	cbz	x19, LBB0_11
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_database_cursor_open
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, #0
	cbnz	x20, LBB0_12
	b	LBB0_13
LBB0_4:
	mov	w25, #144
	mov	w0, #144
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.5:
	mov	w26, #0
	mov	x22, #0
	str	wzr, [x21]
	str	xzr, [x21, #8]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmn	w23, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_database_cursor_iterate
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w27, w26, #1
	add	w8, w27, w27, lsl #3
	lsl	w1, w8, #4
	mov	x0, x22
	bl	_realloc
	cbz	x0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	umaddl	x0, w26, w25, x0
	mov	x1, sp
	mov	w2, #144
	bl	_memcpy
	mov	x22, x24
	mov	x26, x27
	b	LBB0_6
LBB0_10:
	str	x22, [x21, #8]
	str	w26, [x21]
LBB0_11:
	cbz	x20, LBB0_13
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_database_cursor_close
	mov	x0, x20
	bl	_libretrodb_free
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_libretrodb_cursor_free
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_16:
	ldr	x0, [sp, #128]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_free
LBB0_18:
	ldr	x0, [sp, #120]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_free
LBB0_20:
	ldr	x0, [sp, #112]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_free
LBB0_22:
	ldr	x0, [sp, #104]
	cbz	x0, LBB0_24
; %bb.23:
	bl	_free
LBB0_24:
	ldr	x0, [sp, #96]
	cbz	x0, LBB0_26
; %bb.25:
	bl	_free
LBB0_26:
	ldr	x0, [sp, #88]
	cbz	x0, LBB0_28
; %bb.27:
	bl	_free
LBB0_28:
	ldr	x0, [sp, #80]
	cbz	x0, LBB0_30
; %bb.29:
	bl	_free
LBB0_30:
	ldr	x0, [sp, #72]
	cbz	x0, LBB0_32
; %bb.31:
	bl	_free
LBB0_32:
	ldr	x0, [sp, #64]
	cbz	x0, LBB0_34
; %bb.33:
	bl	_free
LBB0_34:
	ldr	x0, [sp, #56]
	cbz	x0, LBB0_36
; %bb.35:
	bl	_free
LBB0_36:
	ldr	x0, [sp, #48]
	cbz	x0, LBB0_38
; %bb.37:
	bl	_free
LBB0_38:
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_40
; %bb.39:
	bl	_free
LBB0_40:
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_42
; %bb.41:
	bl	_free
LBB0_42:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_44
; %bb.43:
	bl	_free
LBB0_44:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_46
; %bb.45:
	bl	_free
LBB0_46:
	mov	x0, x21
	bl	_database_info_list_free
	mov	x0, x22
	bl	_free
	mov	x0, x21
	bl	_free
	mov	x21, #0
	cbnz	x20, LBB0_12
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
