	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc2_set_odm_combine          ## -- Begin function optc2_set_odm_combine
	.p2align	4, 0x90
_optc2_set_odm_combine:                 ## @optc2_set_odm_combine
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_DCN10TG_FROM_TG
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	addl	8(%rbx), %eax
	cltd
	idivl	%r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_OPTC_MEMORY_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$2561, -44(%rbp)                ## 4-byte Folded Reload
                                        ## imm = 0xA01
	movl	$3, %ecx
	movl	$15, %eax
	cmovll	%ecx, %eax
	movl	(%r15), %edi
	movq	_OPTC_MEM_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movb	(%r14), %cl
	shlb	$2, %cl
	shll	%cl, %eax
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_REG_SET
LBB0_2:
	movq	16(%rbx), %rax
	movq	_PIXEL_ENCODING_YCBCR422@GOTPCREL(%rip), %rcx
	movq	_PIXEL_ENCODING_YCBCR420@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	cmpq	(%rsi), %rax
	sete	%dl
	addl	%edx, %edx
	cmpq	(%rcx), %rax
	movl	$1, %eax
	cmovel	%eax, %edx
	movq	_OPTC_DATA_FORMAT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OPTC_DATA_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_REG_UPDATE
	xorl	%edi, %edi
	cmpl	$2, %r13d
	sete	%dil
	callq	_ASSERT
	movq	_OPTC_DATA_SOURCE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OPTC_NUM_OF_INPUT_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPTC_SEG0_SRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_OPTC_SEG1_SRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r12), %r9d
	movl	4(%r12), %ebx
	xorl	%esi, %esi
	movl	$1, %ecx
	pushq	%rbx
	pushq	%rax
	callq	_REG_SET_3
	addq	$16, %rsp
	movq	_OPTC_WIDTH_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OPTC_SEGMENT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_REG_UPDATE
	movq	_OTG_H_TIMING_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_H_TIMING_DIV_BY2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_REG_SET
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPTC_MEMORY_CONFIG,4,2         ## @OPTC_MEMORY_CONFIG
	.comm	_OPTC_MEM_SEL,4,2               ## @OPTC_MEM_SEL
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ## @PIXEL_ENCODING_YCBCR422
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ## @PIXEL_ENCODING_YCBCR420
	.comm	_OPTC_DATA_FORMAT_CONTROL,4,2   ## @OPTC_DATA_FORMAT_CONTROL
	.comm	_OPTC_DATA_FORMAT,4,2           ## @OPTC_DATA_FORMAT
	.comm	_OPTC_DATA_SOURCE_SELECT,4,2    ## @OPTC_DATA_SOURCE_SELECT
	.comm	_OPTC_NUM_OF_INPUT_SEGMENT,4,2  ## @OPTC_NUM_OF_INPUT_SEGMENT
	.comm	_OPTC_SEG0_SRC_SEL,4,2          ## @OPTC_SEG0_SRC_SEL
	.comm	_OPTC_SEG1_SRC_SEL,4,2          ## @OPTC_SEG1_SRC_SEL
	.comm	_OPTC_WIDTH_CONTROL,4,2         ## @OPTC_WIDTH_CONTROL
	.comm	_OPTC_SEGMENT_WIDTH,4,2         ## @OPTC_SEGMENT_WIDTH
	.comm	_OTG_H_TIMING_CNTL,4,2          ## @OTG_H_TIMING_CNTL
	.comm	_OTG_H_TIMING_DIV_BY2,4,2       ## @OTG_H_TIMING_DIV_BY2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc2_set_odm_combine          ; -- Begin function optc2_set_odm_combine
	.p2align	2
_optc2_set_odm_combine:                 ; @optc2_set_odm_combine
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x24, x0
	bl	_DCN10TG_FROM_TG
	mov	x20, x0
	ldp	w8, w9, [x23]
	ldr	w10, [x23, #8]
	add	w8, w9, w8
	add	w8, w8, w10
Lloh0:
	adrp	x25, _OPTC_MEMORY_CONFIG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _OPTC_MEMORY_CONFIG@GOTPAGEOFF]
	ldr	w0, [x25]
	sdiv	w21, w8, w19
	bl	_REG
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #15
	mov	w9, #3
	cmp	w21, #2561
	csel	w8, w9, w8, lt
	ldr	w0, [x25]
