	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_verify_afbc_framebuffer_caps
_malidp_verify_afbc_framebuffer_caps:   ## @malidp_verify_afbc_framebuffer_caps
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	24(%rsi), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	callq	_malidp_format_mod_supported
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	movq	(%rbx), %rax
	movq	_AFBC_SIZE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	cmpl	$128, %ecx
	jne	LBB0_9
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	testb	$15, 16(%rbx)
	jne	LBB0_3
## %bb.7:
	testb	$15, 20(%rbx)
	jne	LBB0_3
## %bb.8:
	movl	$1, %r14d
	jmp	LBB0_4
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
LBB0_3:
	callq	_DRM_DEBUG_KMS
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AFBC buffers' plane offset should be 0\n"

	.comm	_AFBC_SIZE_MASK,4,2             ## @AFBC_SIZE_MASK
L_.str.1:                               ## @.str.1
	.asciz	"AFBC buffers must be aligned to 16 pixels\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported AFBC block size\n"

	.no_dead_strip	_malidp_verify_afbc_framebuffer_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_verify_afbc_framebuffer_caps
_malidp_verify_afbc_framebuffer_caps:   ; @malidp_verify_afbc_framebuffer_caps
	.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
	mov	x19, x1
	ldr	w1, [x1, #24]
	ldr	x8, [x19]
	ldr	w2, [x8]
	bl	_malidp_format_mod_supported
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_3:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _AFBC_SIZE_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AFBC_SIZE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.4:
	ldrb	w8, [x19, #16]
	tst	w8, #0xf
	b.ne	LBB0_6
; %bb.5:
	ldrb	w8, [x19, #20]
	tst	w8, #0xf
	b.eq	LBB0_10
LBB0_6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #1
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AFBC buffers' plane offset should be 0\n"

	.comm	_AFBC_SIZE_MASK,4,2             ; @AFBC_SIZE_MASK
l_.str.1:                               ; @.str.1
	.asciz	"AFBC buffers must be aligned to 16 pixels\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported AFBC block size\n"

	.no_dead_strip	_malidp_verify_afbc_framebuffer_caps
.subsections_via_symbols
