	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_event_disk_control_append_image
_command_event_disk_control_append_image: ## @command_event_disk_control_append_image
	.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	%r12
	pushq	%rbx
	subq	$176, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -184(%rbp)
	movb	$0, -176(%rbp)
	xorl	%r15d, %r15d
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_command_event_disk_control_set_eject
	movq	_runloop_system@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	callq	*16(%r12)
	xorl	%eax, %eax
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	decl	%ebx
	movq	%r14, -192(%rbp)
	leaq	-192(%rbp), %rsi
	movl	%ebx, %edi
	callq	*8(%r12)
	movq	_MSG_APPENDED_DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	movl	$128, %esi
	movq	%rax, %rcx
	movq	%r14, %r8
	callq	_snprintf
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_RARCH_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	%r12, %rdi
	xorl	%esi, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	movq	_RARCH_PATH_SUBSYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_path_is_empty
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_RARCH_PATH_NAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_path_set
	xorl	%eax, %eax
	callq	_path_fill_names
LBB0_3:
	movq	_CMD_EVENT_AUTOSAVE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
	movl	%ebx, %edi
	callq	_command_event_disk_control_set_index
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_command_event_disk_control_set_eject
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r15d, %eax
	addq	$176, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_runloop_system,4,2             ## @runloop_system
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s"

	.comm	_MSG_APPENDED_DISK,4,2          ## @MSG_APPENDED_DISK
L_.str.1:                               ## @.str.1
	.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	_RARCH_PATH_SUBSYSTEM,4,2       ## @RARCH_PATH_SUBSYSTEM
	.comm	_RARCH_PATH_NAMES,4,2           ## @RARCH_PATH_NAMES
	.comm	_CMD_EVENT_AUTOSAVE_INIT,4,2    ## @CMD_EVENT_AUTOSAVE_INIT
	.no_dead_strip	_command_event_disk_control_append_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_event_disk_control_append_image
_command_event_disk_control_append_image: ; @command_event_disk_control_append_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp, #16]
	strb	wzr, [sp, #24]
	mov	w0, #1
	mov	w1, #0
	bl	_command_event_disk_control_set_eject
Lloh3:
	adrp	x21, _runloop_system@GOTPAGE
Lloh4:
	ldr	x21, [x21, _runloop_system@GOTPAGEOFF]
	ldr	x8, [x21, #16]
	blr	x8
	ldr	x8, [x21]
	blr	x8
	cbz	w0, LBB0_4
; %bb.1:
	sub	w20, w0, #1
	str	x19, [sp, #8]
	ldr	x8, [x21, #8]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
Lloh5:
	adrp	x8, _MSG_APPENDED_DISK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_APPENDED_DISK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x3, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	w1, #128
	mov	x4, x19
	bl	_snprintf
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #24
	bl	_RARCH_LOG
Lloh12:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
Lloh15:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
Lloh18:
	adrp	x8, _RARCH_PATH_SUBSYSTEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RARCH_PATH_SUBSYSTEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_path_is_empty
	cbz	x0, LBB0_3
; %bb.2:
Lloh21:
	adrp	x8, _RARCH_PATH_NAMES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RARCH_PATH_NAMES@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_path_set
	bl	_path_fill_names
LBB0_3:
Lloh24:
	adrp	x8, _CMD_EVENT_AUTOSAVE_INIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CMD_EVENT_AUTOSAVE_INIT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
	mov	x0, x20
	bl	_command_event_disk_control_set_index
	mov	w0, #0
	mov	w1, #0
	bl	_command_event_disk_control_set_eject
	mov	w0, #1
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_runloop_system,4,2             ; @runloop_system
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s"

	.comm	_MSG_APPENDED_DISK,4,2          ; @MSG_APPENDED_DISK
l_.str.1:                               ; @.str.1
	.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	_RARCH_PATH_SUBSYSTEM,4,2       ; @RARCH_PATH_SUBSYSTEM
	.comm	_RARCH_PATH_NAMES,4,2           ; @RARCH_PATH_NAMES
	.comm	_CMD_EVENT_AUTOSAVE_INIT,4,2    ; @CMD_EVENT_AUTOSAVE_INIT
	.no_dead_strip	_command_event_disk_control_append_image
.subsections_via_symbols
