	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_get_dpu_format_ext         ## -- Begin function dpu_get_dpu_format_ext
	.p2align	4, 0x90
_dpu_get_dpu_format_ext:                ## @dpu_get_dpu_format_ext
	.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
	movl	%esi, %r14d
	movq	%rdi, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPU_DEBUG
	cmpl	$128, %r14d
	je	LBB0_4
## %bb.1:
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	movq	_dpu_format_map@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_11
LBB0_4:
	movq	_dpu_format_map_ubwc@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	leaq	-32(%rbp), %rsi
	xorl	%eax, %eax
	callq	_DPU_DEBUG
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_6:
	movq	-32(%rbp), %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r15), %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	$8, %r15
	decq	%rbx
	jne	LBB0_8
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	leaq	-32(%rbp), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DPU_ERROR
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_DPU_FORMAT_IS_UBWC
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_DPU_FORMAT_IS_YUV
	leaq	L_.str.4(%rip), %rdi
	leaq	-32(%rbp), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_DPU_DEBUG
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plane format modifier 0x%llX\n"

	.comm	_dpu_format_map,8,3             ## @dpu_format_map
	.comm	_dpu_format_map_ubwc,8,3        ## @dpu_format_map_ubwc
L_.str.1:                               ## @.str.1
	.asciz	"found fmt: %4.4s  DRM_FORMAT_MOD_QCOM_COMPRESSED\n"

L_.str.2:                               ## @.str.2
	.asciz	"unsupported format modifier %llX\n"

L_.str.3:                               ## @.str.3
	.asciz	"unsupported fmt: %4.4s modifier 0x%llX\n"

L_.str.4:                               ## @.str.4
	.asciz	"fmt %4.4s mod 0x%llX ubwc %d yuv %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_get_dpu_format_ext         ; -- Begin function dpu_get_dpu_format_ext
	.p2align	2
_dpu_get_dpu_format_ext:                ; @dpu_get_dpu_format_ext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	str	x0, [sp, #40]
	mov	x8, x1
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_DEBUG
	cmp	w19, #128
	b.eq	LBB0_3
; %bb.1:
	cbnz	w19, LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _dpu_format_map@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dpu_format_map@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x21, x0
	cbnz	x21, LBB0_4
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x8, _dpu_format_map_ubwc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dpu_format_map_ubwc@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x21, x0
	add	x8, sp, #40
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPU_DEBUG
	cbz	x21, LBB0_7
LBB0_4:
	ldr	x8, [sp, #40]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #8
	subs	x21, x21, #1
	b.ne	LBB0_5
LBB0_7:
	add	x8, sp, #40
	stp	x8, x19, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_DPU_ERROR
	mov	x20, #0
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_DPU_FORMAT_IS_UBWC
	mov	x21, x0
	mov	x0, x20
	bl	_DPU_FORMAT_IS_YUV
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #16]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	add	x8, sp, #40
	stp	x8, x19, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPU_DEBUG
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plane format modifier 0x%llX\n"

	.comm	_dpu_format_map,8,3             ; @dpu_format_map
	.comm	_dpu_format_map_ubwc,8,3        ; @dpu_format_map_ubwc
l_.str.1:                               ; @.str.1
	.asciz	"found fmt: %4.4s  DRM_FORMAT_MOD_QCOM_COMPRESSED\n"

l_.str.2:                               ; @.str.2
	.asciz	"unsupported format modifier %llX\n"

l_.str.3:                               ; @.str.3
	.asciz	"unsupported fmt: %4.4s modifier 0x%llX\n"

l_.str.4:                               ; @.str.4
	.asciz	"fmt %4.4s mod 0x%llX ubwc %d yuv %d\n"

.subsections_via_symbols
