	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kfd_fill_gpu_cache_info
_kfd_fill_gpu_cache_info:               ## @kfd_fill_gpu_cache_info
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$15, %eax
	jae	LBB0_1
## %bb.2:
	movq	%r9, %r14
	movq	%rcx, %rbx
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%r8, %r15
	movq	16(%rbp), %r13
	cltq
	leaq	l_switch.table.kfd_fill_gpu_cache_info(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_ARRAY_SIZE
	movl	$0, (%r14)
	movl	$0, (%r13)
	movl	$0, %esi
	testl	%eax, %eax
	jle	LBB0_23
## %bb.3:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r8d
	xorl	%r9d, %r9d
	movq	%r15, %rdi
	movl	%r12d, %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r9
	cmpq	-88(%rbp), %r9                  ## 8-byte Folded Reload
	je	LBB0_22
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %r10d
	xorl	%edx, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %r11d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r11, %r14
	movl	(%rbx), %r8d
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	incq	%r11
	movslq	%r8d, %rdx
	movq	%r11, %rax
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rdx, %r11
	movq	%r14, %r11
	jge	LBB0_21
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	testl	%r10d, %r10d
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=3
	movl	%ebx, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %r9
	movq	%r12, %r11
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=3
	movl	4(%rbx), %r10d
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	incq	%r8
	movslq	%r10d, %rdx
	movq	%r8, %rax
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	cmpq	%rdx, %r8
	jge	LBB0_19
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_11 Depth 4
	cmpl	$0, 8(%rbx)
	jle	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=4
	addq	$4, %rdi
	movq	16(%rbp), %rax
	incl	(%rax)
	movl	%ebx, %ecx
	addl	$-4, %ecx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addl	$4, (%rax)
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=4
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %r9
	movq	%r12, %r11
	movl	(%rsi,%r15,8), %eax
	addl	%eax, %r11d
	addl	%eax, %r13d
	cmpl	8(%rbx), %r13d
	jge	LBB0_17
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_9 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	16(%rbx), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax,%rdx,4), %r8d
	movq	%rdi, %r14
	movq	%rbx, %rdx
	movl	%ecx, %ebx
	movq	%r9, %r15
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r13
	movq	%r11, %r12
	pushq	%r11
	callq	_fill_in_pcache
	addq	$16, %rsp
	movq	%r14, %rdi
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=4
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=4
	movl	%ebx, %ecx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r11, %r14
	jmp	LBB0_20
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_22:
	movq	16(%rbp), %rax
	movl	(%rax), %esi
LBB0_23:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	xorl	%eax, %eax
LBB0_24:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kaveri_cache_info,8,3          ## @kaveri_cache_info
	.comm	_hawaii_cache_info,8,3          ## @hawaii_cache_info
	.comm	_carrizo_cache_info,8,3         ## @carrizo_cache_info
	.comm	_tonga_cache_info,8,3           ## @tonga_cache_info
	.comm	_fiji_cache_info,8,3            ## @fiji_cache_info
	.comm	_polaris10_cache_info,8,3       ## @polaris10_cache_info
	.comm	_polaris11_cache_info,8,3       ## @polaris11_cache_info
	.comm	_polaris12_cache_info,8,3       ## @polaris12_cache_info
	.comm	_vegam_cache_info,8,3           ## @vegam_cache_info
	.comm	_vega10_cache_info,8,3          ## @vega10_cache_info
	.comm	_raven_cache_info,8,3           ## @raven_cache_info
	.comm	_navi10_cache_info,8,3          ## @navi10_cache_info
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Added [%d] GPU cache entries\n"

	.no_dead_strip	_kfd_fill_gpu_cache_info
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.kfd_fill_gpu_cache_info
l_switch.table.kfd_fill_gpu_cache_info:
	.quad	_vegam_cache_info
	.quad	_vega10_cache_info
	.quad	_vega10_cache_info
	.quad	_vega10_cache_info
	.quad	_tonga_cache_info
	.quad	_raven_cache_info
	.quad	_polaris12_cache_info
	.quad	_polaris11_cache_info
	.quad	_polaris10_cache_info
	.quad	_navi10_cache_info
	.quad	_kaveri_cache_info
	.quad	_hawaii_cache_info
	.quad	_fiji_cache_info
	.quad	_carrizo_cache_info
	.quad	_vega10_cache_info

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kfd_fill_gpu_cache_info
_kfd_fill_gpu_cache_info:               ; @kfd_fill_gpu_cache_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x0]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #15
	b.hs	LBB0_18
