	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_event_disk_control_set_index
_command_event_disk_control_set_index:  ## @command_event_disk_control_set_index
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movb	$0, -160(%rbp)
	movq	_runloop_system@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.1:
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	*%rcx
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	*8(%r14)
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	cmpl	%ebx, %r15d
	jbe	LBB0_5
## %bb.3:
	movq	_MSG_SETTING_DISK_IN_TRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	incl	%ebx
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_6:
	cmpl	%ebx, %r15d
	jbe	LBB0_8
## %bb.7:
	movq	_MSG_FAILED_TO_SET_DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	incl	%ebx
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	leaq	-160(%rbp), %rdi
	movl	$128, %esi
	movq	%rax, %rcx
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	callq	_snprintf
	jmp	LBB0_10
LBB0_5:
	movq	_MSG_REMOVED_DISK_FROM_TRAY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_MSG_FAILED_TO_REMOVE_DISK_FROM_TRAY@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	-160(%rbp), %rdi
	movq	%rax, %rsi
	movl	$128, %edx
	callq	_strlcpy
LBB0_10:
	leaq	-160(%rbp), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	leaq	-160(%rbp), %rsi
	testq	%r14, %r14
	je	LBB0_12
## %bb.13:
	callq	_RARCH_LOG
	jmp	LBB0_14
LBB0_12:
	callq	_RARCH_ERR
LBB0_14:
	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)
	leaq	-160(%rbp), %rdi
	movl	$1, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$152, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	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: %u/%u."

	.comm	_MSG_SETTING_DISK_IN_TRAY,4,2   ## @MSG_SETTING_DISK_IN_TRAY
	.comm	_MSG_REMOVED_DISK_FROM_TRAY,4,2 ## @MSG_REMOVED_DISK_FROM_TRAY
L_.str.1:                               ## @.str.1
	.asciz	"%s %u/%u."

	.comm	_MSG_FAILED_TO_SET_DISK,4,2     ## @MSG_FAILED_TO_SET_DISK
	.comm	_MSG_FAILED_TO_REMOVE_DISK_FROM_TRAY,4,2 ## @MSG_FAILED_TO_REMOVE_DISK_FROM_TRAY
L_.str.2:                               ## @.str.2
	.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
	.no_dead_strip	_command_event_disk_control_set_index
.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_set_index
_command_event_disk_control_set_index:  ; @command_event_disk_control_set_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	strb	wzr, [sp, #8]
Lloh3:
	adrp	x19, _runloop_system@GOTPAGE
Lloh4:
	ldr	x19, [x19, _runloop_system@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.1:
	mov	x21, x0
	blr	x8
	mov	x20, x0
	ldr	x8, [x19, #8]
	mov	x0, x21
	blr	x8
	mov	x19, x0
	cmp	w20, w21
	cbz	x0, LBB0_4
; %bb.2:
	b.ls	LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _MSG_SETTING_DISK_IN_TRAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_SETTING_DISK_IN_TRAY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x3, x0
	add	w4, w21, #1
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	b.ls	LBB0_8
; %bb.5:
Lloh10:
	adrp	x8, _MSG_FAILED_TO_SET_DISK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_FAILED_TO_SET_DISK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x3, x0
	add	w4, w21, #1
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	add	x0, sp, #8
	mov	w1, #128
	mov	x5, x20
	bl	_snprintf
	b	LBB0_10
LBB0_7:
Lloh15:
	adrp	x8, _MSG_REMOVED_DISK_FROM_TRAY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_REMOVED_DISK_FROM_TRAY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _MSG_FAILED_TO_REMOVE_DISK_FROM_TRAY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_FAILED_TO_REMOVE_DISK_FROM_TRAY@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #128
	bl	_strlcpy
LBB0_10:
	add	x0, sp, #8
	bl	_string_is_empty
	cbnz	w0, LBB0_15
; %bb.11:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #8
	cbz	x19, LBB0_13
; %bb.12:
	bl	_RARCH_LOG
	b	LBB0_14
LBB0_13:
	bl	_RARCH_ERR
LBB0_14:
Lloh21:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh23:
	ldr	w5, [x8]
Lloh24:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh26:
	ldr	w6, [x8]
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
LBB0_15:
	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_17
; %bb.16:
	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
	add	sp, sp, #192
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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: %u/%u."

	.comm	_MSG_SETTING_DISK_IN_TRAY,4,2   ; @MSG_SETTING_DISK_IN_TRAY
	.comm	_MSG_REMOVED_DISK_FROM_TRAY,4,2 ; @MSG_REMOVED_DISK_FROM_TRAY
l_.str.1:                               ; @.str.1
	.asciz	"%s %u/%u."

	.comm	_MSG_FAILED_TO_SET_DISK,4,2     ; @MSG_FAILED_TO_SET_DISK
	.comm	_MSG_FAILED_TO_REMOVE_DISK_FROM_TRAY,4,2 ; @MSG_FAILED_TO_REMOVE_DISK_FROM_TRAY
l_.str.2:                               ; @.str.2
	.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
	.no_dead_strip	_command_event_disk_control_set_index
.subsections_via_symbols
