	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_vec_encoder_disable
_vc4_vec_encoder_disable:               ## @vc4_vec_encoder_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_to_vc4_vec_encoder
	movq	(%rax), %rbx
	movq	_VEC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_VEC_WRITE
	movq	_VEC_DAC_MISC_VCD_PWRDN@GOTPCREL(%rip), %rax
	movq	_VEC_DAC_MISC_BIAS_PWRDN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_VEC_DAC_MISC@GOTPCREL(%rip), %rax
	movq	_VEC_DAC_MISC_DAC_PWRDN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_VEC_DAC_MISC_LDO_PWRDN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_VEC_WRITE
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
	movq	(%rbx), %rdi
	callq	_pm_runtime_put
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VEC_CFG,4,2                    ## @VEC_CFG
	.comm	_VEC_DAC_MISC,4,2               ## @VEC_DAC_MISC
	.comm	_VEC_DAC_MISC_VCD_PWRDN,4,2     ## @VEC_DAC_MISC_VCD_PWRDN
	.comm	_VEC_DAC_MISC_BIAS_PWRDN,4,2    ## @VEC_DAC_MISC_BIAS_PWRDN
	.comm	_VEC_DAC_MISC_DAC_PWRDN,4,2     ## @VEC_DAC_MISC_DAC_PWRDN
	.comm	_VEC_DAC_MISC_LDO_PWRDN,4,2     ## @VEC_DAC_MISC_LDO_PWRDN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to release power domain: %d\n"

	.no_dead_strip	_vc4_vec_encoder_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_vec_encoder_disable
_vc4_vec_encoder_disable:               ; @vc4_vec_encoder_disable
	.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
	bl	_to_vc4_vec_encoder
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _VEC_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VEC_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_VEC_WRITE
Lloh3:
	adrp	x8, _VEC_DAC_MISC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VEC_DAC_MISC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _VEC_DAC_MISC_VCD_PWRDN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VEC_DAC_MISC_VCD_PWRDN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _VEC_DAC_MISC_BIAS_PWRDN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VEC_DAC_MISC_BIAS_PWRDN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _VEC_DAC_MISC_DAC_PWRDN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VEC_DAC_MISC_DAC_PWRDN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _VEC_DAC_MISC_LDO_PWRDN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VEC_DAC_MISC_LDO_PWRDN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_VEC_WRITE
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	x0, [x19]
	bl	_pm_runtime_put
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_ERROR
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VEC_CFG,4,2                    ; @VEC_CFG
	.comm	_VEC_DAC_MISC,4,2               ; @VEC_DAC_MISC
	.comm	_VEC_DAC_MISC_VCD_PWRDN,4,2     ; @VEC_DAC_MISC_VCD_PWRDN
	.comm	_VEC_DAC_MISC_BIAS_PWRDN,4,2    ; @VEC_DAC_MISC_BIAS_PWRDN
	.comm	_VEC_DAC_MISC_DAC_PWRDN,4,2     ; @VEC_DAC_MISC_DAC_PWRDN
	.comm	_VEC_DAC_MISC_LDO_PWRDN,4,2     ; @VEC_DAC_MISC_LDO_PWRDN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to release power domain: %d\n"

	.no_dead_strip	_vc4_vec_encoder_disable
.subsections_via_symbols
