	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function amdgpu_hw_ip_info
LCPI0_0:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_amdgpu_hw_ip_info:                     ## @amdgpu_hw_ip_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_AMDGPU_HW_IP_INSTANCE_MAX_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.1:
	movslq	8(%rsi), %r9
	leal	-128(%r9), %eax
	cmpl	$8, %eax
	ja	LBB0_6
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_AMD_IP_BLOCK_TYPE_VCN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	16(%r15), %r8d
	movl	$16, %r11d
	testq	%r8, %r8
	je	LBB0_55
## %bb.4:
	movl	36(%r15), %ecx
	cmpl	$1, %r8d
	jne	LBB0_63
## %bb.5:
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	LBB0_94
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_137
LBB0_7:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	_AMD_IP_BLOCK_TYPE_VCN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	16(%r15), %r9d
	movl	$1, %r13d
	movl	$64, %r11d
	testq	%r9, %r9
	je	LBB0_60
## %bb.8:
	movl	36(%r15), %r11d
	xorl	%edi, %edi
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm8, %xmm8
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [2,2,2,2]
	xorl	%esi, %esi
	movabsq	$4611686018427387902, %rdx      ## imm = 0x3FFFFFFFFFFFFFFE
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdi
	cmpq	%r9, %rdi
	je	LBB0_58
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	btl	%edi, %r11d
	jb	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	20(%r15), %ebx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%r15), %rax
	leaq	(%rdi,%rdi,2), %rcx
	movq	8(%rax,%rcx,8), %rcx
	cmpl	$8, %ebx
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %eax
	andl	$-8, %eax
	movd	%esi, %xmm3
	leaq	-8(%rax), %rsi
	movq	%rsi, %r12
	shrq	$3, %r12
	incq	%r12
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rsi
	andq	%rdx, %rsi
	pxor	%xmm5, %xmm5
	xorl	%r8d, %r8d
	movdqa	%xmm3, %xmm6
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rcx,%r8,4), %xmm7
	movdqu	16(%rcx,%r8,4), %xmm1
	movdqu	32(%rcx,%r8,4), %xmm3
	movdqu	48(%rcx,%r8,4), %xmm4
	pcmpeqd	%xmm0, %xmm7
	paddd	%xmm6, %xmm7
	pcmpeqd	%xmm0, %xmm1
	paddd	%xmm5, %xmm1
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	paddd	%xmm2, %xmm3
	paddd	%xmm7, %xmm3
	paddd	%xmm2, %xmm4
	paddd	%xmm1, %xmm4
	addq	$16, %r8
	movdqa	%xmm3, %xmm6
	movdqa	%xmm4, %xmm5
	addq	$-2, %rsi
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	testb	$1, %r12b
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movdqu	(%rcx,%r8,4), %xmm1
	movdqu	16(%rcx,%r8,4), %xmm5
	pcmpeqd	%xmm0, %xmm1
	paddd	%xmm1, %xmm3
	pcmpeqd	%xmm0, %xmm5
	paddd	%xmm5, %xmm4
	psubd	%xmm8, %xmm3
	psubd	%xmm8, %xmm4
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	paddd	%xmm4, %xmm3
	pshufd	$238, %xmm3, %xmm1              ## xmm1 = xmm3[2,3,2,3]
	paddd	%xmm3, %xmm1
	pshufd	$85, %xmm1, %xmm3               ## xmm3 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm3
	movd	%xmm3, %esi
	cmpq	%rbx, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$1, (%rcx,%rax,4)
	sbbl	$-1, %esi
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_20
	jmp	LBB0_9
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	pxor	%xmm4, %xmm4
	xorl	%r8d, %r8d
	testb	$1, %r12b
	jne	LBB0_18
	jmp	LBB0_19
LBB0_22:
	movq	_AMD_IP_BLOCK_TYPE_VCN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	16(%r15), %r8d
	movl	$16, %r11d
	testq	%r8, %r8
	je	LBB0_55
## %bb.23:
	movl	36(%r15), %ecx
	cmpl	$1, %r8d
	jne	LBB0_69
## %bb.24:
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	LBB0_98
LBB0_25:
	movq	_AMD_IP_BLOCK_TYPE_VCE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	56(%r15), %edx
	movl	$1, %r13d
	movl	$4, %r11d
	testq	%rdx, %rdx
	je	LBB0_62
## %bb.26:
	movq	64(%r15), %rax
	cmpl	$8, %edx
	jae	LBB0_75
## %bb.27:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_112
LBB0_28:
	movq	_AMD_IP_BLOCK_TYPE_UVD@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	32(%r15), %r13d
	movl	$64, %r11d
	testq	%r13, %r13
	je	LBB0_56
## %bb.29:
	movabsq	$4611686018427387902, %r12      ## imm = 0x3FFFFFFFFFFFFFFE
	movl	36(%r15), %r11d
	xorl	%edi, %edi
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm8, %xmm8
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [2,2,2,2]
	xorl	%esi, %esi
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_31 Depth=1
	incq	%rdi
	cmpq	%r13, %rdi
	je	LBB0_59
