	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packed_backtrace
_packed_backtrace:                      ## @packed_backtrace
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rax), %r14
	movslq	(%rax), %rax
	shlq	$2, %rax
	movl	$0, -36(%rbp)
	movl	(%r14), %edx
	subq	%rax, %r14
	movq	_count_backtrace_i@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %r8
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_each_backtrace
	movl	-36(%rbp), %ebx
	shll	$2, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mrb_malloc
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
LBB0_2:
	movq	_bt_type@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_mrb_data_object_alloc
	movq	%rax, %rbx
	movl	-36(%rbp), %eax
	movl	%eax, (%rbx)
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edx
	movq	_pack_backtrace_i@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_each_backtrace
	movq	%rbx, %rdi
	callq	_mrb_obj_value
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_count_backtrace_i,4,2          ## @count_backtrace_i
	.comm	_bt_type,4,2                    ## @bt_type
	.comm	_pack_backtrace_i,4,2           ## @pack_backtrace_i
	.no_dead_strip	_packed_backtrace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packed_backtrace
_packed_backtrace:                      ; @packed_backtrace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	sub	x20, x9, x8, lsl #2
	str	wzr, [sp, #28]
	ldr	w2, [x9]
Lloh0:
	adrp	x8, _count_backtrace_i@GOTPAGE
Lloh1:
	ldr	x8, [x8, _count_backtrace_i@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x8, sp, #28
	str	x8, [sp]
	mov	x1, x20
	bl	_each_backtrace
	ldr	w8, [sp, #28]
	lsl	w22, w8, #2
	mov	x0, x19
	mov	x1, x22
	bl	_mrb_malloc
	mov	x21, x0
	str	x0, [sp, #16]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_memset
LBB0_2:
Lloh3:
	adrp	x3, _bt_type@GOTPAGE
Lloh4:
	ldr	x3, [x3, _bt_type@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	bl	_mrb_data_object_alloc
	mov	x21, x0
	ldr	w8, [sp, #28]
	str	w8, [x0]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _pack_backtrace_i@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pack_backtrace_i@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x8, sp, #16
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_each_backtrace
	mov	x0, x21
	bl	_mrb_obj_value
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_count_backtrace_i,4,2          ; @count_backtrace_i
	.comm	_bt_type,4,2                    ; @bt_type
	.comm	_pack_backtrace_i,4,2           ; @pack_backtrace_i
	.no_dead_strip	_packed_backtrace
.subsections_via_symbols
