	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dat_converter_bt_node_insert
_dat_converter_bt_node_insert:          ## @dat_converter_bt_node_insert
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdx), %edi
	callq	_retro_assert
	movq	(%r15), %rax
	movq	_DAT_CONVERTER_MAP_LIST@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rbx
	addq	$24, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	callq	_retro_assert
	movq	(%r15), %rax
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_retro_assert
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rcx), %eax
	subl	4(%r14), %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	movq	8(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,8), %edi
	movl	(%r14), %esi
	callq	_strcmp
	testl	%eax, %eax
	js	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rbx
	addq	$16, %rbx
	jmp	LBB0_7
LBB0_2:
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, (%rbx)
	jmp	LBB0_18
LBB0_10:
	movq	8(%r15), %rax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rax,%rcx,8), %rdx
	movq	_DAT_CONVERTER_LIST_MAP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_16
## %bb.11:
	cmpq	%rdx, 8(%r14)
	jne	LBB0_17
## %bb.12:
	movq	16(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	16(%r14), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_retro_assert
	movq	16(%r14), %rdi
	cmpl	$0, 8(%rdi)
	jle	LBB0_15
## %bb.13:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %rax
	movq	16(%rdi), %rsi
	addq	%r12, %rsi
	movq	%rax, %rdi
	callq	_dat_converter_list_append
	incq	%r13
	movq	16(%r14), %rdi
	movslq	8(%rdi), %rax
	addq	$4, %r12
	cmpq	%rax, %r13
	jl	LBB0_14
LBB0_15:
	movl	$0, 8(%rdi)
	callq	_dat_converter_list_free
	jmp	LBB0_17
LBB0_16:
	movq	16(%r14), %rdx
	movq	%rdx, 16(%rax,%rcx,8)
	movups	(%r14), %xmm0
	movups	%xmm0, (%rax,%rcx,8)
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAT_CONVERTER_MAP_LIST,8,3     ## @DAT_CONVERTER_MAP_LIST
	.comm	_DAT_CONVERTER_LIST_MAP,8,3     ## @DAT_CONVERTER_LIST_MAP
	.no_dead_strip	_dat_converter_bt_node_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dat_converter_bt_node_insert
_dat_converter_bt_node_insert:          ; @dat_converter_bt_node_insert
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x2]
	bl	_retro_assert
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _DAT_CONVERTER_MAP_LIST@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DAT_CONVERTER_MAP_LIST@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_retro_assert
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.1:
	mov	w23, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x19, x8, #24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	bl	_retro_assert
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_retro_assert
	ldr	x8, [x19]
	cbz	x8, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	ldr	w10, [x20, #4]
	subs	w0, w9, w10
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w0, #31, LBB0_7
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #8]
	ldr	x8, [x8, #8]
	mul	x8, x8, x23
	ldr	w0, [x9, x8]
	ldr	w1, [x20]
	bl	_strcmp
	tbnz	w0, #31, LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x19, x8, #16
	b	LBB0_3
LBB0_9:
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	str	x0, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x21, #8]
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
	mov	w10, #24
	madd	x10, x9, x10, x8
	ldr	x10, [x10, #8]
Lloh2:
	adrp	x11, _DAT_CONVERTER_LIST_MAP@GOTPAGE
Lloh3:
	ldr	x11, [x11, _DAT_CONVERTER_LIST_MAP@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_17
; %bb.12:
	ldr	x11, [x20, #8]
	cmp	x11, x10
	b.ne	LBB0_18
; %bb.13:
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x9, [x20, #16]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_retro_assert
	ldr	x0, [x20, #16]
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #24
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
	madd	x8, x9, x24, x8
	ldr	x8, [x8, #16]
	ldr	x9, [x0, #16]
	add	x1, x9, x22
	mov	x0, x8
	bl	_dat_converter_list_append
	add	x23, x23, #1
	ldr	x0, [x20, #16]
	ldrsw	x8, [x0, #8]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_15
LBB0_16:
	str	wzr, [x0, #8]
	bl	_dat_converter_list_free
	mov	x0, #0
	b	LBB0_10
LBB0_17:
	mov	x0, #0
	mov	w10, #24
	ldr	q0, [x20]
	ldr	x11, [x20, #16]
	madd	x8, x9, x10, x8
	str	x11, [x8, #16]
	str	q0, [x8]
	b	LBB0_10
LBB0_18:
	mov	x0, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DAT_CONVERTER_MAP_LIST,8,3     ; @DAT_CONVERTER_MAP_LIST
	.comm	_DAT_CONVERTER_LIST_MAP,8,3     ; @DAT_CONVERTER_LIST_MAP
	.no_dead_strip	_dat_converter_bt_node_insert
.subsections_via_symbols
