	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panfrost_gpu_init_features
_panfrost_gpu_init_features:            ## @panfrost_gpu_init_features
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_hw_issues_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GPU_L2_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gpu_read
	movq	%rax, 80(%r15)
	movq	_GPU_CORE_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 72(%r15)
	movq	_GPU_TILER_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 64(%r15)
	movq	_GPU_MEM_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 56(%r15)
	movq	_GPU_MMU_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 48(%r15)
	movq	_GPU_THREAD_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 152(%r15)
	movq	_GPU_THREAD_MAX_THREADS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 144(%r15)
	movq	_GPU_THREAD_MAX_WORKGROUP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 136(%r15)
	movq	_GPU_THREAD_MAX_BARRIER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 128(%r15)
	movq	_GPU_COHERENCY_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 120(%r15)
	xorl	%edi, %edi
	callq	_GPU_TEXTURE_FEATURES
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_gpu_read
	movq	112(%r15), %rcx
	movq	%rax, (%rcx)
	movl	$1, %edi
	callq	_GPU_TEXTURE_FEATURES
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_gpu_read
	movq	112(%r15), %rcx
	movq	%rax, 8(%rcx)
	movl	$2, %edi
	callq	_GPU_TEXTURE_FEATURES
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_gpu_read
	movq	112(%r15), %rcx
	movq	%rax, 16(%rcx)
	movl	$3, %edi
	callq	_GPU_TEXTURE_FEATURES
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_gpu_read
	movq	112(%r15), %rcx
	movq	%rax, 24(%rcx)
	movq	_GPU_AS_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 40(%r15)
	movq	_GPU_JS_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_hweight32
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GPU_JS_FEATURES
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_gpu_read
	movq	104(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
LBB0_3:
	movq	_GPU_SHADER_PRESENT_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movl	%eax, (%r15)
	movq	_GPU_SHADER_PRESENT_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	_GPU_TILER_PRESENT_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movl	%eax, 4(%r15)
	movq	_GPU_TILER_PRESENT_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	_GPU_L2_PRESENT_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movl	%eax, 8(%r15)
	movq	_GPU_L2_PRESENT_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	callq	_hweight64
	movl	%eax, 96(%r15)
	movq	_GPU_STACK_PRESENT_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movl	%eax, 12(%r15)
	movq	_GPU_STACK_PRESENT_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	_GPU_THREAD_TLS_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, 88(%r15)
	movq	_GPU_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gpu_read
	movq	%rax, %r12
	movzwl	%r12w, %r13d
	movl	%r13d, 16(%r15)
	sarl	$16, %eax
	cmpl	$26966, %eax                    ## imm = 0x6956
	movl	$1536, %ebx                     ## imm = 0x600
	cmovnel	%eax, %ebx
	movl	%ebx, 20(%r15)
	movq	_gpu_models@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r14)
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_7
## %bb.4:
	addq	$32, %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%r14), %esi
	movq	%r15, %rdi
	callq	_panfrost_model_eq
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r14)
	leaq	32(%r14), %r14
	jne	LBB0_5
LBB0_7:
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_9:
	movq	-32(%r14), %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	orl	-20(%r14), %r8d
	movl	-24(%r14), %esi
	movq	_MAX_HW_REVS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_15
## %bb.10:
	movq	-16(%r14), %rdx
	movl	%r12d, %eax
	andl	$65520, %eax                    ## imm = 0xFFF0
	movl	$-1, %ecx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,8), %ebx
	cmpl	%r13d, %ebx
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%eax, %ebx
	cmovel	%edi, %ecx
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_11
## %bb.13:
	testl	%ecx, %ecx
	js	LBB0_15
LBB0_14:
	movq	-16(%r14), %rax
	movl	%ecx, %ecx
	orl	4(%rax,%rcx,8), %r8d