Lloh2:
	adrp	x9, _OPTC_MEM_SEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OPTC_MEM_SEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	ldr	w9, [x24]
	lsl	w9, w9, #2
	lsl	w3, w8, w9
	mov	w1, #0
	bl	_REG_SET
LBB0_2:
	ldr	x8, [x23, #16]
Lloh5:
	adrp	x9, _PIXEL_ENCODING_YCBCR420@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PIXEL_ENCODING_YCBCR420@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w9, eq
Lloh8:
	adrp	x10, _PIXEL_ENCODING_YCBCR422@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PIXEL_ENCODING_YCBCR422@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	lsl	w9, w9, #1
	cmp	x8, x10
	csinc	w2, w9, wzr, ne
Lloh11:
	adrp	x8, _OPTC_DATA_FORMAT_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPTC_DATA_FORMAT_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _OPTC_DATA_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OPTC_DATA_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_REG_UPDATE
	cmp	w19, #2
	cset	w0, eq
	bl	_ASSERT
Lloh17:
	adrp	x8, _OPTC_DATA_SOURCE_SELECT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OPTC_DATA_SOURCE_SELECT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _OPTC_NUM_OF_INPUT_SEGMENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OPTC_NUM_OF_INPUT_SEGMENT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _OPTC_SEG0_SRC_SEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OPTC_SEG0_SRC_SEL@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
Lloh26:
	adrp	x8, _OPTC_SEG1_SRC_SEL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OPTC_SEG1_SRC_SEL@GOTPAGEOFF]
Lloh28:
	ldr	w6, [x8]
	ldp	w5, w7, [x22]
	mov	w1, #0
	mov	w3, #1
	bl	_REG_SET_3
Lloh29:
	adrp	x8, _OPTC_WIDTH_CONTROL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OPTC_WIDTH_CONTROL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _OPTC_SEGMENT_WIDTH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OPTC_SEGMENT_WIDTH@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_REG_UPDATE
Lloh35:
	adrp	x8, _OTG_H_TIMING_CNTL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OTG_H_TIMING_CNTL@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, _OTG_H_TIMING_DIV_BY2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _OTG_H_TIMING_DIV_BY2@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #1
	bl	_REG_SET
	str	w19, [x20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OPTC_MEMORY_CONFIG,4,2         ; @OPTC_MEMORY_CONFIG
	.comm	_OPTC_MEM_SEL,4,2               ; @OPTC_MEM_SEL
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ; @PIXEL_ENCODING_YCBCR422
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ; @PIXEL_ENCODING_YCBCR420
	.comm	_OPTC_DATA_FORMAT_CONTROL,4,2   ; @OPTC_DATA_FORMAT_CONTROL
	.comm	_OPTC_DATA_FORMAT,4,2           ; @OPTC_DATA_FORMAT
	.comm	_OPTC_DATA_SOURCE_SELECT,4,2    ; @OPTC_DATA_SOURCE_SELECT
	.comm	_OPTC_NUM_OF_INPUT_SEGMENT,4,2  ; @OPTC_NUM_OF_INPUT_SEGMENT
	.comm	_OPTC_SEG0_SRC_SEL,4,2          ; @OPTC_SEG0_SRC_SEL
	.comm	_OPTC_SEG1_SRC_SEL,4,2          ; @OPTC_SEG1_SRC_SEL
	.comm	_OPTC_WIDTH_CONTROL,4,2         ; @OPTC_WIDTH_CONTROL
	.comm	_OPTC_SEGMENT_WIDTH,4,2         ; @OPTC_SEGMENT_WIDTH
	.comm	_OTG_H_TIMING_CNTL,4,2          ; @OTG_H_TIMING_CNTL
	.comm	_OTG_H_TIMING_DIV_BY2,4,2       ; @OTG_H_TIMING_DIV_BY2
.subsections_via_symbols