LBB0_31:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
                                        ##     Child Loop BB0_41 Depth 2
	btl	%edi, %r11d
	jb	LBB0_30
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movl	40(%r15), %ebx
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	48(%r15), %rax
	movq	%rdi, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rcx
	cmpl	$8, %ebx
	jae	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_41
LBB0_35:                                ##   in Loop: Header=BB0_31 Depth=1
	movl	%ebx, %eax
	andl	$-8, %eax
	movd	%esi, %xmm3
	leaq	-8(%rax), %rdx
	movq	%rdx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	%r8, %rsi
	andq	%r12, %rsi
	pxor	%xmm5, %xmm5
	xorl	%edx, %edx
	movdqa	%xmm3, %xmm6
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_31 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rcx,%rdx,4), %xmm7
	movdqu	16(%rcx,%rdx,4), %xmm1
	movdqu	32(%rcx,%rdx,4), %xmm3
	movdqu	48(%rcx,%rdx,4), %xmm4
	pcmpeqd	%xmm0, %xmm7
	paddd	%xmm6, %xmm7
	pcmpeqd	%xmm0, %xmm1
	paddd	%xmm5, %xmm1
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	paddd	%xmm2, %xmm3
	paddd	%xmm7, %xmm3
	paddd	%xmm2, %xmm4
	paddd	%xmm1, %xmm4
	addq	$16, %rdx
	movdqa	%xmm3, %xmm6
	movdqa	%xmm4, %xmm5
	addq	$-2, %rsi
	jne	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_31 Depth=1
	testb	$1, %r8b
	je	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_31 Depth=1
	movdqu	(%rcx,%rdx,4), %xmm1
	movdqu	16(%rcx,%rdx,4), %xmm5
	pcmpeqd	%xmm0, %xmm1
	paddd	%xmm1, %xmm3
	pcmpeqd	%xmm0, %xmm5
	paddd	%xmm5, %xmm4
	psubd	%xmm8, %xmm3
	psubd	%xmm8, %xmm4
LBB0_40:                                ##   in Loop: Header=BB0_31 Depth=1
	paddd	%xmm4, %xmm3
	pshufd	$238, %xmm3, %xmm1              ## xmm1 = xmm3[2,3,2,3]
	paddd	%xmm3, %xmm1
	pshufd	$85, %xmm1, %xmm3               ## xmm3 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm3
	movd	%xmm3, %esi
	cmpq	%rbx, %rax
	je	LBB0_30
	.p2align	4, 0x90
LBB0_41:                                ##   Parent Loop BB0_31 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$1, (%rcx,%rax,4)
	sbbl	$-1, %esi
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_41
	jmp	LBB0_30
LBB0_42:                                ##   in Loop: Header=BB0_31 Depth=1
	pxor	%xmm4, %xmm4
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_39
	jmp	LBB0_40
LBB0_43:
	movq	_AMD_IP_BLOCK_TYPE_UVD@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	32(%r15), %r8d
	movl	$64, %r11d
	testq	%r8, %r8
	je	LBB0_56
## %bb.44:
	movl	36(%r15), %ecx
	cmpl	$1, %r8d
	jne	LBB0_78
## %bb.45:
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	LBB0_104
LBB0_46:
	movq	_AMD_IP_BLOCK_TYPE_GFX@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	88(%r15), %eax
	movl	$32, %r11d
	testq	%rax, %rax
	je	LBB0_57
## %bb.47:
	movq	104(%r15), %rdx
	cmpl	$8, %eax
	jae	LBB0_84
## %bb.48:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_117
LBB0_49:
	movq	_AMD_IP_BLOCK_TYPE_SDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	72(%r15), %edx
	movl	$4, %r13d
	movl	$256, %r11d                     ## imm = 0x100
	testq	%rdx, %rdx
	je	LBB0_62
## %bb.50:
	movq	80(%r15), %rax
	cmpl	$8, %edx
	jae	LBB0_87
## %bb.51:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_122
LBB0_52:
	movq	_AMD_IP_BLOCK_TYPE_GFX@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	92(%r15), %eax
	movl	$32, %r11d
	testq	%rax, %rax
	je	LBB0_57
## %bb.53:
	movq	96(%r15), %rdx
	cmpl	$8, %eax
	jae	LBB0_90
## %bb.54:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_127
LBB0_55:
	xorl	%esi, %esi
	movl	$16, %r13d
	jmp	LBB0_129
LBB0_56:
	xorl	%esi, %esi
	movl	$64, %r13d
	jmp	LBB0_129
LBB0_57:
	xorl	%esi, %esi
	jmp	LBB0_128
LBB0_62:
	xorl	%esi, %esi
	jmp	LBB0_129
LBB0_58:
	movl	$64, %r11d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_129
LBB0_59:
	movl	$64, %r13d
	movl	$64, %r11d
	jmp	LBB0_129
