	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv770_clear_smc_sram
_rv770_clear_smc_sram:                  ## @rv770_clear_smc_sram
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_spin_lock_irqsave
	testq	%r15, %r15
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_SMC_SRAM_DATA@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_rv770_set_smc_sram_address
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_WREG32
	addq	$4, %rbx
	cmpq	%r15, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMC_SRAM_DATA,4,2              ## @SMC_SRAM_DATA
	.no_dead_strip	_rv770_clear_smc_sram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv770_clear_smc_sram
_rv770_clear_smc_sram:                  ; @rv770_clear_smc_sram
	.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	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
	cmp	x20, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x22, _SMC_SRAM_DATA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SMC_SRAM_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_rv770_set_smc_sram_address
	ldr	w0, [x22]
	mov	w1, #0
	bl	_WREG32
	add	x21, x21, #4
	cmp	x21, x20
	b.lt	LBB0_2
LBB0_3:
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SMC_SRAM_DATA,4,2              ; @SMC_SRAM_DATA
	.no_dead_strip	_rv770_clear_smc_sram
.subsections_via_symbols
