	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_browser__search
_map_browser__search:                   ## @map_browser__search
	.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	%rbx
	subq	$520, %rsp                      ## imm = 0x208
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-544(%rbp), %rsi
	movl	$512, %edx                      ## imm = 0x200
	movl	$40, %ecx
	callq	_ui_entry__read
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	cmpb	$48, -544(%rbp)
	jne	LBB0_4
## %bb.2:
	movsbl	-543(%rbp), %edi
	callq	_tolower
	cmpb	$120, %al
	jne	LBB0_4
## %bb.3:
	leaq	-544(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoull
	movl	16(%r14), %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_map__find_symbol
	jmp	LBB0_5
LBB0_4:
	movl	16(%r14), %edi
	leaq	-544(%rbp), %rsi
	xorl	%edx, %edx
	callq	_map__find_symbol_by_name
LBB0_5:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_symbol__browser_index
	movq	%rbx, 8(%r14)
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	%eax, 4(%r14)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	leaq	-544(%rbp), %rsi
	callq	_ui_helpline__fpush
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %eax
	addq	$520, %rsp                      ## imm = 0x208
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Search by name/addr"

L_.str.1:                               ## @.str.1
	.asciz	"%s not found!"

	.no_dead_strip	_map_browser__search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_browser__search
_map_browser__search:                   ; @map_browser__search
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #528
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	w2, #512
	mov	w3, #40
	bl	_ui_entry__read
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldrb	w8, [sp, #8]
	cmp	w8, #48
	b.ne	LBB0_5
; %bb.2:
	ldrsb	w0, [sp, #9]
	bl	_tolower
	cmp	w0, #120
	b.ne	LBB0_5
; %bb.3:
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #16
	bl	_strtoull
	mov	x1, x0
	ldr	w0, [x20, #16]
	mov	x2, #0
	bl	_map__find_symbol
	mov	x21, x0
	cbnz	x0, LBB0_6
LBB0_4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_ui_helpline__fpush
	b	LBB0_7
LBB0_5:
	ldr	w0, [x20, #16]
	add	x1, sp, #8
	mov	x2, #0
	bl	_map__find_symbol_by_name
	mov	x21, x0
	cbz	x0, LBB0_4
LBB0_6:
	mov	x0, x21
	bl	_symbol__browser_index
	str	x21, [x20, #8]
	ldr	w8, [x0]
	stp	w8, w8, [x20]
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	add	sp, sp, #528
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Search by name/addr"

l_.str.1:                               ; @.str.1
	.asciz	"%s not found!"

	.no_dead_strip	_map_browser__search
.subsections_via_symbols
