	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_select_hdmi_venc_clk_source ## -- Begin function dss_select_hdmi_venc_clk_source
	.p2align	4, 0x90
_dss_select_hdmi_venc_clk_source:       ## @dss_select_hdmi_venc_clk_source
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_OMAP_DSS_CHANNEL_DIGIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	_DSS_VENC_TV_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %eax
	movq	_OMAP_DSS_OUTPUT_VENC@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	andl	%ebx, %ecx
	xorl	%edi, %edi
	orl	%eax, %ecx
	sete	%dil
	callq	_WARN_ON
	movq	_DSS_HDMI_M_PCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %eax
	movq	_OMAP_DSS_OUTPUT_HDMI@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	andl	%ebx, %ecx
	xorl	%edi, %edi
	orl	%eax, %ecx
	sete	%dil
	callq	_WARN_ON
	testl	%ebx, (%r12)
	je	LBB0_2
## %bb.1:
	testl	%ebx, (%r13)
	je	LBB0_2
## %bb.3:
	movq	_DSS_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	$15, %ecx
	movl	$15, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_FLD_MOD                    ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_CHANNEL_DIGIT,8,3     ## @OMAP_DSS_CHANNEL_DIGIT
	.comm	_DSS_VENC_TV_CLK,4,2            ## @DSS_VENC_TV_CLK
	.comm	_OMAP_DSS_OUTPUT_VENC,4,2       ## @OMAP_DSS_OUTPUT_VENC
	.comm	_DSS_HDMI_M_PCLK,4,2            ## @DSS_HDMI_M_PCLK
	.comm	_OMAP_DSS_OUTPUT_HDMI,4,2       ## @OMAP_DSS_OUTPUT_HDMI
	.comm	_DSS_CONTROL,4,2                ## @DSS_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_select_hdmi_venc_clk_source ; -- Begin function dss_select_hdmi_venc_clk_source
	.p2align	2
_dss_select_hdmi_venc_clk_source:       ; @dss_select_hdmi_venc_clk_source
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _OMAP_DSS_CHANNEL_DIGIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMAP_DSS_CHANNEL_DIGIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w21, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _DSS_VENC_TV_CLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSS_VENC_TV_CLK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x23, _OMAP_DSS_OUTPUT_VENC@GOTPAGE
Lloh7:
	ldr	x23, [x23, _OMAP_DSS_OUTPUT_VENC@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w21
	ccmp	w8, w1, #0, eq
	cset	w0, eq
	bl	_WARN_ON
Lloh8:
	adrp	x8, _DSS_HDMI_M_PCLK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSS_HDMI_M_PCLK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x22, _OMAP_DSS_OUTPUT_HDMI@GOTPAGE
Lloh12:
	ldr	x22, [x22, _OMAP_DSS_OUTPUT_HDMI@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w21
	ccmp	w8, w19, #0, eq
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _DSS_CONTROL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DSS_CONTROL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #15
	mov	w4, #15
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_REG_FLD_MOD
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_CHANNEL_DIGIT,8,3     ; @OMAP_DSS_CHANNEL_DIGIT
	.comm	_DSS_VENC_TV_CLK,4,2            ; @DSS_VENC_TV_CLK
	.comm	_OMAP_DSS_OUTPUT_VENC,4,2       ; @OMAP_DSS_OUTPUT_VENC
	.comm	_DSS_HDMI_M_PCLK,4,2            ; @DSS_HDMI_M_PCLK
	.comm	_OMAP_DSS_OUTPUT_HDMI,4,2       ; @OMAP_DSS_OUTPUT_HDMI
	.comm	_DSS_CONTROL,4,2                ; @DSS_CONTROL
.subsections_via_symbols
