	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp1_dscl_get_dscl_mode
_dpp1_dscl_get_dscl_mode:               ## @dpp1_dscl_get_dscl_mode
	.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
	movq	_dc_fixpt_one@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_DSCL_DATA_PRCESSING_FIXED_FORMAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_PIXEL_FORMAT_FP16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_DSCL_MODE_DSCL_BYPASS@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_3:
	cmpq	%r14, 32(%rbx)
	jne	LBB0_9
## %bb.4:
	cmpq	%r14, 24(%rbx)
	jne	LBB0_9
## %bb.5:
	cmpq	%r14, 16(%rbx)
	jne	LBB0_9
## %bb.6:
	testl	%edx, %edx
	jne	LBB0_9
## %bb.7:
	cmpq	%r14, 8(%rbx)
	jne	LBB0_9
## %bb.8:
	movq	_DSCL_MODE_SCALING_444_BYPASS@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_9:
	movq	(%rbx), %rdi
	callq	_dpp1_dscl_is_420_format
	testl	%eax, %eax
	je	LBB0_10
## %bb.13:
	cmpq	%r14, 32(%rbx)
	jne	LBB0_16
## %bb.14:
	cmpq	%r14, 24(%rbx)
	jne	LBB0_16
## %bb.15:
	movq	_DSCL_MODE_SCALING_420_LUMA_BYPASS@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_16:
	cmpq	%r14, 16(%rbx)
	jne	LBB0_19
## %bb.17:
	cmpq	%r14, 8(%rbx)
	jne	LBB0_19
## %bb.18:
	movq	_DSCL_MODE_SCALING_420_CHROMA_BYPASS@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_10:
	movq	(%rbx), %rdi
	callq	_dpp1_dscl_is_video_format
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:
	movq	_DSCL_MODE_SCALING_444_RGB_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_DSCL_MODE_SCALING_420_YCBCR_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_11:
	movq	_DSCL_MODE_SCALING_444_YCBCR_ENABLE@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dc_fixpt_one,8,3               ## @dc_fixpt_one
	.comm	_DSCL_DATA_PRCESSING_FIXED_FORMAT,8,3 ## @DSCL_DATA_PRCESSING_FIXED_FORMAT
	.comm	_PIXEL_FORMAT_FP16,8,3          ## @PIXEL_FORMAT_FP16
	.comm	_DSCL_MODE_DSCL_BYPASS,4,2      ## @DSCL_MODE_DSCL_BYPASS
	.comm	_DSCL_MODE_SCALING_444_BYPASS,4,2 ## @DSCL_MODE_SCALING_444_BYPASS
	.comm	_DSCL_MODE_SCALING_444_YCBCR_ENABLE,4,2 ## @DSCL_MODE_SCALING_444_YCBCR_ENABLE
	.comm	_DSCL_MODE_SCALING_444_RGB_ENABLE,4,2 ## @DSCL_MODE_SCALING_444_RGB_ENABLE
	.comm	_DSCL_MODE_SCALING_420_LUMA_BYPASS,4,2 ## @DSCL_MODE_SCALING_420_LUMA_BYPASS
	.comm	_DSCL_MODE_SCALING_420_CHROMA_BYPASS,4,2 ## @DSCL_MODE_SCALING_420_CHROMA_BYPASS
	.comm	_DSCL_MODE_SCALING_420_YCBCR_ENABLE,4,2 ## @DSCL_MODE_SCALING_420_YCBCR_ENABLE
	.no_dead_strip	_dpp1_dscl_get_dscl_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp1_dscl_get_dscl_mode
_dpp1_dscl_get_dscl_mode:               ; @dpp1_dscl_get_dscl_mode
	.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
Lloh0:
	adrp	x8, _dc_fixpt_one@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dc_fixpt_one@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DSCL_DATA_PRCESSING_FIXED_FORMAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSCL_DATA_PRCESSING_FIXED_FORMAT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _PIXEL_FORMAT_FP16@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PIXEL_FORMAT_FP16@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _DSCL_MODE_DSCL_BYPASS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSCL_MODE_DSCL_BYPASS@GOTPAGEOFF]
	b	LBB0_18
LBB0_3:
	ldr	x8, [x19, #32]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x19, #24]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.6:
	cbnz	w2, LBB0_9
; %bb.7:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _DSCL_MODE_SCALING_444_BYPASS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DSCL_MODE_SCALING_444_BYPASS@GOTPAGEOFF]
	b	LBB0_18
LBB0_9:
	ldr	x0, [x19]
	bl	_dpp1_dscl_is_420_format
	cbz	w0, LBB0_16
; %bb.10:
	ldr	x8, [x19, #32]
	cmp	x8, x20
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x19, #24]
	cmp	x8, x20
	b.ne	LBB0_13
; %bb.12:
Lloh13:
	adrp	x8, _DSCL_MODE_SCALING_420_LUMA_BYPASS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DSCL_MODE_SCALING_420_LUMA_BYPASS@GOTPAGEOFF]
	b	LBB0_18
LBB0_13:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.ne	LBB0_17
; %bb.14:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_17
; %bb.15:
Lloh15:
	adrp	x8, _DSCL_MODE_SCALING_420_CHROMA_BYPASS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DSCL_MODE_SCALING_420_CHROMA_BYPASS@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	ldr	x0, [x19]
	bl	_dpp1_dscl_is_video_format
Lloh17:
	adrp	x8, _DSCL_MODE_SCALING_444_YCBCR_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DSCL_MODE_SCALING_444_YCBCR_ENABLE@GOTPAGEOFF]
Lloh19:
	adrp	x9, _DSCL_MODE_SCALING_444_RGB_ENABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DSCL_MODE_SCALING_444_RGB_ENABLE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_18
LBB0_17:
Lloh21:
	adrp	x8, _DSCL_MODE_SCALING_420_YCBCR_ENABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DSCL_MODE_SCALING_420_YCBCR_ENABLE@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_dc_fixpt_one,8,3               ; @dc_fixpt_one
	.comm	_DSCL_DATA_PRCESSING_FIXED_FORMAT,8,3 ; @DSCL_DATA_PRCESSING_FIXED_FORMAT
	.comm	_PIXEL_FORMAT_FP16,8,3          ; @PIXEL_FORMAT_FP16
	.comm	_DSCL_MODE_DSCL_BYPASS,4,2      ; @DSCL_MODE_DSCL_BYPASS
	.comm	_DSCL_MODE_SCALING_444_BYPASS,4,2 ; @DSCL_MODE_SCALING_444_BYPASS
	.comm	_DSCL_MODE_SCALING_444_YCBCR_ENABLE,4,2 ; @DSCL_MODE_SCALING_444_YCBCR_ENABLE
	.comm	_DSCL_MODE_SCALING_444_RGB_ENABLE,4,2 ; @DSCL_MODE_SCALING_444_RGB_ENABLE
	.comm	_DSCL_MODE_SCALING_420_LUMA_BYPASS,4,2 ; @DSCL_MODE_SCALING_420_LUMA_BYPASS
	.comm	_DSCL_MODE_SCALING_420_CHROMA_BYPASS,4,2 ; @DSCL_MODE_SCALING_420_CHROMA_BYPASS
	.comm	_DSCL_MODE_SCALING_420_YCBCR_ENABLE,4,2 ; @DSCL_MODE_SCALING_420_YCBCR_ENABLE
	.no_dead_strip	_dpp1_dscl_get_dscl_mode
.subsections_via_symbols
