	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_kuery
_cmd_kuery:                             ## @cmd_kuery
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movb	(%rsi), %al
	movsbl	%al, %ecx
	cmpl	$99, %ecx
	jle	LBB0_8
## %bb.1:
	addl	$-100, %ecx
	cmpl	$15, %ecx
	ja	LBB0_81
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	xorl	%edi, %edi
	callq	_r_sandbox_enable
	testl	%eax, %eax
	jne	LBB0_24
## %bb.4:
	cmpb	$32, 1(%r12)
	jne	LBB0_45
## %bb.5:
	leaq	2(%r12), %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_51
## %bb.6:
	movq	%rax, %rbx
	movq	%r12, %r13
	incq	%rbx
	movb	$0, (%rax)
	movq	%r15, %r12
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sdb_ns_path
	testq	%rax, %rax
	je	LBB0_54
## %bb.7:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_sdb_file
	movq	%r15, %rdi
	callq	_sdb_sync
	jmp	LBB0_56
LBB0_8:
	testl	%ecx, %ecx
	je	LBB0_33
## %bb.9:
	cmpl	$32, %ecx
	je	LBB0_34
## %bb.10:
	cmpl	$63, %ecx
	jne	LBB0_81
## %bb.11:
	movq	_help_msg_k@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_r_core_cmd_help
	jmp	LBB0_80
LBB0_12:
	movq	%r12, -1080(%rbp)               ## 8-byte Spill
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sdb_querys
	testq	%rax, %rax
	je	LBB0_37
## %bb.13:
	movq	%rax, %r12
	movq	%r15, -1088(%rbp)               ## 8-byte Spill
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_r_cons_printf
	cmpb	$0, (%r12)
	je	LBB0_49
