	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_add_matches      ## -- Begin function cheat_manager_add_matches
	.p2align	4, 0x90
_cheat_manager_add_matches:             ## @cheat_manager_add_matches
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -180(%rbp)
	movl	$1, -168(%rbp)
	movl	$8, -164(%rbp)
	movq	_cheat_manager_state@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -176(%rbp)
	movl	12(%r12), %eax
	addl	8(%r12), %eax
	cmpl	$101, %eax
	jl	LBB0_2
## %bb.1:
	movq	_MSG_CHEAT_SEARCH_ADDED_MATCHES_TOO_MANY@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_2:
	movl	36(%r12), %edi
	leaq	-168(%rbp), %rsi
	leaq	-180(%rbp), %rdx
	leaq	-164(%rbp), %rcx
	callq	_cheat_manager_setup_search_meta
	cmpl	$0, 16(%r12)
	je	LBB0_27
## %bb.3:
	xorl	%r15d, %r15d
	leaq	-176(%rbp), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-168(%rbp), %edx
	leaq	-176(%rbp), %r14
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	%edx, %r15d
	cmpl	16(%r12), %r15d
	jae	LBB0_27
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_translate_address
	movl	-168(%rbp), %edx
	movl	%r15d, %r13d
	movl	%eax, %eax
	cmpl	$4, %edx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$2, %edx
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-176(%rbp), %rcx
	addq	%r13, %rcx
	movq	%rcx, %rsi
	subq	%rax, %rsi
	negq	%rax
	cmpl	$0, 32(%r12)
	movzbl	(%rsi), %esi
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	shll	$8, %esi
	movzbl	1(%rcx,%rax), %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-176(%rbp), %rcx
	addq	%r13, %rcx
	movq	%rcx, %rsi
	subq	%rax, %rsi
	negq	%rax
	cmpl	$0, 32(%r12)
	movzbl	(%rsi), %esi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	shll	$24, %esi
	movzbl	1(%rcx,%rax), %edi
	shll	$16, %edi
	orl	%esi, %edi
	movzbl	2(%rcx,%rax), %esi
	shll	$8, %esi
	orl	%edi, %esi
	movzbl	3(%rcx,%rax), %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-176(%rbp), %rcx
	subq	%rax, %rcx
	movzbl	(%rcx,%r13), %ebx
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	1(%rcx,%rax), %ebx
	shll	$8, %ebx
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	1(%rcx,%rax), %edi
	shll	$8, %edi
	orl	%esi, %edi
	movzbl	2(%rcx,%rax), %esi
	shll	$16, %esi
	orl	%edi, %esi
	movzbl	3(%rcx,%rax), %ebx
	shll	$24, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	orl	%esi, %ebx
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-164(%rbp), %ecx
	cmpl	$8, %ecx
	ja	LBB0_5
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=2
	movl	%ebx, %r8d
	callq	_cheat_manager_add_new_code
	testl	%eax, %eax
	je	LBB0_25
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=2
	incl	%r14d
	movl	-164(%rbp), %ecx
	movl	$8, %eax
	xorl	%edx, %edx
	divl	%ecx
	cmpl	%eax, %r14d
	jae	LBB0_4
LBB0_20:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r12), %rax
	movl	(%rax,%r13,4), %eax
	cmpl	$7, %ecx
	ja	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	-180(%rbp), %edx
	imull	%r14d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	testl	%eax, %edx
	je	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	32(%r12), %ecx
	movl	36(%r12), %edi
	movl	%r15d, %esi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=2
	testl	%eax, %eax
	je	LBB0_19
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	32(%r12), %ecx
	movl	36(%r12), %edi
	movl	%r15d, %esi
	movl	$255, %edx
	jmp	LBB0_18
LBB0_25:
	movq	_MSG_CHEAT_SEARCH_ADDED_MATCHES_FAIL@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	_MESSAGE_QUEUE_ICON_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_MESSAGE_QUEUE_CATEGORY_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movq	%rax, %rdi
	jmp	LBB0_28
LBB0_27:
	movq	_MSG_CHEAT_SEARCH_ADDED_MATCHES_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	8(%r12), %ecx
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$100, %esi
	movq	%rax, %rdx
	callq	_snprintf
	movb	$0, -61(%rbp)
	movq	_MESSAGE_QUEUE_ICON_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MESSAGE_QUEUE_CATEGORY_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
LBB0_28:
	movl	$1, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cheat_manager_state,40,3       ## @cheat_manager_state
	.comm	_MSG_CHEAT_SEARCH_ADDED_MATCHES_TOO_MANY,4,2 ## @MSG_CHEAT_SEARCH_ADDED_MATCHES_TOO_MANY
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_MSG_CHEAT_SEARCH_ADDED_MATCHES_FAIL,4,2 ## @MSG_CHEAT_SEARCH_ADDED_MATCHES_FAIL
	.comm	_MSG_CHEAT_SEARCH_ADDED_MATCHES_SUCCESS,4,2 ## @MSG_CHEAT_SEARCH_ADDED_MATCHES_SUCCESS
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ## @MENU_ENTRIES_CTL_SET_REFRESH
	.comm	_RARCH_MENU_CTL_SET_PREVENT_POPULATE,4,2 ## @RARCH_MENU_CTL_SET_PREVENT_POPULATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_add_matches      ; -- Begin function cheat_manager_add_matches
	.p2align	2
