	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_gvt_init_vgpu_type_groups
_intel_gvt_init_vgpu_type_groups:       ## @intel_gvt_init_vgpu_type_groups
	.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
	movl	$1, %r14d
	cmpl	$0, (%rdi)
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	movq	_gvt_vgpu_type_groups@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14,%r12,4), %eax
	movl	%eax, 4(%rbx)
	movq	_gvt_type_attrs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	(%r13), %rax
	movq	%rbx, (%rax,%r12,8)
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_2
## %bb.7:
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_3:
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_5
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_gvt_type_attrs,4,2             ## @gvt_type_attrs
	.comm	_gvt_vgpu_type_groups,8,3       ## @gvt_vgpu_type_groups
	.no_dead_strip	_intel_gvt_init_vgpu_type_groups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_gvt_init_vgpu_type_groups
_intel_gvt_init_vgpu_type_groups:       ; @intel_gvt_init_vgpu_type_groups
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x21, #0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x24, _gvt_type_attrs@GOTPAGE
Lloh3:
	ldr	x24, [x24, _gvt_type_attrs@GOTPAGEOFF]
Lloh4:
	adrp	x22, _gvt_vgpu_type_groups@GOTPAGE
Lloh5:
	ldr	x22, [x22, _gvt_vgpu_type_groups@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #8]
	ldr	w1, [x23]
	mov	w0, #8
	bl	_kzalloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25, x21, lsl #2]
	ldr	w9, [x24]
	stp	w9, w8, [x20]
	ldr	x8, [x22]
	str	x20, [x8, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #1
	b	LBB0_9
LBB0_5:
	cbz	w21, LBB0_8
; %bb.6:
	mov	x19, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x0, [x8, x19, lsl #3]
	bl	_kfree
	add	x19, x19, #1
	cmp	x21, x19
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_gvt_type_attrs,4,2             ; @gvt_type_attrs
	.comm	_gvt_vgpu_type_groups,8,3       ; @gvt_vgpu_type_groups
	.no_dead_strip	_intel_gvt_init_vgpu_type_groups
.subsections_via_symbols