LBB0_60:
	xorl	%esi, %esi
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_129
LBB0_63:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_65
	.p2align	4, 0x90
LBB0_64:                                ##   in Loop: Header=BB0_65 Depth=1
	addq	$48, %rbx
	incq	%rdx
	cmpq	%r11, %rdx
	je	LBB0_93
LBB0_65:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	btl	%eax, %ecx
	jb	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_65 Depth=1
	movq	24(%r15), %rdx
	cmpl	$1, (%rdx,%rbx)
	sbbl	$-1, %esi
LBB0_67:                                ##   in Loop: Header=BB0_65 Depth=1
	leaq	1(%rax), %rdx
	btl	%edx, %ecx
	jb	LBB0_64
## %bb.68:                              ##   in Loop: Header=BB0_65 Depth=1
	movq	24(%r15), %rdi
	cmpl	$1, 24(%rdi,%rbx)
	sbbl	$-1, %esi
	jmp	LBB0_64
LBB0_69:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_71
	.p2align	4, 0x90
LBB0_70:                                ##   in Loop: Header=BB0_71 Depth=1
	addq	$48, %rbx
	incq	%rdx
	cmpq	%r11, %rdx
	je	LBB0_97
LBB0_71:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	btl	%eax, %ecx
	jb	LBB0_73
## %bb.72:                              ##   in Loop: Header=BB0_71 Depth=1
	movq	24(%r15), %rdx
	cmpl	$1, 16(%rdx,%rbx)
	sbbl	$-1, %esi
LBB0_73:                                ##   in Loop: Header=BB0_71 Depth=1
	leaq	1(%rax), %rdx
	btl	%edx, %ecx
	jb	LBB0_70
## %bb.74:                              ##   in Loop: Header=BB0_71 Depth=1
	movq	24(%r15), %rdi
	cmpl	$1, 40(%rdi,%rbx)
	sbbl	$-1, %esi
	jmp	LBB0_70
LBB0_75:
	movl	%edx, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_108
## %bb.76:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [2,2,2,2]
	pxor	%xmm5, %xmm5
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_77:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,4), %xmm6
	movdqu	16(%rax,%rdi,4), %xmm7
	movdqu	32(%rax,%rdi,4), %xmm0
	movdqu	48(%rax,%rdi,4), %xmm1
	pcmpeqd	%xmm2, %xmm6
	paddd	%xmm5, %xmm6
	pcmpeqd	%xmm2, %xmm7
	paddd	%xmm4, %xmm7
	pcmpeqd	%xmm2, %xmm0
	pcmpeqd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm6, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm7, %xmm1
	addq	$16, %rdi
	movdqa	%xmm0, %xmm5
	movdqa	%xmm1, %xmm4
	addq	$-2, %rsi
	jne	LBB0_77
	jmp	LBB0_109
LBB0_78:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_80
	.p2align	4, 0x90
LBB0_79:                                ##   in Loop: Header=BB0_80 Depth=1
	addq	$32, %rbx
	incq	%rdx
	cmpq	%r11, %rdx
	je	LBB0_103
LBB0_80:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	btl	%eax, %ecx
	jb	LBB0_82
## %bb.81:                              ##   in Loop: Header=BB0_80 Depth=1
	movq	48(%r15), %rdx
	cmpl	$1, 8(%rdx,%rbx)
	sbbl	$-1, %esi
LBB0_82:                                ##   in Loop: Header=BB0_80 Depth=1
	leaq	1(%rax), %rdx
	btl	%edx, %ecx
	jb	LBB0_79
## %bb.83:                              ##   in Loop: Header=BB0_80 Depth=1
	movq	48(%r15), %rdi
	cmpl	$1, 24(%rdi,%rbx)
	sbbl	$-1, %esi
	jmp	LBB0_79
LBB0_84:
	movl	%eax, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_113
## %bb.85:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [2,2,2,2]
	pxor	%xmm5, %xmm5
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_86:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,4), %xmm6
	movdqu	16(%rdx,%rdi,4), %xmm7
	movdqu	32(%rdx,%rdi,4), %xmm0
	movdqu	48(%rdx,%rdi,4), %xmm1
	pcmpeqd	%xmm2, %xmm6
	paddd	%xmm5, %xmm6
	pcmpeqd	%xmm2, %xmm7
	paddd	%xmm4, %xmm7
	pcmpeqd	%xmm2, %xmm0
	pcmpeqd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm6, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm7, %xmm1
	addq	$16, %rdi
	movdqa	%xmm0, %xmm5
	movdqa	%xmm1, %xmm4
	addq	$-2, %rsi
	jne	LBB0_86
	jmp	LBB0_114
LBB0_87:
	movl	%edx, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_118
