	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_message_internal          ## -- Begin function load_message_internal
	.p2align	4, 0x90
_load_message_internal:                 ## @load_message_internal
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, 8(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rdi)
	movl	$-1, (%rdi)
	movups	%xmm0, 16(%rdi)
	testq	%rsi, %rsi
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movl	12(%r15), %edi
	movl	%r14d, %esi
	callq	_tree_lookup
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	callq	_assert
LBB0_4:
	movl	8(%r15), %edi
	movl	%r14d, %esi
	callq	_tree_lookup
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %rcx
	movq	8(%rax), %rax
	movq	%rax, (%rcx)
LBB0_6:
	testq	%r12, %r12
	jne	LBB0_7
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
	testq	%r12, %r12
	je	LBB0_8
LBB0_7:
	cmpl	%r14d, (%r12)
	jge	LBB0_9
LBB0_8:
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_assert
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_get_user_metafile
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movq	%r15, %rdi
	callq	_get_user_metafile
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movl	(%rax), %eax
	xorl	%edi, %edi
	cmpl	4(%r12), %eax
	setge	%dil
	jmp	LBB0_17
LBB0_11:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	$-2, %r13d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.12:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_load_user_metafile
	testq	%rax, %rax
	je	LBB0_23
## %bb.13:
	movq	(%rax), %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_15:
	xorl	%edi, %edi
LBB0_17:
	callq	_assert
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	movl	4(%r12), %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_user_metafile_message_lookup
	movq	%rax, 8(%rbx)
	testq	%r13, %r13
	sete	%cl
	testq	%rax, %rax
	setne	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	cmpl	$0, (%rbx)
	movq	8(%rbx), %rax
	jns	LBB0_22
## %bb.19:
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movzwl	(%rax), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_22
LBB0_20:
	xorl	%eax, %eax
LBB0_22:
	xorl	%r13d, %r13d
	testq	%rax, %rax
	setne	%r13b
LBB0_23:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_message_internal          ; -- Begin function load_message_internal
	.p2align	2
_load_message_internal:                 ; @load_message_internal
	.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	x25, x5
	mov	x20, x4
	mov	x24, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x26, x0
	str	xzr, [x26, #16]!
	str	xzr, [x0, #8]
	stp	xzr, xzr, [x0, #32]
	mov	w8, #-1
	str	w8, [x0]
	str	xzr, [x0, #24]
	cbz	x1, LBB0_6
; %bb.1:
	ldr	w0, [x21, #12]
	mov	x1, x20
	bl	_tree_lookup
	mov	x23, x0
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #0
	bl	_assert
LBB0_3:
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_tree_lookup
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x0, #8]
	str	x8, [x26]
LBB0_5:
	cbnz	x22, LBB0_7
	b	LBB0_8
LBB0_6:
	mov	x23, #0
	cbz	x22, LBB0_8
LBB0_7:
	ldr	w8, [x22]
	cmp	w8, w20
	b.ge	LBB0_9
LBB0_8:
	cmp	x23, #0
	cset	w0, eq
	bl	_assert
	mov	w0, #0
	b	LBB0_23
LBB0_9:
	cbz	x21, LBB0_13
; %bb.10:
	mov	x0, x21
	bl	_get_user_metafile
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x21
	bl	_get_user_metafile
	mov	x24, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_17
; %bb.12:
	ldr	w8, [x8]
	ldr	w9, [x22, #4]
	cmp	w8, w9
	cset	w0, ge
	b	LBB0_18
LBB0_13:
	cbz	w25, LBB0_16
; %bb.14:
	mov	x0, x24
	bl	_load_user_metafile
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x24, [x0]
	b	LBB0_19
LBB0_16:
	mov	w0, #-2
	b	LBB0_23
LBB0_17:
	mov	w0, #0
LBB0_18:
	bl	_assert
LBB0_19:
	ldr	w1, [x22, #4]
	mov	x0, x24
	mov	x2, x20
	mov	x3, x21
	bl	_user_metafile_message_lookup
	str	x0, [x19, #8]
	cmp	x23, #0
	ccmp	x0, #0, #0, ne
	cset	w0, ne
	bl	_assert
	ldr	w9, [x19]
	ldr	x8, [x19, #8]
	tbz	w9, #31, LBB0_22
; %bb.20:
	cbz	x8, LBB0_22
; %bb.21:
	ldrh	w9, [x8]
	str	w9, [x19]
LBB0_22:
	cmp	x8, #0
	cset	w0, ne
LBB0_23:
	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
