	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_format_get_media_color_ubwc
__dpu_format_get_media_color_ubwc:      ## @_dpu_format_get_media_color_ubwc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_DRM_FORMAT_NV12@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movq	%r12, %rdi
	callq	_DPU_FORMAT_IS_DX
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	cmpq	$0, 8(%r12)
	jne	LBB0_8
## %bb.9:
	movq	_COLOR_FMT_P010_UBWC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_1:
	leaq	__dpu_format_get_media_color_ubwc.dpu_media_ubwc_map(%rip), %rdi
	callq	_ARRAY_SIZE
	movl	$-1, %r14d
	testl	%eax, %eax
	jle	LBB0_12
## %bb.2:
	leaq	__dpu_format_get_media_color_ubwc.dpu_media_ubwc_map+8(%rip), %r13
	xorl	%ebx, %ebx
	leaq	__dpu_format_get_media_color_ubwc.dpu_media_ubwc_map(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	cmpq	-8(%r13), %rax
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %r13
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_12
LBB0_6:
	movq	_COLOR_FMT_NV12_UBWC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_8:
	movq	_COLOR_FMT_NV12_BPP10_UBWC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_4:
	movl	(%r13), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @_dpu_format_get_media_color_ubwc.dpu_media_ubwc_map
__dpu_format_get_media_color_ubwc.dpu_media_ubwc_map:
	.quad	131                             ## 0x83
	.long	133                             ## 0x85
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	128                             ## 0x80
	.long	133                             ## 0x85
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	132                             ## 0x84
	.long	134                             ## 0x86
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	129                             ## 0x81
	.long	134                             ## 0x86
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	130                             ## 0x82
	.long	135                             ## 0x87
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4

	.comm	_DRM_FORMAT_NV12,8,3            ## @DRM_FORMAT_NV12
	.comm	_COLOR_FMT_NV12_BPP10_UBWC,4,2  ## @COLOR_FMT_NV12_BPP10_UBWC
	.comm	_COLOR_FMT_P010_UBWC,4,2        ## @COLOR_FMT_P010_UBWC
	.comm	_COLOR_FMT_NV12_UBWC,4,2        ## @COLOR_FMT_NV12_UBWC
	.no_dead_strip	__dpu_format_get_media_color_ubwc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_format_get_media_color_ubwc
__dpu_format_get_media_color_ubwc:      ; @_dpu_format_get_media_color_ubwc
	.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	x8, [x0]
Lloh0:
	adrp	x9, _DRM_FORMAT_NV12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_FORMAT_NV12@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_DPU_FORMAT_IS_DX
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _COLOR_FMT_NV12_BPP10_UBWC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _COLOR_FMT_NV12_BPP10_UBWC@GOTPAGEOFF]
Lloh5:
	adrp	x10, _COLOR_FMT_P010_UBWC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _COLOR_FMT_P010_UBWC@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	b	LBB0_10
LBB0_3:
Lloh7:
	adrp	x0, __dpu_format_get_media_color_ubwc.dpu_media_ubwc_map@PAGE
Lloh8:
	add	x0, x0, __dpu_format_get_media_color_ubwc.dpu_media_ubwc_map@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x21, #0
Lloh9:
	adrp	x22, __dpu_format_get_media_color_ubwc.dpu_media_ubwc_map@PAGE+8
Lloh10:
	add	x22, x22, __dpu_format_get_media_color_ubwc.dpu_media_ubwc_map@PAGEOFF+8
Lloh11:
	adrp	x20, __dpu_format_get_media_color_ubwc.dpu_media_ubwc_map@PAGE
Lloh12:
	add	x20, x20, __dpu_format_get_media_color_ubwc.dpu_media_ubwc_map@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldur	x9, [x22, #-8]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x22, x22, #24
	cmp	x21, w0, sxtw
	b.lt	LBB0_5
LBB0_7:
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x8, _COLOR_FMT_NV12_UBWC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COLOR_FMT_NV12_UBWC@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_9:
	ldr	w0, [x22]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @_dpu_format_get_media_color_ubwc.dpu_media_ubwc_map
__dpu_format_get_media_color_ubwc.dpu_media_ubwc_map:
	.quad	131                             ; 0x83
	.long	133                             ; 0x85
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	128                             ; 0x80
	.long	133                             ; 0x85
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	132                             ; 0x84
	.long	134                             ; 0x86
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	129                             ; 0x81
	.long	134                             ; 0x86
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	130                             ; 0x82
	.long	135                             ; 0x87
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4

	.comm	_DRM_FORMAT_NV12,8,3            ; @DRM_FORMAT_NV12
	.comm	_COLOR_FMT_NV12_BPP10_UBWC,4,2  ; @COLOR_FMT_NV12_BPP10_UBWC
	.comm	_COLOR_FMT_P010_UBWC,4,2        ; @COLOR_FMT_P010_UBWC
	.comm	_COLOR_FMT_NV12_UBWC,4,2        ; @COLOR_FMT_NV12_UBWC
	.no_dead_strip	__dpu_format_get_media_color_ubwc
.subsections_via_symbols
