	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_widgets_msg_queue_free
_menu_widgets_msg_queue_free:           ## @menu_widgets_msg_queue_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdi, -24(%rbp)
	movq	32(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpl	$0, 48(%rbx)
	jne	LBB0_5
## %bb.2:
	cmpl	$0, 44(%rbx)
	jne	LBB0_5
## %bb.3:
	cmpl	$0, 40(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	$0, (%rax)
LBB0_5:
	movq	_msg_queue_tasks_count@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_6:
	leaq	24(%rbx), %rdi
	callq	_menu_timer_kill
	leaq	-24(%rbp), %rdi
	callq	_menu_animation_kill_by_tag
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	8(%rbx), %rdi
	callq	_menu_timer_kill
LBB0_8:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_free
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.11:
	movq	_current_msgs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_msg_queue_kill@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_file_list_free_userdata
	movq	(%rbx), %rcx
	movq	(%r14), %rax
	movslq	(%rax), %rdx
	decq	%rdx
	cmpq	%rdx, %rcx
	jae	LBB0_14
## %bb.12:
	movq	8(%rax), %rsi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rsi,%rcx,4), %edx
	movl	%edx, (%rsi,%rcx,4)
	leaq	1(%rcx), %rdi
	movslq	(%rax), %rdx
	decq	%rdx
	movq	%rdi, %rcx
	cmpq	%rdx, %rdi
	jb	LBB0_13
LBB0_14:
	movl	%edx, (%rax)
LBB0_15:
	movq	_widgets_moving@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msg_queue_tasks_count,4,2      ## @msg_queue_tasks_count
	.comm	_current_msgs,8,3               ## @current_msgs
	.comm	_msg_queue_kill,8,3             ## @msg_queue_kill
	.comm	_widgets_moving,4,2             ## @widgets_moving
	.no_dead_strip	_menu_widgets_msg_queue_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_widgets_msg_queue_free
_menu_widgets_msg_queue_free:           ; @menu_widgets_msg_queue_free
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	str	x0, [sp, #8]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w9, [x20, #48]
	cbnz	w9, LBB0_5
; %bb.2:
	ldr	w9, [x20, #44]
	cbnz	w9, LBB0_5
; %bb.3:
	ldr	w9, [x20, #40]
	cbnz	w9, LBB0_5
; %bb.4:
	str	xzr, [x8]
LBB0_5:
Lloh0:
	adrp	x8, _msg_queue_tasks_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _msg_queue_tasks_count@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	add	x0, x20, #24
	bl	_menu_timer_kill
	add	x0, sp, #8
	bl	_menu_animation_kill_by_tag
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.7:
	add	x0, x20, #8
	bl	_menu_timer_kill
LBB0_8:
	ldr	x0, [x20]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_free
LBB0_10:
	cbz	w19, LBB0_16
; %bb.11:
Lloh2:
	adrp	x19, _current_msgs@GOTPAGE
Lloh3:
	ldr	x19, [x19, _current_msgs@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh4:
	adrp	x20, _msg_queue_kill@GOTPAGE
Lloh5:
	ldr	x20, [x20, _msg_queue_kill@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_file_list_free_userdata
	ldr	x9, [x20]
	ldr	x8, [x19]
	ldrsw	x10, [x8]
	sub	x10, x10, #1
	cmp	x9, x10
	b.hs	LBB0_15
; %bb.12:
	ldr	x10, [x8, #8]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x10, x9, lsl #2
	add	x12, x9, #1
	ldr	w9, [x11, #4]
	str	w9, [x11]
	ldrsw	x9, [x8]
	sub	x11, x9, #1
	mov	x9, x12
	cmp	x12, x11
	b.lo	LBB0_13
; %bb.14:
	mov	x10, x11
LBB0_15:
	str	w10, [x8]
LBB0_16:
Lloh6:
	adrp	x8, _widgets_moving@GOTPAGE
Lloh7:
	ldr	x8, [x8, _widgets_moving@GOTPAGEOFF]
Lloh8:
	str	wzr, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_msg_queue_tasks_count,4,2      ; @msg_queue_tasks_count
	.comm	_current_msgs,8,3               ; @current_msgs
	.comm	_msg_queue_kill,8,3             ; @msg_queue_kill
	.comm	_widgets_moving,4,2             ; @widgets_moving
	.no_dead_strip	_menu_widgets_msg_queue_free
.subsections_via_symbols
