	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_mp2_clear_reg
_amd_mp2_clear_reg:                     ## @amd_mp2_clear_reg
	.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	_AMD_C2P_MSG0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_AMD_C2P_MSG9@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jg	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_writel
	addq	$4, %rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jle	LBB0_1
LBB0_2:
	movq	_AMD_P2C_MSG1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_AMD_P2C_MSG2@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jg	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_writel
	addq	$4, %rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jle	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_C2P_MSG0,4,2               ## @AMD_C2P_MSG0
	.comm	_AMD_C2P_MSG9,4,2               ## @AMD_C2P_MSG9
	.comm	_AMD_P2C_MSG1,4,2               ## @AMD_P2C_MSG1
	.comm	_AMD_P2C_MSG2,4,2               ## @AMD_P2C_MSG2
	.no_dead_strip	_amd_mp2_clear_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_mp2_clear_reg
_amd_mp2_clear_reg:                     ; @amd_mp2_clear_reg
	.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, _AMD_C2P_MSG0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD_C2P_MSG0@GOTPAGEOFF]
Lloh2:
	ldrsw	x20, [x8]
Lloh3:
	adrp	x21, _AMD_C2P_MSG9@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AMD_C2P_MSG9@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.gt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x1, x20, x8
	mov	w0, #0
	bl	_writel
	add	x20, x20, #4
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.le	LBB0_1
LBB0_2:
Lloh5:
	adrp	x8, _AMD_P2C_MSG1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AMD_P2C_MSG1@GOTPAGEOFF]
Lloh7:
	ldrsw	x20, [x8]
Lloh8:
	adrp	x21, _AMD_P2C_MSG2@GOTPAGE
Lloh9:
	ldr	x21, [x21, _AMD_P2C_MSG2@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.gt	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x1, x20, x8
	mov	w0, #0
	bl	_writel
	add	x20, x20, #4
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.le	LBB0_3
LBB0_4:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_C2P_MSG0,4,2               ; @AMD_C2P_MSG0
	.comm	_AMD_C2P_MSG9,4,2               ; @AMD_C2P_MSG9
	.comm	_AMD_P2C_MSG1,4,2               ; @AMD_P2C_MSG1
	.comm	_AMD_P2C_MSG2,4,2               ; @AMD_P2C_MSG2
	.no_dead_strip	_amd_mp2_clear_reg
.subsections_via_symbols
