	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_irq_gpu_reset_resume_helper ## -- Begin function amdgpu_irq_gpu_reset_resume_helper
	.p2align	4, 0x90
_amdgpu_irq_gpu_reset_resume_helper:    ## @amdgpu_irq_gpu_reset_resume_helper
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AMDGPU_IRQ_CLIENTID_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movq	%rdi, %r14
	movq	_AMDGPU_MAX_IRQ_SRC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_AMDGPU_IRQ_CLIENTID_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	(%r14), %rdx
	movq	(%rdx,%r12,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jle	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movq	(%rdx,%r13,8), %r15
	testq	%r15, %r15
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_amdgpu_irq_update
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_AMDGPU_MAX_IRQ_SRC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r14), %rcx
	movq	(%rcx,%r12,8), %rdx
	jmp	LBB0_5
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_IRQ_CLIENTID_MAX,4,2    ## @AMDGPU_IRQ_CLIENTID_MAX
	.comm	_AMDGPU_MAX_IRQ_SRC_ID,4,2      ## @AMDGPU_MAX_IRQ_SRC_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_irq_gpu_reset_resume_helper ; -- Begin function amdgpu_irq_gpu_reset_resume_helper
	.p2align	2
_amdgpu_irq_gpu_reset_resume_helper:    ; @amdgpu_irq_gpu_reset_resume_helper
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x22, _AMDGPU_IRQ_CLIENTID_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AMDGPU_IRQ_CLIENTID_MAX@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x0
	mov	x23, #0
Lloh2:
	adrp	x24, _AMDGPU_MAX_IRQ_SRC_ID@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AMDGPU_MAX_IRQ_SRC_ID@GOTPAGEOFF]
	ldr	w8, [x24]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x10, [x19]
	ldr	x10, [x10, x23, lsl #3]
	cmp	x10, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	ldr	x20, [x10, x25, lsl #3]
	cbz	x20, LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_amdgpu_irq_update
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [x19]
	ldr	x10, [x9, x23, lsl #3]
	ldr	x20, [x10, x25, lsl #3]
	cbnz	x20, LBB0_6
	b	LBB0_10
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_IRQ_CLIENTID_MAX,4,2    ; @AMDGPU_IRQ_CLIENTID_MAX
	.comm	_AMDGPU_MAX_IRQ_SRC_ID,4,2      ; @AMDGPU_MAX_IRQ_SRC_ID
.subsections_via_symbols