## %bb.88:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [2,2,2,2]
	pxor	%xmm5, %xmm5
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_89:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,4), %xmm6
	movdqu	16(%rax,%rdi,4), %xmm7
	movdqu	32(%rax,%rdi,4), %xmm0
	movdqu	48(%rax,%rdi,4), %xmm1
	pcmpeqd	%xmm2, %xmm6
	paddd	%xmm5, %xmm6
	pcmpeqd	%xmm2, %xmm7
	paddd	%xmm4, %xmm7
	pcmpeqd	%xmm2, %xmm0
	pcmpeqd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm6, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm7, %xmm1
	addq	$16, %rdi
	movdqa	%xmm0, %xmm5
	movdqa	%xmm1, %xmm4
	addq	$-2, %rsi
	jne	LBB0_89
	jmp	LBB0_119
LBB0_90:
	movl	%eax, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_123
## %bb.91:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [2,2,2,2]
	pxor	%xmm5, %xmm5
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_92:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,4), %xmm6
	movdqu	16(%rdx,%rdi,4), %xmm7
	movdqu	32(%rdx,%rdi,4), %xmm0
	movdqu	48(%rdx,%rdi,4), %xmm1
	pcmpeqd	%xmm2, %xmm6
	paddd	%xmm5, %xmm6
	pcmpeqd	%xmm2, %xmm7
	paddd	%xmm4, %xmm7
	pcmpeqd	%xmm2, %xmm0
	pcmpeqd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm6, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm7, %xmm1
	addq	$16, %rdi
	movdqa	%xmm0, %xmm5
	movdqa	%xmm1, %xmm4
	addq	$-2, %rsi
	jne	LBB0_92
	jmp	LBB0_124
LBB0_93:
	addq	$2, %rax
	movl	$16, %r11d
LBB0_94:
	testb	$1, %r8b
	je	LBB0_102
## %bb.95:
	btl	%eax, %ecx
	jb	LBB0_102
## %bb.96:
	movq	24(%r15), %rcx
	leaq	(%rax,%rax,2), %rax
	cmpl	$1, (%rcx,%rax,8)
	jmp	LBB0_101
LBB0_97:
	addq	$2, %rax
	movl	$16, %r11d
LBB0_98:
	testb	$1, %r8b
	je	LBB0_102
## %bb.99:
	btl	%eax, %ecx
	jb	LBB0_102
## %bb.100:
	movq	24(%r15), %rcx
	leaq	(%rax,%rax,2), %rax
	cmpl	$1, 16(%rcx,%rax,8)
LBB0_101:
	sbbl	$-1, %esi
LBB0_102:
	movl	$16, %r13d
	jmp	LBB0_129
LBB0_103:
	addq	$2, %rax
	movl	$64, %r11d
LBB0_104:
	testb	$1, %r8b
	je	LBB0_107
## %bb.105:
	btl	%eax, %ecx
	jb	LBB0_107
## %bb.106:
	movq	48(%r15), %rcx
	shlq	$4, %rax
	cmpl	$1, 8(%rcx,%rax)
	sbbl	$-1, %esi
LBB0_107:
	movl	$64, %r13d
	jmp	LBB0_129
LBB0_108:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
LBB0_109:
	testb	$1, %bl
	je	LBB0_111
## %bb.110:
	movdqu	(%rax,%rdi,4), %xmm2
	movdqu	16(%rax,%rdi,4), %xmm3
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm4, %xmm2
	paddd	%xmm2, %xmm0
	pcmpeqd	%xmm4, %xmm3
	paddd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm2
	psubd	%xmm2, %xmm0
	psubd	%xmm2, %xmm1
LBB0_111:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%rdx, %rcx
	je	LBB0_129
	.p2align	4, 0x90
LBB0_112:                               ## =>This Inner Loop Header: Depth=1
	cmpl	$1, (%rax,%rcx,4)
	sbbl	$-1, %esi
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_112
	jmp	LBB0_129
LBB0_113:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
LBB0_114:
	testb	$1, %bl
	je	LBB0_116
## %bb.115:
	movdqu	(%rdx,%rdi,4), %xmm2
	movdqu	16(%rdx,%rdi,4), %xmm3
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm4, %xmm2
	paddd	%xmm2, %xmm0
	pcmpeqd	%xmm4, %xmm3
	paddd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm2
	psubd	%xmm2, %xmm0
	psubd	%xmm2, %xmm1
LBB0_116:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%rax, %rcx
	je	LBB0_128
	.p2align	4, 0x90
LBB0_117:                               ## =>This Inner Loop Header: Depth=1
	cmpl	$1, (%rdx,%rcx,4)
	sbbl	$-1, %esi
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_117
	jmp	LBB0_128
LBB0_118:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
LBB0_119:
	testb	$1, %bl
	je	LBB0_121
## %bb.120:
	movdqu	(%rax,%rdi,4), %xmm2
	movdqu	16(%rax,%rdi,4), %xmm3
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm4, %xmm2
	paddd	%xmm2, %xmm0
	pcmpeqd	%xmm4, %xmm3
	paddd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm2
	psubd	%xmm2, %xmm0
	psubd	%xmm2, %xmm1
