	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgui_free
_rgui_free:                             ## @rgui_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free
LBB0_3:
	xorl	%eax, %eax
	callq	_rgui_framebuffer_free
	xorl	%eax, %eax
	callq	_rgui_background_free
	movq	_fs_thumbnail@GOTPCREL(%rip), %rdi
	callq	_rgui_thumbnail_free
	movq	_mini_thumbnail@GOTPCREL(%rip), %rdi
	callq	_rgui_thumbnail_free
	movq	_mini_left_thumbnail@GOTPCREL(%rip), %rdi
	callq	_rgui_thumbnail_free
	movq	_rgui_upscale_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_free
	movq	$0, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fs_thumbnail,4,2               ## @fs_thumbnail
	.comm	_mini_thumbnail,4,2             ## @mini_thumbnail
	.comm	_mini_left_thumbnail,4,2        ## @mini_left_thumbnail
	.comm	_rgui_upscale_buf,8,3           ## @rgui_upscale_buf
	.no_dead_strip	_rgui_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgui_free
_rgui_free:                             ; @rgui_free
	.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
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
LBB0_3:
	bl	_rgui_framebuffer_free
	bl	_rgui_background_free
Lloh0:
	adrp	x0, _fs_thumbnail@GOTPAGE
Lloh1:
	ldr	x0, [x0, _fs_thumbnail@GOTPAGEOFF]
	bl	_rgui_thumbnail_free
Lloh2:
	adrp	x0, _mini_thumbnail@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mini_thumbnail@GOTPAGEOFF]
	bl	_rgui_thumbnail_free
Lloh4:
	adrp	x0, _mini_left_thumbnail@GOTPAGE
Lloh5:
	ldr	x0, [x0, _mini_left_thumbnail@GOTPAGEOFF]
	bl	_rgui_thumbnail_free
Lloh6:
	adrp	x19, _rgui_upscale_buf@GOTPAGE
Lloh7:
	ldr	x19, [x19, _rgui_upscale_buf@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
	str	xzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_fs_thumbnail,4,2               ; @fs_thumbnail
	.comm	_mini_thumbnail,4,2             ; @mini_thumbnail
	.comm	_mini_left_thumbnail,4,2        ; @mini_left_thumbnail
	.comm	_rgui_upscale_buf,8,3           ; @rgui_upscale_buf
	.no_dead_strip	_rgui_free
.subsections_via_symbols