; %bb.1:
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
Lloh0:
	adrp	x9, l_switch.table.kfd_fill_gpu_cache_info@PAGE
Lloh1:
	add	x9, x9, l_switch.table.kfd_fill_gpu_cache_info@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x25, [x8]
	mov	x0, x25
	bl	_ARRAY_SIZE
	str	wzr, [x20]
	str	wzr, [x19]
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.2:
	mov	x26, #0
	mov	w8, w0
	stp	x8, x19, [sp, #16]              ; 16-byte Folded Spill
	ldr	w9, [x22]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x26, x8
	b.eq	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	ldr	w8, [x22, #4]
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w9, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x24, x24, #1
	cmp	x24, w9, sxtw
	b.ge	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x19, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=3
	ldr	w8, [x22, #4]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	add	x19, x19, #1
	cmp	x19, w8, sxtw
	b.ge	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_15 Depth 4
	ldr	w9, [x22, #8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	mov	w28, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=4
	lsl	x8, x26, #3
	ldr	w8, [x25, x8]
	add	w27, w27, w8
	ldr	w9, [x22, #8]
	add	w28, w28, w8
	cmp	w28, w9
	b.ge	LBB0_10
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_12 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w4, [x8, x19, lsl #2]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x22
	mov	x3, x23
	mov	x5, x26
	mov	x6, x27
	mov	x7, x28
	bl	_fill_in_pcache
	tbnz	w0, #31, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=4
	cbnz	w0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=4
	add	x21, x21, #4
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	sub	w23, w23, #4
	ldr	w8, [x20]
	add	w8, w8, #4
	str	w8, [x20]
	b	LBB0_14
LBB0_18:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_19:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w1, [x8]
	b	LBB0_21
LBB0_20:
	mov	w1, #0
LBB0_21:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_kaveri_cache_info,8,3          ; @kaveri_cache_info
	.comm	_hawaii_cache_info,8,3          ; @hawaii_cache_info
	.comm	_carrizo_cache_info,8,3         ; @carrizo_cache_info
	.comm	_tonga_cache_info,8,3           ; @tonga_cache_info
	.comm	_fiji_cache_info,8,3            ; @fiji_cache_info
	.comm	_polaris10_cache_info,8,3       ; @polaris10_cache_info
	.comm	_polaris11_cache_info,8,3       ; @polaris11_cache_info
	.comm	_polaris12_cache_info,8,3       ; @polaris12_cache_info
	.comm	_vegam_cache_info,8,3           ; @vegam_cache_info
	.comm	_vega10_cache_info,8,3          ; @vega10_cache_info
	.comm	_raven_cache_info,8,3           ; @raven_cache_info
	.comm	_navi10_cache_info,8,3          ; @navi10_cache_info
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Added [%d] GPU cache entries\n"

	.no_dead_strip	_kfd_fill_gpu_cache_info
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.kfd_fill_gpu_cache_info
l_switch.table.kfd_fill_gpu_cache_info:
	.quad	_vegam_cache_info
	.quad	_vega10_cache_info
	.quad	_vega10_cache_info
	.quad	_vega10_cache_info
	.quad	_tonga_cache_info
	.quad	_raven_cache_info
	.quad	_polaris12_cache_info
	.quad	_polaris11_cache_info
	.quad	_polaris10_cache_info
	.quad	_navi10_cache_info
	.quad	_kaveri_cache_info
	.quad	_hawaii_cache_info
	.quad	_fiji_cache_info
	.quad	_carrizo_cache_info
	.quad	_vega10_cache_info

.subsections_via_symbols