LBB0_121:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%rdx, %rcx
	je	LBB0_129
	.p2align	4, 0x90
LBB0_122:                               ## =>This Inner Loop Header: Depth=1
	cmpl	$1, (%rax,%rcx,4)
	sbbl	$-1, %esi
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_122
	jmp	LBB0_129
LBB0_123:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
LBB0_124:
	testb	$1, %bl
	je	LBB0_126
## %bb.125:
	movdqu	(%rdx,%rdi,4), %xmm2
	movdqu	16(%rdx,%rdi,4), %xmm3
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm4, %xmm2
	paddd	%xmm2, %xmm0
	pcmpeqd	%xmm4, %xmm3
	paddd	%xmm3, %xmm1
	pcmpeqd	%xmm2, %xmm2
	psubd	%xmm2, %xmm0
	psubd	%xmm2, %xmm1
LBB0_126:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%rax, %rcx
	je	LBB0_128
	.p2align	4, 0x90
LBB0_127:                               ## =>This Inner Loop Header: Depth=1
	cmpl	$1, (%rdx,%rcx,4)
	sbbl	$-1, %esi
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_127
LBB0_128:
	movl	$32, %r13d
LBB0_129:
	movl	(%r15), %eax
	xorl	%r12d, %r12d
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_134
## %bb.130:
	movq	8(%r15), %rcx
	addq	$8, %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_132
	.p2align	4, 0x90
LBB0_131:                               ##   in Loop: Header=BB0_132 Depth=1
	incq	%rbx
	addq	$16, %rcx
	cmpq	%rbx, %rax
	je	LBB0_136
LBB0_132:                               ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx), %rdx
	cmpl	%r10d, (%rdx)
	jne	LBB0_131
## %bb.133:                             ##   in Loop: Header=BB0_132 Depth=1
	cmpq	$0, (%rcx)
	je	LBB0_131
LBB0_134:
	cmpl	%eax, %ebx
	je	LBB0_137
