	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vce_v2_0_set_dyn_cg
_vce_v2_0_set_dyn_cg:                   ## @vce_v2_0_set_dyn_cg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	_VCE_CLOCK_GATING_B@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	andl	$-15138823, %ecx                ## imm = 0xFF18FFF9
	orl	$14745600, %ecx                 ## imm = 0xE10000
	andl	$-15139048, %eax                ## imm = 0xFF18FF18
	leal	225(%rax), %esi
	testl	%r15d, %r15d
	cmovnel	%ecx, %esi
	movl	(%rbx), %edi
	callq	_WREG32
	movq	_VCE_UENC_CLOCK_GATING@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	movl	%eax, %esi
	andl	$14688255, %esi                 ## imm = 0xE01FFF
	cmpl	%eax, %esi
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_WREG32
LBB0_2:
	movq	_VCE_UENC_REG_CLOCK_GATING@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	movl	%eax, %esi
	andl	$-1021, %esi                    ## imm = 0xFC03
	cmpl	%eax, %esi
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_WREG32
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.6:
	movq	_VCE_CGTT_CLK_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCE_CLOCK_GATING_B,4,2         ## @VCE_CLOCK_GATING_B
	.comm	_VCE_UENC_CLOCK_GATING,4,2      ## @VCE_UENC_CLOCK_GATING
	.comm	_VCE_UENC_REG_CLOCK_GATING,4,2  ## @VCE_UENC_REG_CLOCK_GATING
	.comm	_VCE_CGTT_CLK_OVERRIDE,4,2      ## @VCE_CGTT_CLK_OVERRIDE
	.no_dead_strip	_vce_v2_0_set_dyn_cg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vce_v2_0_set_dyn_cg
_vce_v2_0_set_dyn_cg:                   ; @vce_v2_0_set_dyn_cg
	.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	x20, _VCE_CLOCK_GATING_B@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VCE_CLOCK_GATING_B@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
	mov	w8, #225
	mov	w9, #65304
	movk	w9, #65304, lsl #16
	orr	w10, w9, w8
	and	w10, w0, w10
	mov	w11, #14745600
	orr	w10, w10, w11
	and	w9, w0, w9
	orr	w8, w9, w8
	cmp	w19, #0
	csel	w1, w8, w10, eq
	ldr	w0, [x20]
	bl	_WREG32
Lloh2:
	adrp	x20, _VCE_UENC_CLOCK_GATING@GOTPAGE
Lloh3:
	ldr	x20, [x20, _VCE_UENC_CLOCK_GATING@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
	and	w8, w0, #0xffffff
	and	w1, w8, #0xffe01fff
	cmp	w1, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_WREG32
LBB0_2:
Lloh4:
	adrp	x20, _VCE_UENC_REG_CLOCK_GATING@GOTPAGE
Lloh5:
	ldr	x20, [x20, _VCE_UENC_REG_CLOCK_GATING@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
	and	w1, w0, #0xfffffc03
	cmp	w1, w0
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_WREG32
LBB0_4:
	cbz	w19, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _VCE_CGTT_CLK_OVERRIDE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VCE_CGTT_CLK_OVERRIDE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VCE_CLOCK_GATING_B,4,2         ; @VCE_CLOCK_GATING_B
	.comm	_VCE_UENC_CLOCK_GATING,4,2      ; @VCE_UENC_CLOCK_GATING
	.comm	_VCE_UENC_REG_CLOCK_GATING,4,2  ; @VCE_UENC_REG_CLOCK_GATING
	.comm	_VCE_CGTT_CLK_OVERRIDE,4,2      ; @VCE_CGTT_CLK_OVERRIDE
	.no_dead_strip	_vce_v2_0_set_dyn_cg
.subsections_via_symbols
