	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_backend_plane_uses_frontend
_sun4i_backend_plane_uses_frontend:     ## @sun4i_backend_plane_uses_frontend
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_plane_to_sun4i_layer
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	8(%rcx), %rdx
	movl	(%rdx), %r15d
	movl	(%rcx), %r12d
	movl	(%rax), %edi
	callq	_IS_ERR
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_sun4i_frontend_format_is_supported
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_sun4i_backend_format_is_supported
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_sun4i_backend_plane_uses_scaler
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	jmp	LBB0_5
LBB0_3:
	movl	$1, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sun4i_backend_plane_uses_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_backend_plane_uses_frontend
_sun4i_backend_plane_uses_frontend:     ; @sun4i_backend_plane_uses_frontend
	.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	x19, x0
	ldr	w0, [x0, #8]
	bl	_plane_to_sun4i_layer
	ldr	x8, [x0]
	ldr	x9, [x19]
	ldr	x10, [x9, #8]
	ldr	w20, [x10]
	ldr	w21, [x9]
	ldr	w0, [x8]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_sun4i_frontend_format_is_supported
	cbz	w0, LBB0_2
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_sun4i_backend_format_is_supported
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_sun4i_backend_plane_uses_scaler
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_2
LBB0_6:
	mov	w0, #1
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sun4i_backend_plane_uses_frontend
.subsections_via_symbols