LBB0_15:
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
LBB0_8:
	movl	%r12d, %ebx
	andl	$15, %ebx
	movl	%r12d, %eax
	shrl	$4, %eax
	movzbl	%al, %r14d
	shrl	$12, %r12d
	andl	$15, %r12d
	movl	24(%r15), %edi
	callq	_bitmap_from_u64
	movl	28(%r15), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_bitmap_from_u64
	movl	160(%r15), %edi
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	callq	_dev_info
	addq	$16, %rsp
	movl	160(%r15), %edi
	movl	24(%r15), %edx
	movl	28(%r15), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movl	160(%r15), %edi
	movq	80(%r15), %rdx
	movq	72(%r15), %rcx
	movq	64(%r15), %r8
	movq	56(%r15), %r9
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	pushq	32(%r15)
	pushq	40(%r15)
	pushq	48(%r15)
	callq	_dev_info
	addq	$32, %rsp
	movl	160(%r15), %edi
	movl	(%r15), %edx
	movl	8(%r15), %ecx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_16:
	movl	%edi, %ecx
	testl	%ecx, %ecx
	jns	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown"

	.comm	_hw_issues_all,4,2              ## @hw_issues_all
	.comm	_GPU_L2_FEATURES,4,2            ## @GPU_L2_FEATURES
	.comm	_GPU_CORE_FEATURES,4,2          ## @GPU_CORE_FEATURES
	.comm	_GPU_TILER_FEATURES,4,2         ## @GPU_TILER_FEATURES
	.comm	_GPU_MEM_FEATURES,4,2           ## @GPU_MEM_FEATURES
	.comm	_GPU_MMU_FEATURES,4,2           ## @GPU_MMU_FEATURES
	.comm	_GPU_THREAD_FEATURES,4,2        ## @GPU_THREAD_FEATURES
	.comm	_GPU_THREAD_MAX_THREADS,4,2     ## @GPU_THREAD_MAX_THREADS
	.comm	_GPU_THREAD_MAX_WORKGROUP_SIZE,4,2 ## @GPU_THREAD_MAX_WORKGROUP_SIZE
	.comm	_GPU_THREAD_MAX_BARRIER_SIZE,4,2 ## @GPU_THREAD_MAX_BARRIER_SIZE
	.comm	_GPU_COHERENCY_FEATURES,4,2     ## @GPU_COHERENCY_FEATURES
	.comm	_GPU_AS_PRESENT,4,2             ## @GPU_AS_PRESENT
	.comm	_GPU_JS_PRESENT,4,2             ## @GPU_JS_PRESENT
	.comm	_GPU_SHADER_PRESENT_LO,4,2      ## @GPU_SHADER_PRESENT_LO
	.comm	_GPU_SHADER_PRESENT_HI,4,2      ## @GPU_SHADER_PRESENT_HI
	.comm	_GPU_TILER_PRESENT_LO,4,2       ## @GPU_TILER_PRESENT_LO
	.comm	_GPU_TILER_PRESENT_HI,4,2       ## @GPU_TILER_PRESENT_HI
	.comm	_GPU_L2_PRESENT_LO,4,2          ## @GPU_L2_PRESENT_LO
	.comm	_GPU_L2_PRESENT_HI,4,2          ## @GPU_L2_PRESENT_HI
	.comm	_GPU_STACK_PRESENT_LO,4,2       ## @GPU_STACK_PRESENT_LO
	.comm	_GPU_STACK_PRESENT_HI,4,2       ## @GPU_STACK_PRESENT_HI
	.comm	_GPU_THREAD_TLS_ALLOC,4,2       ## @GPU_THREAD_TLS_ALLOC
	.comm	_GPU_ID,4,2                     ## @GPU_ID
	.comm	_gpu_models,8,3                 ## @gpu_models
	.comm	_MAX_HW_REVS,4,2                ## @MAX_HW_REVS
L_.str.1:                               ## @.str.1
	.asciz	"mali-%s id 0x%x major 0x%x minor 0x%x status 0x%x"

L_.str.2:                               ## @.str.2
	.asciz	"features: %64pb, issues: %64pb"

L_.str.3:                               ## @.str.3
	.asciz	"Features: L2:0x%08x Shader:0x%08x Tiler:0x%08x Mem:0x%0x MMU:0x%08x AS:0x%x JS:0x%x"

