	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcheevos_toggle_hardcore_mode  ## -- Begin function rcheevos_toggle_hardcore_mode
	.p2align	4, 0x90
_rcheevos_toggle_hardcore_mode:         ## @rcheevos_toggle_hardcore_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.2:
	movq	_rcheevos_hardcore_paused@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	_MSG_CHEEVOS_HARDCORE_MODE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%rax, %r14
	movq	_rcheevos_state_loaded_flag@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_CMD_EVENT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_CMD_EVENT_REWIND_DEINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_CHEEVOS_LOG
	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)
	movl	$1, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	jmp	LBB0_8
LBB0_6:
	movl	$1, %r15d
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.7:
	movq	_CMD_EVENT_REWIND_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rcheevos_hardcore_paused,4,2   ## @rcheevos_hardcore_paused
	.comm	_MSG_CHEEVOS_HARDCORE_MODE_ENABLE,4,2 ## @MSG_CHEEVOS_HARDCORE_MODE_ENABLE
	.comm	_rcheevos_state_loaded_flag,4,2 ## @rcheevos_state_loaded_flag
	.comm	_CMD_EVENT_RESET,4,2            ## @CMD_EVENT_RESET
	.comm	_CMD_EVENT_REWIND_DEINIT,4,2    ## @CMD_EVENT_REWIND_DEINIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_CMD_EVENT_REWIND_INIT,4,2      ## @CMD_EVENT_REWIND_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcheevos_toggle_hardcore_mode  ; -- Begin function rcheevos_toggle_hardcore_mode
	.p2align	2
_rcheevos_toggle_hardcore_mode:         ; @rcheevos_toggle_hardcore_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_config_get_ptr
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _rcheevos_hardcore_paused@GOTPAGE
Lloh1:
	ldr	x9, [x9, _rcheevos_hardcore_paused@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _CMD_EVENT_REWIND_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_EVENT_REWIND_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
LBB0_4:
	mov	w20, #1
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _MSG_CHEEVOS_HARDCORE_MODE_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_CHEEVOS_HARDCORE_MODE_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x19, x0
Lloh9:
	adrp	x8, _rcheevos_state_loaded_flag@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rcheevos_state_loaded_flag@GOTPAGEOFF]
Lloh11:
	str	wzr, [x8]
Lloh12:
	adrp	x8, _CMD_EVENT_RESET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_EVENT_RESET@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _CMD_EVENT_REWIND_DEINIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CMD_EVENT_REWIND_DEINIT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
LBB0_7:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_CHEEVOS_LOG
Lloh20:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
Lloh23:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w6, [x8]
	mov	w20, #1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_rcheevos_hardcore_paused,4,2   ; @rcheevos_hardcore_paused
	.comm	_MSG_CHEEVOS_HARDCORE_MODE_ENABLE,4,2 ; @MSG_CHEEVOS_HARDCORE_MODE_ENABLE
	.comm	_rcheevos_state_loaded_flag,4,2 ; @rcheevos_state_loaded_flag
	.comm	_CMD_EVENT_RESET,4,2            ; @CMD_EVENT_RESET
	.comm	_CMD_EVENT_REWIND_DEINIT,4,2    ; @CMD_EVENT_REWIND_DEINIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_CMD_EVENT_REWIND_INIT,4,2      ; @CMD_EVENT_REWIND_INIT
.subsections_via_symbols
