	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_widgets_free              ## -- Begin function menu_widgets_free
	.p2align	4, 0x90
_menu_widgets_free:                     ## @menu_widgets_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
	movq	_volume_tag@GOTPCREL(%rip), %rdi
	callq	_menu_animation_kill_by_tag
	movq	_menu_widgets_generic_tag@GOTPCREL(%rip), %rdi
	callq	_menu_animation_kill_by_tag
	movq	_msg_queue@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	callq	_fifo_read_avail
	testq	%rax, %rax
	jle	LBB0_4
## %bb.2:
	leaq	-24(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_fifo_read
	movq	-24(%rbp), %rdi
	xorl	%esi, %esi
	callq	_menu_widgets_msg_queue_free
	movq	-24(%rbp), %rdi
	callq	_free
	movq	(%rbx), %rdi
	callq	_fifo_read_avail
	testq	%rax, %rax
	jg	LBB0_3
LBB0_4:
	movq	(%rbx), %rdi
	callq	_fifo_free
	movq	$0, (%rbx)
LBB0_5:
	movq	_current_msgs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	cmpq	$0, (%rdi)
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_file_list_get_userdata_at_offset
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_menu_widgets_msg_queue_free
	incq	%rbx
	movq	(%r14), %rdi
	cmpq	(%rdi), %rbx
	jb	LBB0_8
LBB0_9:
	callq	_file_list_free
	movq	$0, (%r14)
LBB0_10:
	movq	_msg_queue_tasks_count@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%edi, %edi
	callq	_menu_widgets_achievement_free
	movq	_font_raster_regular@GOTPCREL(%rip), %rdi
	callq	_video_coord_array_free
	movq	_font_raster_bold@GOTPCREL(%rip), %rdi
	callq	_video_coord_array_free
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_font_driver_bind_block
	movq	_generic_message_alpha@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_libretro_message_timer@GOTPCREL(%rip), %rdi
	movq	%rdi, -24(%rbp)
	movq	_libretro_message_alpha@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	callq	_menu_timer_kill
	leaq	-24(%rbp), %rdi
	callq	_menu_animation_kill_by_tag
	movq	_volume_alpha@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_screenshot_alpha@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%edi, %edi
	callq	_menu_widgets_screenshot_dispose
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_volume_tag,8,3                 ## @volume_tag
	.comm	_menu_widgets_generic_tag,8,3   ## @menu_widgets_generic_tag
	.comm	_msg_queue,8,3                  ## @msg_queue
	.comm	_current_msgs,8,3               ## @current_msgs
	.comm	_msg_queue_tasks_count,8,3      ## @msg_queue_tasks_count
	.comm	_font_raster_regular,4,2        ## @font_raster_regular
	.comm	_font_raster_bold,4,2           ## @font_raster_bold
	.comm	_generic_message_alpha,4,2      ## @generic_message_alpha
	.comm	_libretro_message_timer,4,2     ## @libretro_message_timer
	.comm	_libretro_message_alpha,4,2     ## @libretro_message_alpha
	.comm	_volume_alpha,4,2               ## @volume_alpha
	.comm	_screenshot_alpha,4,2           ## @screenshot_alpha
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_widgets_free              ; -- Begin function menu_widgets_free
	.p2align	2
_menu_widgets_free:                     ; @menu_widgets_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
Lloh0:
	adrp	x0, _volume_tag@GOTPAGE
Lloh1:
	ldr	x0, [x0, _volume_tag@GOTPAGEOFF]
	bl	_menu_animation_kill_by_tag
Lloh2:
	adrp	x0, _menu_widgets_generic_tag@GOTPAGE
Lloh3:
	ldr	x0, [x0, _menu_widgets_generic_tag@GOTPAGEOFF]
	bl	_menu_animation_kill_by_tag
Lloh4:
	adrp	x19, _msg_queue@GOTPAGE
Lloh5:
	ldr	x19, [x19, _msg_queue@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_fifo_read_avail
	cmp	x0, #1
	b.lt	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #8
	bl	_fifo_read
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_menu_widgets_msg_queue_free
	ldr	x0, [sp, #8]
	bl	_free
	ldr	x0, [x19]
	bl	_fifo_read_avail
	cmp	x0, #0
	b.gt	LBB0_2
LBB0_3:
	ldr	x0, [x19]
	bl	_fifo_free
	str	xzr, [x19]
LBB0_4:
Lloh6:
	adrp	x20, _current_msgs@GOTPAGE
Lloh7:
	ldr	x20, [x20, _current_msgs@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x19, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x19
	bl	_file_list_get_userdata_at_offset
	mov	w1, #0
	bl	_menu_widgets_msg_queue_free
	add	x19, x19, #1
	ldr	x0, [x20]
	ldr	x8, [x0]
	cmp	x19, x8
	b.lo	LBB0_7
LBB0_8:
	bl	_file_list_free
	str	xzr, [x20]
LBB0_9:
Lloh8:
	adrp	x8, _msg_queue_tasks_count@GOTPAGE
Lloh9:
	ldr	x8, [x8, _msg_queue_tasks_count@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	mov	x0, #0
	bl	_menu_widgets_achievement_free
Lloh11:
	adrp	x0, _font_raster_regular@GOTPAGE
Lloh12:
	ldr	x0, [x0, _font_raster_regular@GOTPAGEOFF]
	bl	_video_coord_array_free
Lloh13:
	adrp	x0, _font_raster_bold@GOTPAGE
Lloh14:
	ldr	x0, [x0, _font_raster_bold@GOTPAGEOFF]
	bl	_video_coord_array_free
	mov	x0, #0
	mov	x1, #0
	bl	_font_driver_bind_block
Lloh15:
	adrp	x8, _generic_message_alpha@GOTPAGE
Lloh16:
	ldr	x8, [x8, _generic_message_alpha@GOTPAGEOFF]
Lloh17:
	str	wzr, [x8]
Lloh18:
	adrp	x0, _libretro_message_timer@GOTPAGE
Lloh19:
	ldr	x0, [x0, _libretro_message_timer@GOTPAGEOFF]
	str	x0, [sp, #8]
Lloh20:
	adrp	x8, _libretro_message_alpha@GOTPAGE
Lloh21:
	ldr	x8, [x8, _libretro_message_alpha@GOTPAGEOFF]
Lloh22:
	str	wzr, [x8]
	bl	_menu_timer_kill
	add	x0, sp, #8
	bl	_menu_animation_kill_by_tag
Lloh23:
	adrp	x8, _volume_alpha@GOTPAGE
Lloh24:
	ldr	x8, [x8, _volume_alpha@GOTPAGEOFF]
Lloh25:
	str	wzr, [x8]
Lloh26:
	adrp	x8, _screenshot_alpha@GOTPAGE
Lloh27:
	ldr	x8, [x8, _screenshot_alpha@GOTPAGEOFF]
Lloh28:
	str	wzr, [x8]
	mov	x0, #0
	bl	_menu_widgets_screenshot_dispose
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_volume_tag,8,3                 ; @volume_tag
	.comm	_menu_widgets_generic_tag,8,3   ; @menu_widgets_generic_tag
	.comm	_msg_queue,8,3                  ; @msg_queue
	.comm	_current_msgs,8,3               ; @current_msgs
	.comm	_msg_queue_tasks_count,8,3      ; @msg_queue_tasks_count
	.comm	_font_raster_regular,4,2        ; @font_raster_regular
	.comm	_font_raster_bold,4,2           ; @font_raster_bold
	.comm	_generic_message_alpha,4,2      ; @generic_message_alpha
	.comm	_libretro_message_timer,4,2     ; @libretro_message_timer
	.comm	_libretro_message_alpha,4,2     ; @libretro_message_alpha
	.comm	_volume_alpha,4,2               ; @volume_alpha
	.comm	_screenshot_alpha,4,2           ; @screenshot_alpha
.subsections_via_symbols
