	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_gfx_free
_exynos_gfx_free:                       ## @exynos_gfx_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_exynos_g2d_free
	movl	20(%rbx), %esi
	movl	24(%rbx), %edi
	callq	_exynos_pages_used
	cmpl	$2, %eax
	jl	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, %edi
	callq	_drm_wait_flip
	movl	20(%rbx), %esi
	movl	24(%rbx), %edi
	callq	_exynos_pages_used
	cmpl	$1, %eax
	jg	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_exynos_free
	movq	%rbx, %rdi
	callq	_exynos_deinit
	movq	%rbx, %rdi
	callq	_exynos_close
	movq	%rbx, %rdi
	callq	_free
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	*(%rax)
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_exynos_gfx_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_gfx_free
_exynos_gfx_free:                       ; @exynos_gfx_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	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
	mov	x19, x0
	ldr	x20, [x0, #32]
	mov	x0, x20
	bl	_exynos_g2d_free
	ldp	w1, w0, [x20, #20]
	bl	_exynos_pages_used
	cmp	w0, #2
	b.lt	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #-1
	bl	_drm_wait_flip
	ldp	w1, w0, [x20, #20]
	bl	_exynos_pages_used
	cmp	w0, #1
	b.gt	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_exynos_free
	mov	x0, x20
	bl	_exynos_deinit
	mov	x0, x20
	bl	_exynos_close
	mov	x0, x20
	bl	_free
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x8]
	blr	x8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exynos_gfx_free
.subsections_via_symbols
