	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_mbus_code_to_colorspace    ## -- Begin function ipu_mbus_code_to_colorspace
	.p2align	4, 0x90
_ipu_mbus_code_to_colorspace:           ## @ipu_mbus_code_to_colorspace
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	andl	$61440, %edi                    ## imm = 0xF000
	cmpl	$8192, %edi                     ## imm = 0x2000
	jne	LBB0_1
## %bb.2:
	movq	_IPUV3_COLORSPACE_YUV@GOTPCREL(%rip), %rax
	cmpl	$4096, %edi                     ## imm = 0x1000
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_IPUV3_COLORSPACE_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	$4096, %edi                     ## imm = 0x1000
	jne	LBB0_5
LBB0_4:
	movq	_IPUV3_COLORSPACE_RGB@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPUV3_COLORSPACE_RGB,4,2       ## @IPUV3_COLORSPACE_RGB
	.comm	_IPUV3_COLORSPACE_YUV,4,2       ## @IPUV3_COLORSPACE_YUV
	.comm	_IPUV3_COLORSPACE_UNKNOWN,4,2   ## @IPUV3_COLORSPACE_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_mbus_code_to_colorspace    ; -- Begin function ipu_mbus_code_to_colorspace
	.p2align	2
_ipu_mbus_code_to_colorspace:           ; @ipu_mbus_code_to_colorspace
	.cfi_startproc
; %bb.0:
	and	w8, w0, #0xf000
Lloh0:
	adrp	x9, _IPUV3_COLORSPACE_RGB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPUV3_COLORSPACE_RGB@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IPUV3_COLORSPACE_YUV@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IPUV3_COLORSPACE_YUV@GOTPAGEOFF]
Lloh4:
	adrp	x11, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x11, [x11, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGEOFF]
	cmp	w8, #2, lsl #12                 ; =8192
	csel	x10, x10, x11, eq
	cmp	w8, #1, lsl #12                 ; =4096
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IPUV3_COLORSPACE_RGB,4,2       ; @IPUV3_COLORSPACE_RGB
	.comm	_IPUV3_COLORSPACE_YUV,4,2       ; @IPUV3_COLORSPACE_YUV
	.comm	_IPUV3_COLORSPACE_UNKNOWN,4,2   ; @IPUV3_COLORSPACE_UNKNOWN
.subsections_via_symbols
