	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_free_page
_exynos_free_page:                      ## @exynos_free_page
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movl	4(%rdi), %esi
	movl	8(%rdi), %edi
	callq	_exynos_get_free_page
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, %edi
	callq	_drm_wait_flip
	movl	4(%r15), %esi
	movl	8(%r15), %edi
	callq	_exynos_get_free_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
LBB0_3:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.4:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_exynos_clear_buffer
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	$0, (%rbx)
LBB0_6:
	movl	$1, 4(%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_exynos_free_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_free_page
_exynos_free_page:                      ; @exynos_free_page
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w0, [x0, #8]
	ldr	w1, [x20, #4]
	bl	_exynos_get_free_page
	mov	x21, x0
	cbnz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #-1
	bl	_drm_wait_flip
	ldp	w1, w0, [x20, #4]
	bl	_exynos_get_free_page
	cbz	x0, LBB0_1
; %bb.2:
	mov	x21, x0
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_exynos_clear_buffer
	cbnz	x0, LBB0_6
; %bb.5:
	str	wzr, [x21]
LBB0_6:
	mov	w8, #1
	str	w8, [x21, #4]
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exynos_free_page
.subsections_via_symbols
