	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_ih_set_rptr
_vega10_ih_set_rptr:                    ## @vega10_ih_set_rptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 16(%rsi)
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_WDOORBELL32
	movq	%r14, %rdi
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vega10_ih_irq_rearm            ## TAILCALL
LBB0_3:
	leaq	48(%r14), %rax
	cmpq	%rbx, %rax
	je	LBB0_4
## %bb.6:
	leaq	24(%r14), %rax
	cmpq	%rbx, %rax
	je	LBB0_7
## %bb.8:
	cmpq	%rbx, %r14
	je	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_OSSSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmIH_RB_RPTR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_OSSSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmIH_RB_RPTR_RING1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	_OSSSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmIH_RB_RPTR_RING2@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32_SOC15                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSSYS,4,2                     ## @OSSSYS
	.comm	_mmIH_RB_RPTR,4,2               ## @mmIH_RB_RPTR
	.comm	_mmIH_RB_RPTR_RING1,4,2         ## @mmIH_RB_RPTR_RING1
	.comm	_mmIH_RB_RPTR_RING2,4,2         ## @mmIH_RB_RPTR_RING2
	.no_dead_strip	_vega10_ih_set_rptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_ih_set_rptr
_vega10_ih_set_rptr:                    ; @vega10_ih_set_rptr
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	ldp	w1, w0, [x19]
	bl	_WDOORBELL32
	mov	x0, x20
	bl	_amdgpu_sriov_vf
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vega10_ih_irq_rearm
LBB0_3:
	add	x8, x20, #48
	cmp	x8, x19
	b.eq	LBB0_7
; %bb.4:
	add	x8, x20, #24
	cmp	x8, x19
	b.eq	LBB0_8
; %bb.5:
	cmp	x20, x19
	b.eq	LBB0_9
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh0:
	adrp	x8, _OSSSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSSYS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _mmIH_RB_RPTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmIH_RB_RPTR@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _OSSSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSSSYS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _mmIH_RB_RPTR_RING1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmIH_RB_RPTR_RING1@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _OSSSYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OSSSYS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _mmIH_RB_RPTR_RING2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmIH_RB_RPTR_RING2@GOTPAGEOFF]
LBB0_10:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32_SOC15
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSSYS,4,2                     ; @OSSSYS
	.comm	_mmIH_RB_RPTR,4,2               ; @mmIH_RB_RPTR
	.comm	_mmIH_RB_RPTR_RING1,4,2         ; @mmIH_RB_RPTR_RING1
	.comm	_mmIH_RB_RPTR_RING2,4,2         ; @mmIH_RB_RPTR_RING2
	.no_dead_strip	_vega10_ih_set_rptr
.subsections_via_symbols
