	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcheevos_test_cheevo_set
_rcheevos_test_cheevo_set:              ## @rcheevos_test_cheevo_set
	.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	%edi, %ebx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	_RCHEEVOS_ACTIVE_SOFTCORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_rcheevos_hardcore_paused@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movl	%r14d, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_RCHEEVOS_ACTIVE_HARDCORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_3:
	cmpq	$0, (%rax)
	cmovnel	%ecx, %r14d
LBB0_4:
	movq	_rcheevos_locals@GOTPCREL(%rip), %rax
	leaq	4(%rax), %rcx
	testl	%ebx, %ebx
	cmovneq	%rax, %rcx
	movl	(%rcx), %r12d
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.5:
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	setne	%cl
	movq	8(%rax,%rcx,8), %rbx
	movq	_rcheevos_peek@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rbx), %edi
	callq	_rc_reset_trigger
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, 4(%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$12, %rbx
	decl	%r12d
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, (%rbx)
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rbx), %edi
	movl	(%r13), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_rc_test_trigger
	movl	%eax, %r15d
	cmpl	$0, 4(%rbx)
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rcheevos_award
	jmp	LBB0_11
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCHEEVOS_ACTIVE_SOFTCORE,4,2   ## @RCHEEVOS_ACTIVE_SOFTCORE
	.comm	_rcheevos_hardcore_paused,4,2   ## @rcheevos_hardcore_paused
	.comm	_RCHEEVOS_ACTIVE_HARDCORE,4,2   ## @RCHEEVOS_ACTIVE_HARDCORE
	.comm	_rcheevos_locals,24,3           ## @rcheevos_locals
	.comm	_rcheevos_peek,4,2              ## @rcheevos_peek
	.no_dead_strip	_rcheevos_test_cheevo_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcheevos_test_cheevo_set
_rcheevos_test_cheevo_set:              ; @rcheevos_test_cheevo_set
	.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, x0
	bl	_config_get_ptr
Lloh0:
	adrp	x8, _RCHEEVOS_ACTIVE_SOFTCORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCHEEVOS_ACTIVE_SOFTCORE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _rcheevos_hardcore_paused@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rcheevos_hardcore_paused@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, #0
	ccmp	x8, #0, #4, eq
Lloh6:
	adrp	x8, _RCHEEVOS_ACTIVE_HARDCORE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RCHEEVOS_ACTIVE_HARDCORE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	csel	w19, w19, w8, eq
LBB0_2:
Lloh9:
	adrp	x8, _rcheevos_locals@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rcheevos_locals@GOTPAGEOFF]
	add	x9, x8, #4
	cmp	w20, #0
	csel	x9, x9, x8, eq
	ldr	w22, [x9]
	cmp	w22, #1
	b.lt	LBB0_11
; %bb.3:
	add	x9, x8, #8
	add	x8, x8, #16
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	x20, [x8]
Lloh11:
	adrp	x23, _rcheevos_peek@GOTPAGE
Lloh12:
	ldr	x23, [x23, _rcheevos_peek@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x20, #8]
	bl	_rc_reset_trigger
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w21, [x20, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #12
	subs	w22, w22, #1
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x20, #8]
	ldr	w1, [x23]
	mov	x2, #0
	mov	x3, #0
	bl	_rc_test_trigger
	mov	x21, x0
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w21, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_rcheevos_award
	b	LBB0_5
LBB0_11:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RCHEEVOS_ACTIVE_SOFTCORE,4,2   ; @RCHEEVOS_ACTIVE_SOFTCORE
	.comm	_rcheevos_hardcore_paused,4,2   ; @rcheevos_hardcore_paused
	.comm	_RCHEEVOS_ACTIVE_HARDCORE,4,2   ; @RCHEEVOS_ACTIVE_HARDCORE
	.comm	_rcheevos_locals,24,3           ; @rcheevos_locals
	.comm	_rcheevos_peek,4,2              ; @rcheevos_peek
	.no_dead_strip	_rcheevos_test_cheevo_set
.subsections_via_symbols
