	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_lv_record
_write_lv_record:                       ## @write_lv_record
	.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	%r8d, %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r14
	movq	%rsi, %rax
	cmpl	$2, (%rsi)
	jl	LBB0_1
## %bb.7:
	movl	$1, %r15d
	xorl	%r12d, %r12d
	movq	%rax, %rdx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_find_filename_index
	movl	%r13d, %ebx
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_mrb_assert
	movl	%r13d, %edi
	movl	%ebx, %r13d
	movq	%r14, %rsi
	callq	_uint16_to_bin
	movslq	%eax, %rbx
	leaq	(%r14,%rbx,4), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	8(%rax,%r12), %edi
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	callq	_uint16_to_bin
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%r14,%rbx,4), %rcx
	cltq
	leaq	(%rcx,%rax,4), %r14
	incq	%r15
	movslq	(%rdx), %rax
	addq	$16, %r12
	cmpq	%rax, %r15
	jge	LBB0_2
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdx), %rax
	movq	(%rax,%r12), %rdx
	testq	%rdx, %rdx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_RITE_LV_NULL_MARK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_uint16_to_bin
	movslq	%eax, %rbx
	leaq	(%r14,%rbx,4), %rsi
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_1:
	movq	%rax, %rdx
LBB0_2:
	movq	%r14, -64(%rbp)
	cmpl	$0, 4(%rdx)
	jle	LBB0_6
## %bb.3:
	movq	%rdx, %r12
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r15, %rcx
	movl	%r13d, %r8d
	callq	_write_lv_record
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.5:
	movq	-64(%rbp), %r14
LBB0_6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	_MRB_DUMP_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RITE_LV_NULL_MARK,4,2          ## @RITE_LV_NULL_MARK
	.comm	_MRB_DUMP_OK,4,2                ## @MRB_DUMP_OK
	.no_dead_strip	_write_lv_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_lv_record
_write_lv_record:                       ; @write_lv_record
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x24, [x2]
	ldr	w8, [x1]
	cmp	w8, #1
	b.le	LBB0_6
; %bb.1:
	mov	x26, #0
	mov	w27, #1
Lloh0:
	adrp	x28, _RITE_LV_NULL_MARK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RITE_LV_NULL_MARK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_find_filename_index
	mov	x25, x0
	cmn	w0, #1
	cset	w0, ne
	bl	_mrb_assert
	mov	x0, x25
	mov	x1, x24
	bl	_uint16_to_bin
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	add	x1, x24, w0, sxtw #2
	ldr	x8, [x22, #16]
	add	x8, x8, x26
	ldr	w0, [x8, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_uint16_to_bin
	add	x8, x24, x25, lsl #2
	add	x24, x8, w0, sxtw #2
	add	x27, x27, #1
	ldrsw	x8, [x22]
	add	x26, x26, #16
	cmp	x27, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	x2, [x8, x26]
	cbnz	x2, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	mov	x1, x24
	bl	_uint16_to_bin
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	add	x1, x24, w0, sxtw #2
	mov	w0, #0
	b	LBB0_3
LBB0_6:
	str	x24, [sp, #8]
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x1, [x8, x24, lsl #3]
	add	x2, sp, #8
	mov	x0, x23
	mov	x3, x21
	mov	x4, x20
	bl	_write_lv_record
	add	x24, x24, #1
	ldrsw	x8, [x22, #4]
	cmp	x24, x8
	b.lt	LBB0_8
; %bb.9:
	ldr	x24, [sp, #8]
LBB0_10:
	str	x24, [x19]
Lloh2:
	adrp	x8, _MRB_DUMP_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MRB_DUMP_OK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RITE_LV_NULL_MARK,4,2          ; @RITE_LV_NULL_MARK
	.comm	_MRB_DUMP_OK,4,2                ; @MRB_DUMP_OK
	.no_dead_strip	_write_lv_record
.subsections_via_symbols