L_.str.4:                               ## @.str.4
	.asciz	"shader_present=0x%0llx l2_present=0x%0llx"

	.no_dead_strip	_panfrost_gpu_init_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panfrost_gpu_init_features
_panfrost_gpu_init_features:            ; @panfrost_gpu_init_features
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _hw_issues_all@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_issues_all@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _GPU_L2_FEATURES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPU_L2_FEATURES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_gpu_read
	str	x0, [x19, #80]
Lloh6:
	adrp	x8, _GPU_CORE_FEATURES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPU_CORE_FEATURES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #72]
Lloh9:
	adrp	x8, _GPU_TILER_FEATURES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GPU_TILER_FEATURES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #64]
Lloh12:
	adrp	x8, _GPU_MEM_FEATURES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPU_MEM_FEATURES@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #56]
Lloh15:
	adrp	x8, _GPU_MMU_FEATURES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GPU_MMU_FEATURES@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #48]
Lloh18:
	adrp	x8, _GPU_THREAD_FEATURES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GPU_THREAD_FEATURES@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #152]
Lloh21:
	adrp	x8, _GPU_THREAD_MAX_THREADS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GPU_THREAD_MAX_THREADS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #144]
Lloh24:
	adrp	x8, _GPU_THREAD_MAX_WORKGROUP_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GPU_THREAD_MAX_WORKGROUP_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #136]
Lloh27:
	adrp	x8, _GPU_THREAD_MAX_BARRIER_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GPU_THREAD_MAX_BARRIER_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #128]
Lloh30:
	adrp	x8, _GPU_COHERENCY_FEATURES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GPU_COHERENCY_FEATURES@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #120]
	mov	w0, #0
	bl	_GPU_TEXTURE_FEATURES
	mov	x1, x0
	mov	x0, x19
	bl	_gpu_read
	ldr	x8, [x19, #112]
	str	x0, [x8]
	mov	w0, #1
	bl	_GPU_TEXTURE_FEATURES
	mov	x1, x0
	mov	x0, x19
	bl	_gpu_read
	ldr	x8, [x19, #112]
	str	x0, [x8, #8]
	mov	w0, #2
	bl	_GPU_TEXTURE_FEATURES
	mov	x1, x0
	mov	x0, x19
	bl	_gpu_read
	ldr	x8, [x19, #112]
	str	x0, [x8, #16]
	mov	w0, #3
	bl	_GPU_TEXTURE_FEATURES
	mov	x1, x0
	mov	x0, x19
	bl	_gpu_read
	ldr	x8, [x19, #112]
	str	x0, [x8, #24]
Lloh33:
	adrp	x8, _GPU_AS_PRESENT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GPU_AS_PRESENT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #40]
Lloh36:
	adrp	x8, _GPU_JS_PRESENT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GPU_JS_PRESENT@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #32]
	bl	_hweight32
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	w22, w0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_GPU_JS_FEATURES
	mov	x1, x0
	mov	x0, x19
	bl	_gpu_read
	ldr	x8, [x19, #104]
	str	x0, [x8, x21, lsl #3]
	add	x21, x21, #1
	cmp	x22, x21
	b.ne	LBB0_2
LBB0_3:
Lloh39:
	adrp	x8, _GPU_SHADER_PRESENT_LO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _GPU_SHADER_PRESENT_LO@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	w0, [x19]
Lloh42:
	adrp	x8, _GPU_SHADER_PRESENT_HI@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GPU_SHADER_PRESENT_HI@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
Lloh45:
	adrp	x8, _GPU_TILER_PRESENT_LO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _GPU_TILER_PRESENT_LO@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	w0, [x19, #4]
Lloh48:
	adrp	x8, _GPU_TILER_PRESENT_HI@GOTPAGE
Lloh49:
	ldr	x8, [x8, _GPU_TILER_PRESENT_HI@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
Lloh51:
	adrp	x8, _GPU_L2_PRESENT_LO@GOTPAGE
Lloh52:
	ldr	x8, [x8, _GPU_L2_PRESENT_LO@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	w0, [x19, #8]
Lloh54:
	adrp	x8, _GPU_L2_PRESENT_HI@GOTPAGE
Lloh55:
	ldr	x8, [x8, _GPU_L2_PRESENT_HI@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	bl	_hweight64
	str	w0, [x19, #96]
Lloh57:
	adrp	x8, _GPU_STACK_PRESENT_LO@GOTPAGE
Lloh58:
	ldr	x8, [x8, _GPU_STACK_PRESENT_LO@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	w0, [x19, #12]
Lloh60:
	adrp	x8, _GPU_STACK_PRESENT_HI@GOTPAGE
Lloh61:
	ldr	x8, [x8, _GPU_STACK_PRESENT_HI@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
Lloh63:
	adrp	x8, _GPU_THREAD_TLS_ALLOC@GOTPAGE
Lloh64:
	ldr	x8, [x8, _GPU_THREAD_TLS_ALLOC@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	str	x0, [x19, #88]
Lloh66:
	adrp	x8, _GPU_ID@GOTPAGE
Lloh67:
	ldr	x8, [x8, _GPU_ID@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gpu_read
	mov	x21, x0
	and	w24, w21, #0xffff
	asr	w8, w21, #16
	mov	w9, #26966
	mov	w10, #1536
	cmp	w8, w9
	csel	w22, w10, w8, eq
	stp	w24, w22, [x19, #16]
Lloh69:
	adrp	x8, _gpu_models@GOTPAGE
Lloh70:
	ldr	x8, [x8, _gpu_models@GOTPAGEOFF]
Lloh71:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.4:
	add	x25, x8, #16
Lloh72:
	adrp	x23, l_.str@PAGE
Lloh73:
	add	x23, x23, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25, #8]
	mov	x0, x19
	bl	_panfrost_model_eq
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, #16]
	add	x25, x25, #32
	cbnz	x8, LBB0_5
; %bb.7:
	mov	w1, #0
	b	LBB0_15
LBB0_8:
	mov	w1, #0
Lloh74:
	adrp	x23, l_.str@PAGE
Lloh75:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_15
LBB0_9:
	ldur	x23, [x25, #-16]
	ldp	w1, w8, [x25, #-8]
	orr	w20, w8, w20
Lloh76:
	adrp	x8, _MAX_HW_REVS@GOTPAGE
Lloh77:
	ldr	x8, [x8, _MAX_HW_REVS@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x10, #0
	ldr	x11, [x25]
	and	w12, w21, #0xfff0
	mov	w9, #-1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11]
	cmp	w13, w24
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w13, w12
	csel	w9, w10, w9, eq
	add	x10, x10, #1
	add	x11, x11, #8
	cmp	x8, x10
	b.ne	LBB0_11
; %bb.13:
	tbnz	w9, #31, LBB0_15
LBB0_14:
	ldr	x8, [x25]
	add	x8, x8, w9, uxtw #3
	ldr	w8, [x8, #4]
	orr	w20, w8, w20
LBB0_15:
	and	w24, w21, #0xf
	ubfx	w25, w21, #4, #8
	ubfx	w21, w21, #12, #4
	ldr	w0, [x19, #24]
	bl	_bitmap_from_u64
	ldr	w0, [x19, #28]
	mov	x1, x20
	bl	_bitmap_from_u64
	ldr	w0, [x19, #160]
	stp	x25, x24, [sp, #24]
	stp	x22, x21, [sp, #8]
	str	x23, [sp]
Lloh79:
	adrp	x1, l_.str.1@PAGE
Lloh80:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	ldr	w0, [x19, #160]
	ldp	w8, w9, [x19, #24]
	stp	x8, x9, [sp]
Lloh81:
	adrp	x1, l_.str.2@PAGE
Lloh82:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	ldr	w0, [x19, #160]
	ldp	x9, x8, [x19, #72]
	ldp	x11, x10, [x19, #56]
	ldp	x13, x12, [x19, #40]
	ldr	x14, [x19, #32]
	stp	x13, x14, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
Lloh83:
	adrp	x1, l_.str.3@PAGE
Lloh84:
	add	x1, x1, l_.str.3@PAGEOFF
	str	x8, [sp]
	bl	_dev_info
	ldr	w0, [x19, #160]
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	stp	x8, x9, [sp]
Lloh85:
	adrp	x1, l_.str.4@PAGE
Lloh86:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_16:
	mov	x9, x10
	tbz	w9, #31, LBB0_14
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown"

	.comm	_hw_issues_all,4,2              ; @hw_issues_all
	.comm	_GPU_L2_FEATURES,4,2            ; @GPU_L2_FEATURES
	.comm	_GPU_CORE_FEATURES,4,2          ; @GPU_CORE_FEATURES
	.comm	_GPU_TILER_FEATURES,4,2         ; @GPU_TILER_FEATURES
	.comm	_GPU_MEM_FEATURES,4,2           ; @GPU_MEM_FEATURES
	.comm	_GPU_MMU_FEATURES,4,2           ; @GPU_MMU_FEATURES
	.comm	_GPU_THREAD_FEATURES,4,2        ; @GPU_THREAD_FEATURES
	.comm	_GPU_THREAD_MAX_THREADS,4,2     ; @GPU_THREAD_MAX_THREADS
	.comm	_GPU_THREAD_MAX_WORKGROUP_SIZE,4,2 ; @GPU_THREAD_MAX_WORKGROUP_SIZE
	.comm	_GPU_THREAD_MAX_BARRIER_SIZE,4,2 ; @GPU_THREAD_MAX_BARRIER_SIZE
	.comm	_GPU_COHERENCY_FEATURES,4,2     ; @GPU_COHERENCY_FEATURES
	.comm	_GPU_AS_PRESENT,4,2             ; @GPU_AS_PRESENT
	.comm	_GPU_JS_PRESENT,4,2             ; @GPU_JS_PRESENT
	.comm	_GPU_SHADER_PRESENT_LO,4,2      ; @GPU_SHADER_PRESENT_LO
	.comm	_GPU_SHADER_PRESENT_HI,4,2      ; @GPU_SHADER_PRESENT_HI
	.comm	_GPU_TILER_PRESENT_LO,4,2       ; @GPU_TILER_PRESENT_LO
	.comm	_GPU_TILER_PRESENT_HI,4,2       ; @GPU_TILER_PRESENT_HI
	.comm	_GPU_L2_PRESENT_LO,4,2          ; @GPU_L2_PRESENT_LO
	.comm	_GPU_L2_PRESENT_HI,4,2          ; @GPU_L2_PRESENT_HI
	.comm	_GPU_STACK_PRESENT_LO,4,2       ; @GPU_STACK_PRESENT_LO
	.comm	_GPU_STACK_PRESENT_HI,4,2       ; @GPU_STACK_PRESENT_HI
	.comm	_GPU_THREAD_TLS_ALLOC,4,2       ; @GPU_THREAD_TLS_ALLOC
	.comm	_GPU_ID,4,2                     ; @GPU_ID
	.comm	_gpu_models,8,3                 ; @gpu_models
	.comm	_MAX_HW_REVS,4,2                ; @MAX_HW_REVS
l_.str.1:                               ; @.str.1
	.asciz	"mali-%s id 0x%x major 0x%x minor 0x%x status 0x%x"

l_.str.2:                               ; @.str.2
	.asciz	"features: %64pb, issues: %64pb"

l_.str.3:                               ; @.str.3
	.asciz	"Features: L2:0x%08x Shader:0x%08x Tiler:0x%08x Mem:0x%0x MMU:0x%08x AS:0x%x JS:0x%x"

l_.str.4:                               ; @.str.4
	.asciz	"shader_present=0x%0llx l2_present=0x%0llx"

	.no_dead_strip	_panfrost_gpu_init_features
.subsections_via_symbols
