	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_add_new_code     ## -- Begin function cheat_manager_add_new_code
	.p2align	4, 0x90
_cheat_manager_add_new_code:            ## @cheat_manager_add_new_code
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%edi, %r13d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_cheat_manager_get_size
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	movq	_CHEAT_HANDLER_TYPE_RETRO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cheat_manager_realloc
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_cheat_manager_state@GOTPCREL(%rip), %rax
	movq	8(%rax), %rcx
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rax
	movl	%ebx, -20(%rcx,%rax,4)
	movl	%r12d, -16(%rcx,%rax,4)
	movl	%r13d, -12(%rcx,%rax,4)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, -8(%rcx,%rax,4)
	movl	%r15d, -4(%rcx,%rax,4)
	movl	$1, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHEAT_HANDLER_TYPE_RETRO,4,2   ## @CHEAT_HANDLER_TYPE_RETRO
	.comm	_cheat_manager_state,16,3       ## @cheat_manager_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_add_new_code     ; -- Begin function cheat_manager_add_new_code
	.p2align	2
_cheat_manager_add_new_code:            ; @cheat_manager_add_new_code
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_cheat_manager_get_size
	add	w0, w0, #1
Lloh0:
	adrp	x8, _CHEAT_HANDLER_TYPE_RETRO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHEAT_HANDLER_TYPE_RETRO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cheat_manager_realloc
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _cheat_manager_state@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cheat_manager_state@GOTPAGEOFF]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	mov	w10, #20
	madd	x8, x8, x10, x9
	stp	w23, w21, [x8, #-20]
	stp	w22, w20, [x8, #-12]
	stur	w19, [x8, #-4]
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CHEAT_HANDLER_TYPE_RETRO,4,2   ; @CHEAT_HANDLER_TYPE_RETRO
	.comm	_cheat_manager_state,16,3       ; @cheat_manager_state
.subsections_via_symbols
