	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvd_v6_0_stop
_uvd_v6_0_stop:                         ## @uvd_v6_0_stop
	.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
	movq	_mmUVD_RBC_RB_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$285278465, %esi                ## imm = 0x11010101
	callq	_WREG32
	movq	_mmUVD_LMI_CTRL2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$256, %esi                      ## imm = 0x100
	movl	$-257, %edx                     ## imm = 0xFEFF
	callq	_WREG32_P
	movl	$1, %edi
	callq	_mdelay
	movq	_mmUVD_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UVD_SOFT_RESET__VCPU_SOFT_RESET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
	movl	$5, %edi
	callq	_mdelay
	movq	_mmUVD_VCPU_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$-257, %edx                     ## imm = 0xFEFF
	callq	_WREG32_P
	movq	_mmUVD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmUVD_RBC_RB_CNTL,4,2          ## @mmUVD_RBC_RB_CNTL
	.comm	_mmUVD_LMI_CTRL2,4,2            ## @mmUVD_LMI_CTRL2
	.comm	_mmUVD_SOFT_RESET,4,2           ## @mmUVD_SOFT_RESET
	.comm	_UVD_SOFT_RESET__VCPU_SOFT_RESET_MASK,4,2 ## @UVD_SOFT_RESET__VCPU_SOFT_RESET_MASK
	.comm	_mmUVD_VCPU_CNTL,4,2            ## @mmUVD_VCPU_CNTL
	.comm	_mmUVD_STATUS,4,2               ## @mmUVD_STATUS
	.no_dead_strip	_uvd_v6_0_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvd_v6_0_stop
_uvd_v6_0_stop:                         ; @uvd_v6_0_stop
	.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
Lloh0:
	adrp	x8, _mmUVD_RBC_RB_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmUVD_RBC_RB_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #257
	movk	w1, #4353, lsl #16
	bl	_WREG32
Lloh3:
	adrp	x19, _mmUVD_LMI_CTRL2@GOTPAGE
Lloh4:
	ldr	x19, [x19, _mmUVD_LMI_CTRL2@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #256
	mov	w2, #-257
	bl	_WREG32_P
	mov	w0, #1
	bl	_mdelay
Lloh5:
	adrp	x8, _mmUVD_SOFT_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmUVD_SOFT_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _UVD_SOFT_RESET__VCPU_SOFT_RESET_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UVD_SOFT_RESET__VCPU_SOFT_RESET_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_WREG32
	mov	w0, #5
	bl	_mdelay
Lloh11:
	adrp	x8, _mmUVD_VCPU_CNTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmUVD_VCPU_CNTL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_WREG32
	ldr	w0, [x19]
	mov	w1, #0
	mov	w2, #-257
	bl	_WREG32_P
Lloh14:
	adrp	x8, _mmUVD_STATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmUVD_STATUS@GOTPAGEOFF]
Lloh16:
	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
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmUVD_RBC_RB_CNTL,4,2          ; @mmUVD_RBC_RB_CNTL
	.comm	_mmUVD_LMI_CTRL2,4,2            ; @mmUVD_LMI_CTRL2
	.comm	_mmUVD_SOFT_RESET,4,2           ; @mmUVD_SOFT_RESET
	.comm	_UVD_SOFT_RESET__VCPU_SOFT_RESET_MASK,4,2 ; @UVD_SOFT_RESET__VCPU_SOFT_RESET_MASK
	.comm	_mmUVD_VCPU_CNTL,4,2            ; @mmUVD_VCPU_CNTL
	.comm	_mmUVD_STATUS,4,2               ; @mmUVD_STATUS
	.no_dead_strip	_uvd_v6_0_stop
.subsections_via_symbols
