	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function json_value_to_mrb_value
_json_value_to_mrb_value:               ## @json_value_to_mrb_value
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_json_value_get_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_nil_value                  ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	callq	_json_value_get_string
	movq	%r13, %rdi
	movq	%rax, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_str_new_cstr               ## TAILCALL
LBB0_6:
	movq	%r13, %rdi
	callq	_mrb_hash_new
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_json_value_get_object
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_json_object_get_count
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_mrb_gc_arena_save
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_json_object_get_name
	movq	%r14, %r12
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mrb_str_new_cstr
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r15, %r13
	movq	%r14, %rsi
	movq	%r12, %r14
	callq	_json_object_get_value
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_json_value_to_mrb_value
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	callq	_mrb_hash_set
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_mrb_gc_arena_restore
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_8
	jmp	LBB0_16
LBB0_4:
	movq	%rbx, %rdi
	callq	_json_value_get_number
	roundsd	$9, %xmm0, %xmm1
	ucomisd	%xmm0, %xmm1
	jne	LBB0_5
	jp	LBB0_5
## %bb.17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_fixnum_value               ## TAILCALL
LBB0_15:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_mrb_raise
                                        ## implicit-def: $r14
	jmp	LBB0_16
LBB0_13:
	movq	%rbx, %rdi
	callq	_json_value_get_boolean
	testl	%eax, %eax
	je	LBB0_14
## %bb.18:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_true_value                 ## TAILCALL
LBB0_9:
	movq	%r13, %rdi
	callq	_mrb_ary_new
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_json_value_get_array
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_json_array_get_count
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rax, %r12
	callq	_mrb_gc_arena_save
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_json_array_get_value
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_json_value_to_mrb_value
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_mrb_ary_push
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mrb_gc_arena_restore
	movq	%r12, %rax
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_11
## %bb.12:
	movq	%r15, %r14
LBB0_16:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_float_value                ## TAILCALL
LBB0_14:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_false_value                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_15
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid argument"

	.no_dead_strip	_json_value_to_mrb_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function json_value_to_mrb_value
_json_value_to_mrb_value:               ; @json_value_to_mrb_value
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_json_value_get_type
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_9
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	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
	b	_mrb_nil_value
LBB0_3:
	mov	x0, x21
	bl	_json_value_get_string
	mov	x1, x0
	mov	x0, x19
	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
	b	_mrb_str_new_cstr
LBB0_4:
	mov	x0, x19
	bl	_mrb_hash_new
	mov	x20, x0
	mov	x0, x21
	bl	_json_value_get_object
	mov	x21, x0
	bl	_json_object_get_count
	cbz	x0, LBB0_15
; %bb.5:
	mov	x22, x0
	mov	x23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mrb_gc_arena_save
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_json_object_get_name
	mov	x25, x0
	mov	x0, x19
	mov	x1, x25
	bl	_mrb_str_new_cstr
	mov	x26, x0
	mov	x0, x21
	mov	x1, x25
	bl	_json_object_get_value
	mov	x1, x0
	mov	x0, x19
	bl	_json_value_to_mrb_value
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x26
	bl	_mrb_hash_set
	mov	x0, x19
	mov	x1, x24
	bl	_mrb_gc_arena_restore
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_6
	b	LBB0_15
LBB0_7:
	mov	x0, x21
	bl	_json_value_get_number
	frintm	d1, d0
	fcmp	d1, d0
	b.ne	LBB0_16
; %bb.8:
	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
	b	_mrb_fixnum_value
LBB0_9:
Lloh2:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
                                        ; implicit-def: $x20
	b	LBB0_15
LBB0_10:
	mov	x0, x21
	bl	_json_value_get_boolean
	cbz	w0, LBB0_17
; %bb.11:
	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
	b	_mrb_true_value
LBB0_12:
	mov	x0, x19
	bl	_mrb_ary_new
	mov	x20, x0
	mov	x0, x21
	bl	_json_value_get_array
	mov	x21, x0
	bl	_json_array_get_count
	cbz	x0, LBB0_15
; %bb.13:
	mov	x22, x0
	mov	x23, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mrb_gc_arena_save
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_json_array_get_value
	mov	x1, x0
	mov	x0, x19
	bl	_json_value_to_mrb_value
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_ary_push
	mov	x0, x19
	mov	x1, x24
	bl	_mrb_gc_arena_restore
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_14
LBB0_15:
	mov	x0, x20
	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
LBB0_16:
	mov	x0, x19
	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
	b	_mrb_float_value
LBB0_17:
	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
	b	_mrb_false_value
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid argument"

	.no_dead_strip	_json_value_to_mrb_value
.subsections_via_symbols
