	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_reset_smio_status        ## -- Begin function rv770_reset_smio_status
	.p2align	4, 0x90
_rv770_reset_smio_status:               ## @rv770_reset_smio_status
	.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
	callq	_rv770_get_pi
	movq	%rax, %rbx
	movq	_GENERAL_PWRMGT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
                                        ## kill: def $eax killed $eax def $rax
	movq	_SW_SMIO_INDEX_MASK@GOTPCREL(%rip), %r15
	andl	(%r15), %eax
	movq	_SW_SMIO_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%rbx), %esi
	jmp	LBB0_7
LBB0_5:
	movq	_S1_VID_LOWER_SMIO_CNTL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_S2_VID_LOWER_SMIO_CNTL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_S3_VID_LOWER_SMIO_CNTL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %esi
LBB0_7:
	movq	_S0_VID_LOWER_SMIO_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WREG32
	movl	(%r14), %ebx
	xorl	%edi, %edi
	callq	_SW_SMIO_INDEX
	movl	(%r15), %edx
	notl	%edx
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_P                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_GENERAL_PWRMGT,4,2             ## @GENERAL_PWRMGT
	.comm	_SW_SMIO_INDEX_MASK,4,2         ## @SW_SMIO_INDEX_MASK
	.comm	_SW_SMIO_INDEX_SHIFT,4,2        ## @SW_SMIO_INDEX_SHIFT
	.comm	_S3_VID_LOWER_SMIO_CNTL,4,2     ## @S3_VID_LOWER_SMIO_CNTL
	.comm	_S2_VID_LOWER_SMIO_CNTL,4,2     ## @S2_VID_LOWER_SMIO_CNTL
	.comm	_S1_VID_LOWER_SMIO_CNTL,4,2     ## @S1_VID_LOWER_SMIO_CNTL
	.comm	_S0_VID_LOWER_SMIO_CNTL,4,2     ## @S0_VID_LOWER_SMIO_CNTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_reset_smio_status        ; -- Begin function rv770_reset_smio_status
	.p2align	2
_rv770_reset_smio_status:               ; @rv770_reset_smio_status
	.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
	bl	_rv770_get_pi
	mov	x19, x0
Lloh0:
	adrp	x20, _GENERAL_PWRMGT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GENERAL_PWRMGT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
Lloh2:
	adrp	x21, _SW_SMIO_INDEX_MASK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SW_SMIO_INDEX_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	and	w8, w8, w0
Lloh4:
	adrp	x9, _SW_SMIO_INDEX_SHIFT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SW_SMIO_INDEX_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	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
LBB0_3:
	ldr	w1, [x19]
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x8, _S1_VID_LOWER_SMIO_CNTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S1_VID_LOWER_SMIO_CNTL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _S2_VID_LOWER_SMIO_CNTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S2_VID_LOWER_SMIO_CNTL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _S3_VID_LOWER_SMIO_CNTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S3_VID_LOWER_SMIO_CNTL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x1, x0
LBB0_8:
Lloh15:
	adrp	x8, _S0_VID_LOWER_SMIO_CNTL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _S0_VID_LOWER_SMIO_CNTL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_WREG32
	ldr	w19, [x20]
	mov	w0, #0
	bl	_SW_SMIO_INDEX
	mov	x1, x0
	ldr	w8, [x21]
	mvn	w2, w8
	mov	x0, x19
	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
	b	_WREG32_P
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_GENERAL_PWRMGT,4,2             ; @GENERAL_PWRMGT
	.comm	_SW_SMIO_INDEX_MASK,4,2         ; @SW_SMIO_INDEX_MASK
	.comm	_SW_SMIO_INDEX_SHIFT,4,2        ; @SW_SMIO_INDEX_SHIFT
	.comm	_S3_VID_LOWER_SMIO_CNTL,4,2     ; @S3_VID_LOWER_SMIO_CNTL
	.comm	_S2_VID_LOWER_SMIO_CNTL,4,2     ; @S2_VID_LOWER_SMIO_CNTL
	.comm	_S1_VID_LOWER_SMIO_CNTL,4,2     ; @S1_VID_LOWER_SMIO_CNTL
	.comm	_S0_VID_LOWER_SMIO_CNTL,4,2     ; @S0_VID_LOWER_SMIO_CNTL
.subsections_via_symbols