## %bb.135:
	movq	_amdgpu_ctx_num_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r9,4), %edi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r11, %r13
	callq	_min
	movq	8(%r15), %rcx
	movl	%ebx, %edx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rcx
	movl	8(%rcx), %edx
	movl	%edx, 36(%r14)
	movl	4(%rcx), %ecx
	movl	%ecx, 32(%r14)
	movq	$0, 24(%r14)
	movl	$-1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	notl	%edx
	movl	%edx, (%r14)
	movq	%r13, 16(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	jmp	LBB0_137
LBB0_136:
	xorl	%r12d, %r12d
LBB0_137:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_43, LBB0_43-LJTI0_0
.set L0_0_set_46, LBB0_46-LJTI0_0
.set L0_0_set_49, LBB0_49-LJTI0_0
.set L0_0_set_52, LBB0_52-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_22
	.long	L0_0_set_25
	.long	L0_0_set_28
	.long	L0_0_set_43
	.long	L0_0_set_46
	.long	L0_0_set_49
	.long	L0_0_set_52
	.end_data_region
                                        ## -- End function
	.comm	_AMDGPU_HW_IP_INSTANCE_MAX_COUNT,8,3 ## @AMDGPU_HW_IP_INSTANCE_MAX_COUNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AMD_IP_BLOCK_TYPE_GFX,4,2      ## @AMD_IP_BLOCK_TYPE_GFX
	.comm	_AMD_IP_BLOCK_TYPE_SDMA,4,2     ## @AMD_IP_BLOCK_TYPE_SDMA
	.comm	_AMD_IP_BLOCK_TYPE_UVD,4,2      ## @AMD_IP_BLOCK_TYPE_UVD
	.comm	_AMD_IP_BLOCK_TYPE_VCE,4,2      ## @AMD_IP_BLOCK_TYPE_VCE
	.comm	_AMD_IP_BLOCK_TYPE_VCN,4,2      ## @AMD_IP_BLOCK_TYPE_VCN
	.comm	_amdgpu_ctx_num_entities,8,3    ## @amdgpu_ctx_num_entities
	.no_dead_strip	_amdgpu_hw_ip_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_hw_ip_info
_amdgpu_hw_ip_info:                     ; @amdgpu_hw_ip_info
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _AMDGPU_HW_IP_INSTANCE_MAX_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMDGPU_HW_IP_INSTANCE_MAX_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.1:
	ldrsw	x8, [x1, #8]
	sub	w9, w8, #128
	cmp	w9, #8
	b.hi	LBB0_8
; %bb.2:
	mov	x19, x2
	mov	x20, x0
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh5:
	adrp	x9, _AMD_IP_BLOCK_TYPE_VCN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_VCN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w13, [x20, #16]
	cbz	w13, LBB0_55
; %bb.4:
	mov	w10, #0
	mov	x11, #0
	mov	w1, #0
	ldr	w12, [x20, #36]
	add	x13, x13, x13, lsl #1
	lsl	x13, x13, #3
	mov	w21, #16
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x11, x11, #24
	add	w10, w10, #1
	cmp	x13, x11
	b.eq	LBB0_56
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w14, w12, w10
	tbnz	w14, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x14, [x20, #24]
	ldr	w14, [x14, x11]
	cmp	w14, #0
	cinc	w1, w1, ne
	b	LBB0_5
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_93
LBB0_9:
Lloh11:
	adrp	x9, _AMD_IP_BLOCK_TYPE_VCN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_VCN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	w10, [x20, #16]
	cbz	w10, LBB0_61
; %bb.10:
	mov	x11, #0
	mov	w1, #0
	ldr	w12, [x20, #36]
	mov	w13, #24
	mov	w22, #1
	mov	w21, #64
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x11, x11, #1
	cmp	x11, x10
	b.eq	LBB0_85
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	lsr	w14, w12, w11
	tbnz	w14, #0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w14, [x20, #20]
	cbz	w14, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x15, [x20, #24]
	madd	x15, x11, x13, x15
	ldr	x15, [x15, #8]
	cmp	w14, #16
	b.hs	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x16, #0
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w1
	and	x16, x14, #0xfffffff0
	add	x17, x15, #32
	movi.2d	v1, #0000000000000000
	mov	x0, x16
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_17:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x17, #-32]
	ldp	q6, q7, [x17], #64
	cmtst.4s	v4, v4, v4
	cmtst.4s	v5, v5, v5
	cmtst.4s	v6, v6, v6
	cmtst.4s	v7, v7, v7
	sub.4s	v0, v0, v4
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	subs	x0, x0, #16
	b.ne	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w1, s0
	cmp	x16, x14
	b.eq	LBB0_11
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x15, x15, x16, lsl #2
	sub	x14, x14, x16
LBB0_20:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w16, [x15], #4
	cmp	w16, #0
	cinc	w1, w1, ne
	subs	x14, x14, #1
	b.ne	LBB0_20
	b	LBB0_11
LBB0_21:
Lloh14:
	adrp	x9, _AMD_IP_BLOCK_TYPE_VCN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_VCN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w10, [x20, #16]
	cbz	w10, LBB0_55
; %bb.22:
	mov	x11, #0
	mov	w1, #0
	ldr	w12, [x20, #36]
	mov	w21, #16
	mov	w13, #16
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x11, x11, #1
	add	x13, x13, #24
	cmp	x10, x11
	b.eq	LBB0_56
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	lsr	w14, w12, w11
	tbnz	w14, #0, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x14, [x20, #24]
	ldr	w14, [x14, x13]
	cmp	w14, #0
	cinc	w1, w1, ne
	b	LBB0_23
LBB0_26:
Lloh17:
	adrp	x9, _AMD_IP_BLOCK_TYPE_VCE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_VCE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [x20, #56]
	cbz	w10, LBB0_62
; %bb.27:
	ldr	x11, [x20, #64]
	cmp	w10, #16
	b.hs	LBB0_64
; %bb.28:
	mov	x12, #0
	mov	w1, #0
	b	LBB0_68
LBB0_29:
Lloh20:
	adrp	x9, _AMD_IP_BLOCK_TYPE_UVD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_UVD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w10, [x20, #32]
	cbz	w10, LBB0_57
; %bb.30:
	mov	x11, #0
	mov	w1, #0
	ldr	w12, [x20, #36]
	mov	w21, #64
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	add	x11, x11, #1
	cmp	x11, x10
	b.eq	LBB0_58
LBB0_32:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
                                        ;     Child Loop BB0_40 Depth 2
	lsr	w13, w12, w11
	tbnz	w13, #0, LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	w13, [x20, #40]
	cbz	w13, LBB0_31
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x14, [x20, #48]
	lsl	x15, x11, #4
	ldr	x14, [x14, x15]
	cmp	w13, #16
	b.hs	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x15, #0
	b	LBB0_39
LBB0_36:                                ;   in Loop: Header=BB0_32 Depth=1
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w1
	and	x15, x13, #0xfffffff0
	add	x16, x14, #32
	movi.2d	v1, #0000000000000000
	mov	x17, x15
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_37:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x16, #-32]
	ldp	q6, q7, [x16], #64
	cmtst.4s	v4, v4, v4
	cmtst.4s	v5, v5, v5
	cmtst.4s	v6, v6, v6
	cmtst.4s	v7, v7, v7
	sub.4s	v0, v0, v4
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	subs	x17, x17, #16
	b.ne	LBB0_37
; %bb.38:                               ;   in Loop: Header=BB0_32 Depth=1
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w1, s0
	cmp	x15, x13
	b.eq	LBB0_31
LBB0_39:                                ;   in Loop: Header=BB0_32 Depth=1
	add	x14, x14, x15, lsl #2
	sub	x13, x13, x15
LBB0_40:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x14], #4
	cmp	w15, #0
	cinc	w1, w1, ne
	subs	x13, x13, #1
	b.ne	LBB0_40
	b	LBB0_31
LBB0_41:
Lloh23:
	adrp	x9, _AMD_IP_BLOCK_TYPE_UVD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_UVD@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldr	w10, [x20, #32]
	cbz	w10, LBB0_57
; %bb.42:
	mov	x11, #0
	mov	w1, #0
	ldr	w12, [x20, #36]
	mov	w13, #8
	mov	w21, #64
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x11, x11, #1
	add	x13, x13, #16
	cmp	x10, x11
	b.eq	LBB0_58
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	lsr	w14, w12, w11
	tbnz	w14, #0, LBB0_43
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	x14, [x20, #48]
	ldr	w14, [x14, x13]
	cmp	w14, #0
	cinc	w1, w1, ne
	b	LBB0_43
LBB0_46:
Lloh26:
	adrp	x9, _AMD_IP_BLOCK_TYPE_GFX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_GFX@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldr	w10, [x20, #88]
	cbz	w10, LBB0_60
; %bb.47:
	ldr	x11, [x20, #104]
	cmp	w10, #16
	b.hs	LBB0_70
; %bb.48:
	mov	x12, #0
	mov	w1, #0
	b	LBB0_73
LBB0_49:
Lloh29:
	adrp	x9, _AMD_IP_BLOCK_TYPE_SDMA@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_SDMA@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	w10, [x20, #72]
	cbz	w10, LBB0_63
; %bb.50:
	ldr	x11, [x20, #80]
	cmp	w10, #16
	b.hs	LBB0_75
; %bb.51:
	mov	x12, #0
	mov	w1, #0
	b	LBB0_79
LBB0_52:
Lloh32:
	adrp	x9, _AMD_IP_BLOCK_TYPE_GFX@GOTPAGE
Lloh33:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_GFX@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	w10, [x20, #92]
	cbz	w10, LBB0_60
; %bb.53:
	ldr	x11, [x20, #96]
	cmp	w10, #16
	b.hs	LBB0_81
; %bb.54:
	mov	x12, #0
	mov	w1, #0
	b	LBB0_94
LBB0_55:
	mov	w1, #0
	mov	w21, #16
LBB0_56:
	mov	w22, #16
	ldr	w10, [x20]
	cbnz	w10, LBB0_86
	b	LBB0_59
LBB0_57:
	mov	w1, #0
	mov	w21, #64
LBB0_58:
	mov	w22, #64
	ldr	w10, [x20]
	cbnz	w10, LBB0_86
LBB0_59:
	mov	w23, #0
	cmp	w23, w10
	b.eq	LBB0_91
	b	LBB0_92
LBB0_60:
	mov	w1, #0
	b	LBB0_84
LBB0_61:
	mov	w1, #0
	mov	w22, #1
	mov	w21, #64
	ldr	w10, [x20]
	cbnz	w10, LBB0_86
	b	LBB0_59
LBB0_62:
	mov	w1, #0
	b	LBB0_67
LBB0_63:
	mov	w1, #0
	b	LBB0_78
LBB0_64:
	and	x12, x10, #0xfffffff0
	add	x13, x11, #32
	movi.2d	v0, #0000000000000000
	mov	x14, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_65:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	cmtst.4s	v4, v4, v4
	cmtst.4s	v5, v5, v5
	cmtst.4s	v6, v6, v6
	cmtst.4s	v7, v7, v7
	sub.4s	v0, v0, v4
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	subs	x14, x14, #16
	b.ne	LBB0_65
; %bb.66:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w1, s0
	cmp	x12, x10
	b.ne	LBB0_68
LBB0_67:
	mov	w22, #1
	mov	w21, #4
	ldr	w10, [x20]
	cbnz	w10, LBB0_86
	b	LBB0_59
LBB0_68:
	sub	x10, x10, x12
	mov	w22, #1
	mov	w21, #4
	add	x11, x11, x12, lsl #2
LBB0_69:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	cmp	w12, #0
	cinc	w1, w1, ne
	subs	x10, x10, #1
	b.ne	LBB0_69
	b	LBB0_85
LBB0_70:
	and	x12, x10, #0xfffffff0
	add	x13, x11, #32
	movi.2d	v0, #0000000000000000
	mov	x14, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_71:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	cmtst.4s	v4, v4, v4
	cmtst.4s	v5, v5, v5
	cmtst.4s	v6, v6, v6
	cmtst.4s	v7, v7, v7
	sub.4s	v0, v0, v4
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	subs	x14, x14, #16
	b.ne	LBB0_71
; %bb.72:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w1, s0
	cmp	x12, x10
	b.eq	LBB0_84
LBB0_73:
	add	x11, x11, x12, lsl #2
	sub	x10, x10, x12
	mov	w21, #32
LBB0_74:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	cmp	w12, #0
	cinc	w1, w1, ne
	subs	x10, x10, #1
	b.ne	LBB0_74
	b	LBB0_96
LBB0_75:
	and	x12, x10, #0xfffffff0
	add	x13, x11, #32
	movi.2d	v0, #0000000000000000
	mov	x14, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_76:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	cmtst.4s	v4, v4, v4
	cmtst.4s	v5, v5, v5
	cmtst.4s	v6, v6, v6
	cmtst.4s	v7, v7, v7
	sub.4s	v0, v0, v4
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	subs	x14, x14, #16
	b.ne	LBB0_76
; %bb.77:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w1, s0
	cmp	x12, x10
	b.ne	LBB0_79
LBB0_78:
	mov	w22, #4
	mov	w21, #256
	ldr	w10, [x20]
	cbnz	w10, LBB0_86
	b	LBB0_59
LBB0_79:
	sub	x10, x10, x12
	mov	w22, #4
	mov	w21, #256
	add	x11, x11, x12, lsl #2
LBB0_80:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	cmp	w12, #0
	cinc	w1, w1, ne
	subs	x10, x10, #1
	b.ne	LBB0_80
	b	LBB0_85
LBB0_81:
	and	x12, x10, #0xfffffff0
	add	x13, x11, #32
	movi.2d	v0, #0000000000000000
	mov	x14, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_82:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	cmtst.4s	v4, v4, v4
	cmtst.4s	v5, v5, v5
	cmtst.4s	v6, v6, v6
	cmtst.4s	v7, v7, v7
	sub.4s	v0, v0, v4
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	subs	x14, x14, #16
	b.ne	LBB0_82
; %bb.83:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w1, s0
	cmp	x12, x10
	b.ne	LBB0_94
LBB0_84:
	mov	w21, #32
	mov	w22, #32
LBB0_85:
	ldr	w10, [x20]
	cbz	w10, LBB0_59
LBB0_86:
	mov	x23, #0
	ldr	x11, [x20, #8]
	add	x11, x11, #8
	b	LBB0_88
LBB0_87:                                ;   in Loop: Header=BB0_88 Depth=1
	add	x23, x23, #1
	add	x11, x11, #16
	cmp	x10, x23
	b.eq	LBB0_91
LBB0_88:                                ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x11, #-8]
	ldr	w12, [x12]
	cmp	w12, w9
	b.ne	LBB0_87
; %bb.89:                               ;   in Loop: Header=BB0_88 Depth=1
	ldr	x12, [x11]
	cbz	x12, LBB0_87
; %bb.90:
	cmp	w23, w10
	b.ne	LBB0_92
LBB0_91:
	mov	w0, #0
	b	LBB0_93
LBB0_92:
Lloh35:
	adrp	x9, _amdgpu_ctx_num_entities@GOTPAGE
Lloh36:
	ldr	x9, [x9, _amdgpu_ctx_num_entities@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	ldr	w0, [x9, x8, lsl #2]
	bl	_min
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20, #8]
	mov	w10, w23
	lsl	x10, x10, #4
	ldr	x9, [x9, x10]
	ldur	d0, [x9, #4]
	str	d0, [x19, #32]
	stp	x21, xzr, [x19, #16]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	str	w8, [x19]
	str	x22, [x19, #8]
LBB0_93:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_94:
	add	x11, x11, x12, lsl #2
	sub	x10, x10, x12
	mov	w21, #32
LBB0_95:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	cmp	w12, #0
	cinc	w1, w1, ne
	subs	x10, x10, #1
	b.ne	LBB0_95
LBB0_96:
	mov	w22, #32
	ldr	w10, [x20]
	cbnz	w10, LBB0_86
	b	LBB0_59
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_21-LBB0_3)>>2
	.byte	(LBB0_26-LBB0_3)>>2
	.byte	(LBB0_29-LBB0_3)>>2
	.byte	(LBB0_41-LBB0_3)>>2
	.byte	(LBB0_46-LBB0_3)>>2
	.byte	(LBB0_49-LBB0_3)>>2
	.byte	(LBB0_52-LBB0_3)>>2
                                        ; -- End function
	.comm	_AMDGPU_HW_IP_INSTANCE_MAX_COUNT,8,3 ; @AMDGPU_HW_IP_INSTANCE_MAX_COUNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AMD_IP_BLOCK_TYPE_GFX,4,2      ; @AMD_IP_BLOCK_TYPE_GFX
	.comm	_AMD_IP_BLOCK_TYPE_SDMA,4,2     ; @AMD_IP_BLOCK_TYPE_SDMA
	.comm	_AMD_IP_BLOCK_TYPE_UVD,4,2      ; @AMD_IP_BLOCK_TYPE_UVD
	.comm	_AMD_IP_BLOCK_TYPE_VCE,4,2      ; @AMD_IP_BLOCK_TYPE_VCE
	.comm	_AMD_IP_BLOCK_TYPE_VCN,4,2      ; @AMD_IP_BLOCK_TYPE_VCN
	.comm	_amdgpu_ctx_num_entities,8,3    ; @amdgpu_ctx_num_entities
	.no_dead_strip	_amdgpu_hw_ip_info
.subsections_via_symbols
