	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvd_v6_0_check_soft_reset
_uvd_v6_0_check_soft_reset:             ## @uvd_v6_0_check_soft_reset
	.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
	movq	%rdi, %r14
	movq	_mmSRBM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_SRBM_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_UVD_RQ_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r15), %esi
	movq	_UVD_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_mmUVD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movq	_AMDGPU_UVD_STATUS_BUSY_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
LBB0_3:
	movq	_SRBM_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOFT_RESET_UVD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ebx
	xorl	%edi, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
LBB0_5:
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSRBM_STATUS,4,2              ## @mmSRBM_STATUS
	.comm	_SRBM_STATUS,4,2                ## @SRBM_STATUS
	.comm	_UVD_RQ_PENDING,4,2             ## @UVD_RQ_PENDING
	.comm	_UVD_BUSY,4,2                   ## @UVD_BUSY
	.comm	_mmUVD_STATUS,4,2               ## @mmUVD_STATUS
	.comm	_AMDGPU_UVD_STATUS_BUSY_MASK,4,2 ## @AMDGPU_UVD_STATUS_BUSY_MASK
	.comm	_SRBM_SOFT_RESET,4,2            ## @SRBM_SOFT_RESET
	.comm	_SOFT_RESET_UVD,4,2             ## @SOFT_RESET_UVD
	.no_dead_strip	_uvd_v6_0_check_soft_reset
.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_check_soft_reset
_uvd_v6_0_check_soft_reset:             ; @uvd_v6_0_check_soft_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _mmSRBM_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmSRBM_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x20, x0
Lloh3:
	adrp	x21, _SRBM_STATUS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SRBM_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _UVD_RQ_PENDING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UVD_RQ_PENDING@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_REG_GET_FIELD
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _UVD_BUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UVD_BUSY@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
	cbnz	x0, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _mmUVD_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmUVD_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_RREG32
Lloh14:
	adrp	x8, _AMDGPU_UVD_STATUS_BUSY_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AMDGPU_UVD_STATUS_BUSY_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _SRBM_SOFT_RESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SRBM_SOFT_RESET@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SOFT_RESET_UVD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SOFT_RESET_UVD@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w20, #1
	mov	w0, #0
	mov	w3, #1
	bl	_REG_SET_FIELD
	cbnz	w0, LBB0_5
LBB0_4:
	mov	w0, #0
	mov	w20, #0
LBB0_5:
	ldr	x8, [x19]
	str	w0, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSRBM_STATUS,4,2              ; @mmSRBM_STATUS
	.comm	_SRBM_STATUS,4,2                ; @SRBM_STATUS
	.comm	_UVD_RQ_PENDING,4,2             ; @UVD_RQ_PENDING
	.comm	_UVD_BUSY,4,2                   ; @UVD_BUSY
	.comm	_mmUVD_STATUS,4,2               ; @mmUVD_STATUS
	.comm	_AMDGPU_UVD_STATUS_BUSY_MASK,4,2 ; @AMDGPU_UVD_STATUS_BUSY_MASK
	.comm	_SRBM_SOFT_RESET,4,2            ; @SRBM_SOFT_RESET
	.comm	_SOFT_RESET_UVD,4,2             ; @SOFT_RESET_UVD
	.no_dead_strip	_uvd_v6_0_check_soft_reset
.subsections_via_symbols
