	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_ih_irq_rearm
_vega10_ih_irq_rearm:                   ## @vega10_ih_irq_rearm
	.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, %r12
	leaq	48(%rdi), %rax
	cmpq	%rsi, %rax
	je	LBB0_1
## %bb.2:
	leaq	24(%rdi), %rax
	cmpq	%r12, %rax
	je	LBB0_3
## %bb.4:
	cmpq	%r12, %rdi
	jne	LBB0_11
## %bb.5:
	movq	_mmIH_RB_RPTR_RING2@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_mmIH_RB_RPTR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_mmIH_RB_RPTR_RING1@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_OSSSYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	_MAX_REARM_RETRY@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_11
## %bb.7:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_RREG32_NO_KIQ
	cmpq	(%r12), %rax
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %rsi
	cmpq	%rsi, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%r12), %edi
	callq	_WDOORBELL32
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_8
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.comm	_MAX_REARM_RETRY,8,3            ## @MAX_REARM_RETRY
	.no_dead_strip	_vega10_ih_irq_rearm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_ih_irq_rearm
_vega10_ih_irq_rearm:                   ; @vega10_ih_irq_rearm
	.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, x1
	add	x8, x0, #48
	cmp	x8, x1
	b.eq	LBB0_4
; %bb.1:
	add	x8, x0, #24
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.2:
	cmp	x0, x19
	b.ne	LBB0_11
; %bb.3:
Lloh0:
	adrp	x8, _mmIH_RB_RPTR_RING2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmIH_RB_RPTR_RING2@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _mmIH_RB_RPTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmIH_RB_RPTR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _mmIH_RB_RPTR_RING1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mmIH_RB_RPTR_RING1@GOTPAGEOFF]
LBB0_6:
Lloh6:
	adrp	x9, _OSSSYS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OSSSYS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
Lloh9:
	adrp	x21, _MAX_REARM_RETRY@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MAX_REARM_RETRY@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x20, x0
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_RREG32_NO_KIQ
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x19, #8]
	cmp	x0, x1
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #16]
	bl	_WDOORBELL32
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_8
LBB0_11:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
	.comm	_MAX_REARM_RETRY,8,3            ; @MAX_REARM_RETRY
	.no_dead_strip	_vega10_ih_irq_rearm
.subsections_via_symbols