_cheat_manager_add_matches:             ; @cheat_manager_add_matches
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w8, #1
	stp	w8, wzr, [sp, #12]
	mov	w8, #8
	str	w8, [sp, #8]
Lloh3:
	adrp	x21, _cheat_manager_state@GOTPAGE
Lloh4:
	ldr	x21, [x21, _cheat_manager_state@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [sp]
	ldp	w8, w9, [x21, #8]
	add	w8, w9, w8
	cmp	w8, #101
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MSG_CHEAT_SEARCH_ADDED_MATCHES_TOO_MANY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_CHEAT_SEARCH_ADDED_MATCHES_TOO_MANY@GOTPAGEOFF]
	b	LBB0_25
LBB0_2:
	ldr	w0, [x21, #36]
	add	x1, sp, #12
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_cheat_manager_setup_search_meta
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_26
; %bb.3:
	mov	w19, #0
	mov	w22, #8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #12]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21, #16]
	add	w19, w8, w19
	cmp	w19, w9
	b.hs	LBB0_26
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x1, sp
	mov	x0, x19
	bl	_translate_address
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #2
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w12, [x21, #32]
	ldr	x9, [sp]
	add	x10, x9, w19, uxtw
	mov	w9, w0
	neg	x11, x9
	sub	x9, x10, x9
	ldrb	w9, [x9]
	add	x10, x10, x11
	cbz	w12, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w20, [x10, #1]
	bfi	w20, w9, #8, #8
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w11, [x21, #32]
	ldr	x9, [sp]
	add	x9, x9, w19, uxtw
	mov	w12, w0
	neg	x10, x12
	sub	x12, x9, x12
	ldrb	w20, [x12]
	cbz	w11, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	lsl	w11, w20, #24
	add	x9, x9, x10
	ldrb	w10, [x9, #1]
	bfi	w11, w10, #16, #8
	ldrb	w10, [x9, #2]
	bfi	w11, w10, #8, #8
	ldrb	w9, [x9, #3]
	orr	w20, w11, w9
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [sp]
	sub	x9, x9, w0, uxtw
	ldrb	w20, [x9, w19, uxtw]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w10, [x10, #1]
	bfi	w9, w10, #8, #8
	mov	x20, x9
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, x10
	ldrb	w10, [x9, #1]
	bfi	w20, w10, #8, #8
	ldrb	w10, [x9, #2]
	bfi	w20, w10, #16, #8
	ldrb	w9, [x9, #3]
	bfi	w20, w9, #24, #8
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [sp, #8]
	cmp	w9, #8
	b.hi	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w23, #0
	mov	w24, w19
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	x4, x20
	bl	_cheat_manager_add_new_code
	cbz	w0, LBB0_24
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	w23, w23, #1
	ldr	w9, [sp, #8]
	udiv	w8, w22, w9
	cmp	w23, w8
	b.hs	LBB0_4
LBB0_19:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #24]
	ldr	w8, [x8, x24, lsl #2]
	cmp	w9, #7
	b.hi	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	w10, [sp, #16]
	mul	w9, w9, w23
	lsl	w2, w10, w9
	tst	w2, w8
	b.eq	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	ldp	w3, w0, [x21, #32]
	mov	x1, x19
	b	LBB0_17
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=2
	cbz	w8, LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=2
	ldp	w3, w0, [x21, #32]
	mov	x1, x19
	mov	w2, #255
	b	LBB0_17
LBB0_24:
Lloh7:
	adrp	x8, _MSG_CHEAT_SEARCH_ADDED_MATCHES_FAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_CHEAT_SEARCH_ADDED_MATCHES_FAIL@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
Lloh9:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	b	LBB0_27
LBB0_26:
Lloh15:
	adrp	x8, _MSG_CHEAT_SEARCH_ADDED_MATCHES_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_CHEAT_SEARCH_ADDED_MATCHES_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x2, x0
	ldr	w3, [x21, #8]
	add	x0, sp, #20
	mov	w1, #100
	bl	_snprintf
	strb	wzr, [sp, #119]
Lloh18:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
Lloh21:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w6, [x8]
	add	x0, sp, #20
LBB0_27:
	mov	w1, #1
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	w0, #0
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_cheat_manager_state,40,3       ; @cheat_manager_state
	.comm	_MSG_CHEAT_SEARCH_ADDED_MATCHES_TOO_MANY,4,2 ; @MSG_CHEAT_SEARCH_ADDED_MATCHES_TOO_MANY
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_MSG_CHEAT_SEARCH_ADDED_MATCHES_FAIL,4,2 ; @MSG_CHEAT_SEARCH_ADDED_MATCHES_FAIL
	.comm	_MSG_CHEAT_SEARCH_ADDED_MATCHES_SUCCESS,4,2 ; @MSG_CHEAT_SEARCH_ADDED_MATCHES_SUCCESS
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ; @MENU_ENTRIES_CTL_SET_REFRESH
	.comm	_RARCH_MENU_CTL_SET_PREVENT_POPULATE,4,2 ; @RARCH_MENU_CTL_SET_PREVENT_POPULATE
.subsections_via_symbols
