	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vce_v2_0_set_sw_cg
_vce_v2_0_set_sw_cg:                    ## @vce_v2_0_set_sw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	_VCE_CLOCK_GATING_B@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	orl	$15138816, %eax                 ## imm = 0xE70000
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_WREG32
	movq	_VCE_UENC_CLOCK_GATING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
	orl	$-16777216, %eax                ## imm = 0xFF000000
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_WREG32
	movq	_VCE_UENC_REG_CLOCK_GATING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
	andl	$-1021, %eax                    ## imm = 0xFC03
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_WREG32
	xorl	%esi, %esi
	movq	_VCE_CGTT_CLK_OVERRIDE@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_2:
	andl	$-15139048, %eax                ## imm = 0xFF18FF18
	orl	$231, %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_WREG32
	movq	_VCE_UENC_CLOCK_GATING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
                                        ## kill: def $eax killed $eax def $rax
	andl	$14688255, %eax                 ## imm = 0xE01FFF
	leal	2088960(%rax), %esi
	movl	(%rbx), %edi
	callq	_WREG32
	movq	_VCE_UENC_REG_CLOCK_GATING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
	movl	%eax, %esi
	orl	$1020, %esi                     ## imm = 0x3FC
LBB0_3:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.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_sw_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_sw_cg
_vce_v2_0_set_sw_cg:                    ; @vce_v2_0_set_sw_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
	cbz	w19, LBB0_2
; %bb.1:
	mov	w8, #15138816
	orr	w1, w0, w8
	ldr	w0, [x20]
	bl	_WREG32
Lloh2:
	adrp	x19, _VCE_UENC_CLOCK_GATING@GOTPAGE
Lloh3:
	ldr	x19, [x19, _VCE_UENC_CLOCK_GATING@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_RREG32
	orr	w1, w0, #0xff000000
	ldr	w0, [x19]
	bl	_WREG32
Lloh4:
	adrp	x19, _VCE_UENC_REG_CLOCK_GATING@GOTPAGE
Lloh5:
	ldr	x19, [x19, _VCE_UENC_REG_CLOCK_GATING@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_RREG32
	and	w1, w0, #0xfffffc03
	ldr	w0, [x19]
	bl	_WREG32
	mov	w1, #0
Lloh6:
	adrp	x19, _VCE_CGTT_CLK_OVERRIDE@GOTPAGE
Lloh7:
	ldr	x19, [x19, _VCE_CGTT_CLK_OVERRIDE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	w8, #65304
	movk	w8, #65304, lsl #16
	and	w8, w0, w8
	mov	w9, #231
	orr	w1, w8, w9
	ldr	w0, [x20]
	bl	_WREG32
Lloh8:
	adrp	x19, _VCE_UENC_CLOCK_GATING@GOTPAGE
Lloh9:
	ldr	x19, [x19, _VCE_UENC_CLOCK_GATING@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_RREG32
	and	w8, w0, #0xffffff
	orr	w1, w8, #0x1fe000
	ldr	w0, [x19]
	bl	_WREG32
Lloh10:
	adrp	x19, _VCE_UENC_REG_CLOCK_GATING@GOTPAGE
Lloh11:
	ldr	x19, [x19, _VCE_UENC_REG_CLOCK_GATING@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_RREG32
	orr	w1, w0, #0x3fc
LBB0_3:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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_sw_cg
.subsections_via_symbols