## %bb.14:
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_48
## %bb.15:
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	subq	%r12, %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_r_str_ndup
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_r_cons_printf
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	callq	_r_str_newf
	movq	%r13, %rbx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movq	%rax, -1096(%rbp)               ## 8-byte Spill
	callq	_sdb_querys
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rax, %r15
	cmpb	$0, (%rax)
	je	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	%rax, %r13
	movq	%rax, %rsi
	subq	%r15, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_r_str_ndup
	leaq	L_.str.8(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_r_cons_printf
	movq	%r13, %r15
	incq	%r15
	cmpb	$0, 1(%r13)
	jne	LBB0_18
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.6(%rip), %rdi
	callq	_r_cons_println
	xorl	%r15d, %r15d
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_r_cons_printf
	cmpb	$0, 1(%r14,%r12)
	je	LBB0_50
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	%r14, %r12
	incq	%r12
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_strchr
	movq	%rax, %r14
	testq	%rax, %rax
	movq	%rbx, %r13
	jne	LBB0_16
	jmp	LBB0_50
LBB0_23:
	xorl	%edi, %edi
	callq	_r_sandbox_enable
	testl	%eax, %eax
	je	LBB0_38
LBB0_24:
	leaq	L_.str.11(%rip), %rdi
LBB0_25:
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_86
LBB0_26:
	cmpl	$0, 16(%r15)
	jne	LBB0_86
## %bb.27:
	xorl	%eax, %eax
	callq	_r_cons_is_interactive
	testl	%eax, %eax
	je	LBB0_86
## %bb.28:
	cmpb	$32, 1(%r12)
	jne	LBB0_61
## %bb.29:
	leaq	2(%r12), %rdi
	callq	_strdup
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_60
## %bb.30:
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_58
## %bb.31:
	movq	%r14, %rsi
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movb	$0, (%rax)
	movq	%rax, %rbx
	incq	%rbx
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_sdb_ns
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rbx, %rsi
	testq	%rax, %rax
	jne	LBB0_32
	jmp	LBB0_59
LBB0_33:
	movq	_callback_foreach_kv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_sdb_foreach
	jmp	LBB0_80
LBB0_34:
	leaq	1(%r12), %rcx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sdb_querys
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movq	%rbx, %rdi
	callq	_r_cons_print
LBB0_36:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_80
LBB0_37:
	leaq	L_.str.2(%rip), %rdi
	callq	_r_cons_println
	jmp	LBB0_79
LBB0_38:
	cmpb	$32, 1(%r12)
	jne	LBB0_46
## %bb.39:
	leaq	2(%r12), %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_53
## %bb.40:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_51
## %bb.41:
	movq	%rax, %rbx
	movb	$0, (%rax)
	movq	%r14, %rdi
	callq	_r_file_exists
	testl	%eax, %eax
	je	LBB0_88
## %bb.42:
	movq	%r12, %r13
	incq	%rbx
	movq	%r15, %r12
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_sdb_ns_path
	testq	%rax, %rax
	je	LBB0_54
## %bb.43:
	movq	%rax, %r15
	xorl	%edi, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sdb_new
	testq	%rax, %rax
	je	LBB0_89
## %bb.44:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_sdb_drain
	jmp	LBB0_56
LBB0_45:
	leaq	L_.str.18(%rip), %rdi
	jmp	LBB0_47
LBB0_46:
	leaq	L_.str.17(%rip), %rdi
LBB0_47:
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_80
LBB0_48:
	xorl	%r15d, %r15d
LBB0_49:
	xorl	%eax, %eax
	movq	%rax, -1096(%rbp)               ## 8-byte Spill
LBB0_50:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_r_cons_printf
	movq	-1096(%rbp), %rdi               ## 8-byte Reload
	callq	_free
	movq	%r15, %rdi
	callq	_free
	movq	-1088(%rbp), %r15               ## 8-byte Reload
	jmp	LBB0_79
LBB0_51:
	leaq	L_.str.16(%rip), %rdi
LBB0_52:
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_57
LBB0_53:
	leaq	L_.str.12(%rip), %rdi
	jmp	LBB0_25
LBB0_54:
	leaq	L_.str.14(%rip), %rdi
	movq	%rbx, %rsi
LBB0_55:
	xorl	%eax, %eax
	callq	_eprintf
LBB0_56:
	movq	%r12, %r15
	movq	%r13, %r12
LBB0_57:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_80
LBB0_58:
	movq	%r14, %rbx
LBB0_59:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_sdb_ns
	movq	%rax, %r13
LBB0_60:
	movq	%r14, %rdi
	callq	_free
LBB0_61:
	movq	%r12, -1080(%rbp)               ## 8-byte Spill
	testq	%r13, %r13
	jne	LBB0_63
## %bb.62:
	movq	(%r15), %r13
LBB0_63:
	movq	%r15, -1088(%rbp)               ## 8-byte Spill
	movq	8(%r15), %rax
	movq	(%rax), %r12
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_65
## %bb.64:
	movq	_free@GOTPCREL(%rip), %rdi
	callq	_r_list_newf
	movq	%rax, %rbx
	movq	%rax, 8(%r12)
	leaq	l_.str.10(%rip), %rdi
	callq	_r_str_new
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_r_list_append
	movq	8(%r12), %rbx
LBB0_65:
	movq	_r_line_hist_sdb_up@GOTPCREL(%rip), %rsi
	movq	_r_line_hist_sdb_down@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	callq	_r_line_set_hist_callback
	leaq	L_.str(%rip), %rdi
	callq	_r_line_set_prompt
	leaq	-1072(%rbp), %rdi
	movl	$1023, %esi                     ## imm = 0x3FF
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_r_cons_fgets
	testl	%eax, %eax
	jle	LBB0_78
## %bb.66:
	cmpb	$0, -1072(%rbp)
	je	LBB0_78
## %bb.67:
	leaq	-1072(%rbp), %r14
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_68:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_74
## %bb.69:                              ##   in Loop: Header=BB0_68 Depth=1
	movq	%rbx, %rdi
	callq	_r_list_length
	cmpl	$1, %eax
	je	LBB0_72
## %bb.70:                              ##   in Loop: Header=BB0_68 Depth=1
	movq	%rbx, %rdi
	callq	_r_list_length
	cmpl	$2, %eax
	jl	LBB0_73
## %bb.71:                              ##   in Loop: Header=BB0_68 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_r_list_get_n
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_73
LBB0_72:                                ##   in Loop: Header=BB0_68 Depth=1
	movq	%r14, %rdi
	callq	_strdup
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_r_list_insert
LBB0_73:                                ##   in Loop: Header=BB0_68 Depth=1
	movl	(%rbx), %eax
	movl	%eax, (%r12)
LBB0_74:                                ##   in Loop: Header=BB0_68 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_sdb_querys
	testq	%rax, %rax
	je	LBB0_76
## %bb.75:                              ##   in Loop: Header=BB0_68 Depth=1
	movq	%rax, %rdi
	callq	_r_cons_println
	xorl	%eax, %eax
	callq	_r_cons_flush
LBB0_76:                                ##   in Loop: Header=BB0_68 Depth=1
	movq	%r15, %rdi
	callq	_r_line_set_prompt
	movq	%r14, %rdi
	movl	$1023, %esi                     ## imm = 0x3FF
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_r_cons_fgets
	testl	%eax, %eax
	jle	LBB0_78
## %bb.77:                              ##   in Loop: Header=BB0_68 Depth=1
	cmpb	$0, -1072(%rbp)
	jne	LBB0_68
LBB0_78:
	movq	-1088(%rbp), %r15               ## 8-byte Reload
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	movq	_r_line_hist_cmd_up@GOTPCREL(%rip), %rsi
	movq	_r_line_hist_cmd_down@GOTPCREL(%rip), %rdx
	callq	_r_line_set_hist_callback
LBB0_79:
	movq	-1080(%rbp), %r12               ## 8-byte Reload
LBB0_80:
	movb	(%r12), %al
LBB0_81:
	testb	%al, %al
	je	LBB0_86
## %bb.82:
	leaq	1(%r12), %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_86
## %bb.83:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	%rbx, %rax
	subq	%r12, %rax
	movb	$0, (%r14,%rax)
	movq	(%r15), %rdi
	leaq	1(%r14), %rsi
	movl	$1, %edx
	callq	_sdb_ns
	incq	%rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_sdb_querys
	testq	%rax, %rax
	je	LBB0_85
## %bb.84:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_r_cons_println
	movq	%rbx, %rdi
	callq	_free
LBB0_85:
	movq	%r14, %rdi
	callq	_free
LBB0_86:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_90
## %bb.87:
	xorl	%eax, %eax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_88:
	leaq	L_.str.15(%rip), %rdi
	jmp	LBB0_52
LBB0_89:
	leaq	L_.str.13(%rip), %rdi
	movq	%r14, %rsi
	jmp	LBB0_55
LBB0_90:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_81, LBB0_81-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_81
	.long	L0_0_set_81
	.long	L0_0_set_81
	.long	L0_0_set_81
	.long	L0_0_set_81
	.long	L0_0_set_12
	.long	L0_0_set_81
	.long	L0_0_set_81
	.long	L0_0_set_81
	.long	L0_0_set_81
	.long	L0_0_set_23
	.long	L0_0_set_81
	.long	L0_0_set_81
	.long	L0_0_set_81
	.long	L0_0_set_26
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[sdb]> "

L_.str.1:                               ## @.str.1
	.asciz	"anal/**"

L_.str.2:                               ## @.str.2
	.asciz	"No Output from sdb"

L_.str.3:                               ## @.str.3
	.asciz	"{\"anal\":{"

L_.str.4:                               ## @.str.4
	.asciz	"\n\n\"%s\" : ["

L_.str.5:                               ## @.str.5
	.asciz	"anal/%s/*"

L_.str.6:                               ## @.str.6
	.asciz	"\nEMPTY\n"

L_.str.7:                               ## @.str.7
	.asciz	"],\n\n"

L_.str.8:                               ## @.str.8
	.asciz	"\"%s\","

L_.str.9:                               ## @.str.9
	.asciz	"}}"

	.comm	_callback_foreach_kv,4,2        ## @callback_foreach_kv
	.section	__TEXT,__const
l_.str.10:                              ## @.str.10
	.space	2

	.comm	_r_line_hist_sdb_up,4,2         ## @r_line_hist_sdb_up
	.comm	_r_line_hist_sdb_down,4,2       ## @r_line_hist_sdb_down
	.comm	_r_line_hist_cmd_up,4,2         ## @r_line_hist_cmd_up
	.comm	_r_line_hist_cmd_down,4,2       ## @r_line_hist_cmd_down
	.section	__TEXT,__cstring,cstring_literals
L_.str.11:                              ## @.str.11
	.asciz	"This command is disabled in sandbox mode\n"

L_.str.12:                              ## @.str.12
	.asciz	"Unable to allocate memory\n"

L_.str.13:                              ## @.str.13
	.asciz	"Cannot open sdb '%s'\n"

L_.str.14:                              ## @.str.14
	.asciz	"Cannot find sdb '%s'\n"

L_.str.15:                              ## @.str.15
	.asciz	"Cannot open file\n"

L_.str.16:                              ## @.str.16
	.asciz	"Missing sdb namespace\n"

L_.str.17:                              ## @.str.17
	.asciz	"Usage: ko [file] [namespace]\n"

L_.str.18:                              ## @.str.18
	.asciz	"Usage: kd [file] [namespace]\n"

	.comm	_help_msg_k,4,2                 ## @help_msg_k
	.no_dead_strip	_cmd_kuery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_kuery
_cmd_kuery:                             ; @cmd_kuery
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #1056
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x21, [x0]
	ldrsb	w9, [x1]
	and	w8, w9, #0xff
	cmp	w9, #99
	b.le	LBB0_8
; %bb.1:
	sub	w9, w9, #100
	cmp	w9, #15
	b.hi	LBB0_75
; %bb.2:
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrh	w12, [x10, x9, lsl #1]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	mov	w0, #0
	bl	_r_sandbox_enable
	cbnz	w0, LBB0_25
; %bb.4:
	ldrb	w8, [x20, #1]
	cmp	w8, #32
	b.ne	LBB0_47
; %bb.5:
	add	x0, x20, #2
	bl	_strdup
	mov	x21, x0
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_50
; %bb.6:
	mov	x22, x0
	strb	wzr, [x22], #1
	ldr	x0, [x19]
	mov	x1, x22
	mov	w2, #0
	bl	_sdb_ns_path
	cbz	x0, LBB0_52
; %bb.7:
	mov	x23, x0
	mov	x1, x21
	bl	_sdb_file
	mov	x0, x23
	bl	_sdb_sync
	b	LBB0_36
LBB0_8:
	cbz	w9, LBB0_33
; %bb.9:
	cmp	w9, #32
	b.eq	LBB0_34
; %bb.10:
	cmp	w9, #63
	b.ne	LBB0_75
; %bb.11:
Lloh5:
	adrp	x8, _help_msg_k@GOTPAGE
Lloh6:
	ldr	x8, [x8, _help_msg_k@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_r_core_cmd_help
	b	LBB0_74
LBB0_12:
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	bl	_sdb_querys
	cbz	x0, LBB0_39
; %bb.13:
	mov	x22, x0
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_r_cons_printf
	ldrb	w8, [x22]
	cbz	w8, LBB0_37
; %bb.14:
	mov	x0, x22
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_37
; %bb.15:
Lloh12:
	adrp	x26, l_.str.7@PAGE
Lloh13:
	add	x26, x26, l_.str.7@PAGEOFF
Lloh14:
	adrp	x27, l_.str.8@PAGE
Lloh15:
	add	x27, x27, l_.str.8@PAGEOFF
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	sub	x24, x0, x22
	str	x24, [sp]
	mov	x0, x22
	bl	_r_str_ndup
	mov	x23, x0
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_r_cons_printf
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x23
	bl	_r_str_newf
	mov	x28, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	x3, x28
	bl	_sdb_querys
	mov	x23, x0
	cbz	x0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w8, [x23]
	mov	x25, x23
	cbz	w8, LBB0_22
LBB0_18:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x23, x0
	sub	x8, x0, x25
	str	x8, [sp]
	mov	x0, x25
	bl	_r_str_ndup
	str	x0, [sp]
	mov	x0, x27
	bl	_r_cons_printf
	ldrb	w8, [x23, #1]!
	mov	x25, x23
	cbnz	w8, LBB0_18
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_r_cons_println
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x23, x25
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x26
	bl	_r_cons_printf
	add	x22, x24, x22
	ldrb	w8, [x22, #1]!
	cbz	w8, LBB0_38
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x22
	mov	w1, #10
	bl	_strchr
	cbnz	x0, LBB0_16
	b	LBB0_38
LBB0_24:
	mov	w0, #0
	bl	_r_sandbox_enable
	cbz	w0, LBB0_40
LBB0_25:
Lloh22:
	adrp	x0, l_.str.11@PAGE
Lloh23:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_eprintf
	b	LBB0_80
LBB0_26:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_80
; %bb.27:
	bl	_r_cons_is_interactive
	cbz	w0, LBB0_80
; %bb.28:
	ldrb	w8, [x20, #1]
	cmp	w8, #32
	b.ne	LBB0_56
; %bb.29:
	add	x0, x20, #2
	bl	_strdup
	mov	x22, x0
	cbz	x0, LBB0_55
; %bb.30:
	mov	x0, x22
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_53
; %bb.31:
	mov	x23, x0
	mov	x1, x22
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	strb	wzr, [x23], #1
	mov	x24, x23
	mov	x0, x21
	mov	w2, #1
	bl	_sdb_ns
	mov	x21, x0
	mov	x0, x23
	mov	w1, #47
	bl	_strchr
	mov	x23, x0
	mov	x1, x24
	cbnz	x0, LBB0_32
	b	LBB0_54
LBB0_33:
Lloh24:
	adrp	x8, _callback_foreach_kv@GOTPAGE
Lloh25:
	ldr	x8, [x8, _callback_foreach_kv@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, #0
	bl	_sdb_foreach
	b	LBB0_74
LBB0_34:
	add	x3, x20, #1
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	bl	_sdb_querys
	mov	x21, x0
	cbz	x0, LBB0_36
; %bb.35:
	mov	x0, x21
	bl	_r_cons_print
LBB0_36:
	mov	x0, x21
	bl	_free
	b	LBB0_74
LBB0_37:
	mov	x23, #0
	mov	x28, #0
LBB0_38:
Lloh27:
	adrp	x0, l_.str.9@PAGE
Lloh28:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_r_cons_printf
	mov	x0, x28
	bl	_free
	mov	x0, x23
	bl	_free
	b	LBB0_74
LBB0_39:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_r_cons_println
	b	LBB0_74
LBB0_40:
	ldrb	w8, [x20, #1]
	cmp	w8, #32
	b.ne	LBB0_48
; %bb.41:
	add	x0, x20, #2
	bl	_strdup
	cbz	x0, LBB0_51
; %bb.42:
	mov	x21, x0
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_50
; %bb.43:
	mov	x22, x0
	strb	wzr, [x22], #1
	mov	x0, x21
	bl	_r_file_exists
	cbz	w0, LBB0_82
; %bb.44:
	ldr	x0, [x19]
	mov	x1, x22
	mov	w2, #1
	bl	_sdb_ns_path
	cbz	x0, LBB0_52
; %bb.45:
	mov	x23, x0
	mov	x0, #0
	mov	x1, x21
	mov	w2, #0
	bl	_sdb_new
	cbz	x0, LBB0_83
; %bb.46:
	mov	x1, x0
	mov	x0, x23
	bl	_sdb_drain
	b	LBB0_36
LBB0_47:
Lloh31:
	adrp	x0, l_.str.18@PAGE
Lloh32:
	add	x0, x0, l_.str.18@PAGEOFF
	b	LBB0_49
LBB0_48:
Lloh33:
	adrp	x0, l_.str.17@PAGE
Lloh34:
	add	x0, x0, l_.str.17@PAGEOFF
LBB0_49:
	bl	_eprintf
	b	LBB0_74
LBB0_50:
Lloh35:
	adrp	x0, l_.str.16@PAGE
Lloh36:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_eprintf
	b	LBB0_36
LBB0_51:
Lloh37:
	adrp	x0, l_.str.12@PAGE
Lloh38:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_eprintf
	b	LBB0_80
LBB0_52:
	str	x22, [sp]
Lloh39:
	adrp	x0, l_.str.14@PAGE
Lloh40:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_eprintf
	b	LBB0_36
LBB0_53:
	mov	x24, x22
LBB0_54:
	mov	x0, x21
	mov	x1, x24
	mov	w2, #1
	bl	_sdb_ns
	mov	x21, x0
LBB0_55:
	mov	x0, x22
	bl	_free
LBB0_56:
	cbnz	x21, LBB0_58
; %bb.57:
	ldr	x21, [x19]
LBB0_58:
	ldr	x8, [x19, #8]
	ldr	x22, [x8]
	ldr	x23, [x22, #8]
	cbnz	x23, LBB0_60
; %bb.59:
Lloh41:
	adrp	x0, _free@GOTPAGE
Lloh42:
	ldr	x0, [x0, _free@GOTPAGEOFF]
	bl	_r_list_newf
	mov	x23, x0
	str	x0, [x22, #8]
Lloh43:
	adrp	x0, l_.str.10@PAGE
Lloh44:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_r_str_new
	mov	x1, x0
	mov	x0, x23
	bl	_r_list_append
	ldr	x23, [x22, #8]
LBB0_60:
Lloh45:
	adrp	x1, _r_line_hist_sdb_up@GOTPAGE
Lloh46:
	ldr	x1, [x1, _r_line_hist_sdb_up@GOTPAGEOFF]
Lloh47:
	adrp	x2, _r_line_hist_sdb_down@GOTPAGE
Lloh48:
	ldr	x2, [x2, _r_line_hist_sdb_down@GOTPAGEOFF]
	mov	x0, x22
	bl	_r_line_set_hist_callback
Lloh49:
	adrp	x0, l_.str@PAGE
Lloh50:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_line_set_prompt
	add	x0, sp, #16
	mov	w1, #1023
	mov	w2, #0
	mov	x3, #0
	bl	_r_cons_fgets
	cmp	w0, #1
	b.lt	LBB0_73
; %bb.61:
	ldrb	w8, [sp, #16]
	cbz	w8, LBB0_73
; %bb.62:
Lloh51:
	adrp	x24, l_.str@PAGE
Lloh52:
	add	x24, x24, l_.str@PAGEOFF
LBB0_63:                                ; =>This Inner Loop Header: Depth=1
	cbz	x23, LBB0_69
; %bb.64:                               ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x23
	bl	_r_list_length
	cmp	w0, #1
	b.eq	LBB0_67
; %bb.65:                               ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x23
	bl	_r_list_length
	cmp	w0, #2
	b.lt	LBB0_68
; %bb.66:                               ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x23
	mov	w1, #1
	bl	_r_list_get_n
	add	x1, sp, #16
	bl	_strcmp
	cbz	w0, LBB0_68
LBB0_67:                                ;   in Loop: Header=BB0_63 Depth=1
	add	x0, sp, #16
	bl	_strdup
	mov	x2, x0
	mov	x0, x23
	mov	w1, #1
	bl	_r_list_insert
LBB0_68:                                ;   in Loop: Header=BB0_63 Depth=1
	ldr	w8, [x23]
	str	w8, [x22]
LBB0_69:                                ;   in Loop: Header=BB0_63 Depth=1
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	bl	_sdb_querys
	cbz	x0, LBB0_71
; %bb.70:                               ;   in Loop: Header=BB0_63 Depth=1
	bl	_r_cons_println
	bl	_r_cons_flush
LBB0_71:                                ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x24
	bl	_r_line_set_prompt
	add	x0, sp, #16
	mov	w1, #1023
	mov	w2, #0
	mov	x3, #0
	bl	_r_cons_fgets
	cmp	w0, #1
	b.lt	LBB0_73
; %bb.72:                               ;   in Loop: Header=BB0_63 Depth=1
	ldrb	w8, [sp, #16]
	cbnz	w8, LBB0_63
LBB0_73:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh53:
	adrp	x1, _r_line_hist_cmd_up@GOTPAGE
Lloh54:
	ldr	x1, [x1, _r_line_hist_cmd_up@GOTPAGEOFF]
Lloh55:
	adrp	x2, _r_line_hist_cmd_down@GOTPAGE
Lloh56:
	ldr	x2, [x2, _r_line_hist_cmd_down@GOTPAGEOFF]
	bl	_r_line_set_hist_callback
LBB0_74:
	ldrb	w8, [x20]
LBB0_75:
	cbz	w8, LBB0_80
; %bb.76:
	add	x0, x20, #1
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_80
; %bb.77:
	mov	x22, x0
	mov	x0, x20
	bl	_strdup
	mov	x21, x0
	sub	x8, x22, x20
	strb	wzr, [x0, x8]
	ldr	x0, [x19]
	add	x1, x21, #1
	mov	w2, #1
	bl	_sdb_ns
	add	x3, x22, #1
	mov	x1, #0
	mov	w2, #0
	bl	_sdb_querys
	cbz	x0, LBB0_79
; %bb.78:
	mov	x19, x0
	bl	_r_cons_println
	mov	x0, x19
	bl	_free
LBB0_79:
	mov	x0, x21
	bl	_free
LBB0_80:
	ldur	x8, [x29, #-96]
Lloh57:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh58:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_84
; %bb.81:
	mov	w0, #0
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_82:
Lloh60:
	adrp	x0, l_.str.15@PAGE
Lloh61:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_eprintf
	b	LBB0_36
LBB0_83:
	str	x21, [sp]
Lloh62:
	adrp	x0, l_.str.13@PAGE
Lloh63:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_eprintf
	b	LBB0_36
LBB0_84:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_3-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_12-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_24-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_75-LBB0_3)>>2
	.short	(LBB0_26-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[sdb]> "

l_.str.1:                               ; @.str.1
	.asciz	"anal/**"

l_.str.2:                               ; @.str.2
	.asciz	"No Output from sdb"

l_.str.3:                               ; @.str.3
	.asciz	"{\"anal\":{"

l_.str.4:                               ; @.str.4
	.asciz	"\n\n\"%s\" : ["

l_.str.5:                               ; @.str.5
	.asciz	"anal/%s/*"

l_.str.6:                               ; @.str.6
	.asciz	"\nEMPTY\n"

l_.str.7:                               ; @.str.7
	.asciz	"],\n\n"

l_.str.8:                               ; @.str.8
	.asciz	"\"%s\","

l_.str.9:                               ; @.str.9
	.asciz	"}}"

	.comm	_callback_foreach_kv,4,2        ; @callback_foreach_kv
	.section	__TEXT,__const
l_.str.10:                              ; @.str.10
	.space	2

	.comm	_r_line_hist_sdb_up,4,2         ; @r_line_hist_sdb_up
	.comm	_r_line_hist_sdb_down,4,2       ; @r_line_hist_sdb_down
	.comm	_r_line_hist_cmd_up,4,2         ; @r_line_hist_cmd_up
	.comm	_r_line_hist_cmd_down,4,2       ; @r_line_hist_cmd_down
	.section	__TEXT,__cstring,cstring_literals
l_.str.11:                              ; @.str.11
	.asciz	"This command is disabled in sandbox mode\n"

l_.str.12:                              ; @.str.12
	.asciz	"Unable to allocate memory\n"

l_.str.13:                              ; @.str.13
	.asciz	"Cannot open sdb '%s'\n"

l_.str.14:                              ; @.str.14
	.asciz	"Cannot find sdb '%s'\n"

l_.str.15:                              ; @.str.15
	.asciz	"Cannot open file\n"

l_.str.16:                              ; @.str.16
	.asciz	"Missing sdb namespace\n"

l_.str.17:                              ; @.str.17
	.asciz	"Usage: ko [file] [namespace]\n"

l_.str.18:                              ; @.str.18
	.asciz	"Usage: kd [file] [namespace]\n"

	.comm	_help_msg_k,4,2                 ; @help_msg_k
	.no_dead_strip	_cmd_kuery
.subsections_via_symbols
