	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_search_mem
_monitor_search_mem:                    ## @monitor_search_mem
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	_monitor_search_mem.addr1(%rip), %rdi
	leaq	_monitor_search_mem.addr2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_get_hex3
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	xorl	%eax, %eax
	leaq	_monitor_search_mem.tab(%rip), %rbx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	-44(%rbp), %rdx
	leal	1(%rax), %ecx
	movl	%ecx, _monitor_search_mem.n(%rip)
	movslq	%eax, %rsi
	movq	%rdx, (%rbx,%rsi,8)
	cmpq	$256, %rdx                      ## imm = 0x100
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$62, %eax
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %edx
	shrq	$8, %rdx
	addl	$2, %eax
	movl	%eax, _monitor_search_mem.n(%rip)
	movslq	%ecx, %rcx
	movq	%rdx, (%rbx,%rcx,8)
	movl	%eax, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$63, %ecx
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_get_hex
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	_monitor_search_mem.n(%rip), %eax
	jmp	LBB0_2
LBB0_8:
	cmpl	$0, _monitor_search_mem.n(%rip)
	jle	LBB0_16
## %bb.9:
	movslq	_monitor_search_mem.addr1(%rip), %r15
	cmpl	_monitor_search_mem.addr2(%rip), %r15d
	jle	LBB0_10
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r15d, %r13d
	leaq	_monitor_search_mem.tab(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	1(%r15), %rax
	movslq	_monitor_search_mem.addr2(%rip), %rcx
	incq	%r13
	cmpq	%rcx, %r15
	movq	%rax, %r15
	jge	LBB0_16
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r12, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r14,%r13), %edi
	callq	_MEMORY_SafeGetByte
	cmpq	(%rbx), %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	incq	%r14
	movslq	_monitor_search_mem.n(%rip), %rax
	addq	$8, %rbx
	cmpq	%rax, %r14
	jl	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_printf
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_monitor_search_mem.n,4,2 ## @monitor_search_mem.n
.zerofill __DATA,__bss,_monitor_search_mem.addr1,4,2 ## @monitor_search_mem.addr1
.zerofill __DATA,__bss,_monitor_search_mem.addr2,4,2 ## @monitor_search_mem.addr2
.zerofill __DATA,__bss,_monitor_search_mem.tab,512,4 ## @monitor_search_mem.tab
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found at %04X\n"

	.no_dead_strip	_monitor_search_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_search_mem
_monitor_search_mem:                    ; @monitor_search_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x0, _monitor_search_mem.addr1@PAGE
Lloh1:
	add	x0, x0, _monitor_search_mem.addr1@PAGEOFF
Lloh2:
	adrp	x1, _monitor_search_mem.addr2@PAGE
Lloh3:
	add	x1, x1, _monitor_search_mem.addr2@PAGEOFF
	add	x2, sp, #12
	bl	_get_hex3
	adrp	x21, _monitor_search_mem.n@PAGE
	cbz	x0, LBB0_8
; %bb.1:
	mov	w8, #0
Lloh4:
	adrp	x19, _monitor_search_mem.tab@PAGE
Lloh5:
	add	x19, x19, _monitor_search_mem.tab@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [sp, #12]
	sxtw	x9, w8
	add	x9, x9, #1
	str	w9, [x21, _monitor_search_mem.n@PAGEOFF]
	str	x10, [x19, w8, sxtw #3]
	cmp	w10, #256
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #63
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	and	x10, x10, #0xffffffff
	lsr	x10, x10, #8
	str	x10, [x19, x9, lsl #3]
	add	w8, w8, #2
	str	w8, [x21, _monitor_search_mem.n@PAGEOFF]
	mov	x9, x8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w9, #63
	b.gt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #12
	bl	_get_hex
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21, _monitor_search_mem.n@PAGEOFF]
	b	LBB0_2
LBB0_8:
	ldr	w8, [x21, _monitor_search_mem.n@PAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _monitor_search_mem.addr1@PAGE
Lloh7:
	ldrsw	x19, [x8, _monitor_search_mem.addr1@PAGEOFF]
	adrp	x22, _monitor_search_mem.addr2@PAGE
	ldr	w8, [x22, _monitor_search_mem.addr2@PAGEOFF]
	cmp	w19, w8
	b.le	LBB0_11
LBB0_10:
	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
	add	sp, sp, #96
	ret
LBB0_11:
	and	x23, x19, #0xffffffff
Lloh8:
	adrp	x24, _monitor_search_mem.tab@PAGE
Lloh9:
	add	x24, x24, _monitor_search_mem.tab@PAGEOFF
Lloh10:
	adrp	x20, l_.str@PAGE
Lloh11:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x19, #1
	ldrsw	x9, [x22, _monitor_search_mem.addr2@PAGEOFF]
	add	x23, x23, #1
	cmp	x19, x9
	mov	x19, x8
	b.ge	LBB0_10
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x25, #0
LBB0_14:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w0, w23, w25
	bl	_MEMORY_SafeGetByte
	ldr	x8, [x24, x25, lsl #3]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	add	x25, x25, #1
	ldrsw	x8, [x21, _monitor_search_mem.n@PAGEOFF]
	cmp	x25, x8
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_printf
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_monitor_search_mem.n,4,2 ; @monitor_search_mem.n
.zerofill __DATA,__bss,_monitor_search_mem.addr1,4,2 ; @monitor_search_mem.addr1
.zerofill __DATA,__bss,_monitor_search_mem.addr2,4,2 ; @monitor_search_mem.addr2
.zerofill __DATA,__bss,_monitor_search_mem.tab,512,3 ; @monitor_search_mem.tab
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found at %04X\n"

	.no_dead_strip	_monitor_search_mem
.subsections_via_symbols
