	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_ppgtt_internal_huge
_igt_ppgtt_internal_huge:               ## @igt_ppgtt_internal_huge
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	_igt_ppgtt_internal_huge.sizes(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	xorl	%r14d, %r14d
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_i915_gem_object_create_internal
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rbx
	movq	%r13, %rdi
	callq	_i915_gem_object_pin_pages
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_I915_GTT_PAGE_SIZE_64K@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_igt_write_huge
	testl	%eax, %eax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_i915_gem_object_unpin_pages
	movq	_I915_MM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	___i915_gem_object_put_pages
	movq	%r13, %rdi
	callq	_i915_gem_object_put
	incq	%r14
	movq	%rbx, %r15
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r12
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_14:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movl	%eax, %r15d
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pr_info
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pr_err
LBB0_9:
	movq	%r13, %rdi
	callq	_i915_gem_object_unpin_pages
LBB0_10:
	movq	%r13, %rdi
	callq	_i915_gem_object_put
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @igt_ppgtt_internal_huge.sizes
_igt_ppgtt_internal_huge.sizes:
	.long	128                             ## 0x80
	.long	133                             ## 0x85
	.long	131                             ## 0x83
	.long	129                             ## 0x81
	.long	132                             ## 0x84
	.long	130                             ## 0x82

	.comm	_I915_GTT_PAGE_SIZE_64K,8,3     ## @I915_GTT_PAGE_SIZE_64K
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"internal unable to allocate huge-page(s) with size=%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"internal write-huge failed with size=%u\n"

	.comm	_I915_MM_NORMAL,4,2             ## @I915_MM_NORMAL
	.no_dead_strip	_igt_ppgtt_internal_huge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_ppgtt_internal_huge
_igt_ppgtt_internal_huge:               ; @igt_ppgtt_internal_huge
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x22, _igt_ppgtt_internal_huge.sizes@PAGE
Lloh1:
	add	x22, x22, _igt_ppgtt_internal_huge.sizes@PAGEOFF
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x25, #0
Lloh2:
	adrp	x26, _I915_GTT_PAGE_SIZE_64K@GOTPAGE
Lloh3:
	ldr	x26, [x26, _I915_GTT_PAGE_SIZE_64K@GOTPAGEOFF]
Lloh4:
	adrp	x27, _I915_MM_NORMAL@GOTPAGE
Lloh5:
	ldr	x27, [x27, _I915_MM_NORMAL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x22, x25, lsl #2]
	mov	x0, x20
	mov	x1, x23
	bl	_i915_gem_object_create_internal
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_i915_gem_object_pin_pages
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x26]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_igt_write_huge
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_i915_gem_object_unpin_pages
	ldr	w1, [x27]
	mov	x0, x21
	bl	___i915_gem_object_put_pages
	mov	x0, x21
	bl	_i915_gem_object_put
	add	x25, x25, #1
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.lt	LBB0_2
LBB0_7:
	mov	w24, #0
	b	LBB0_14
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_9:
	mov	x24, x0
	b	LBB0_13
LBB0_10:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_pr_info
	mov	w24, #0
	b	LBB0_12
LBB0_11:
	mov	x24, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_pr_err
LBB0_12:
	mov	x0, x21
	bl	_i915_gem_object_unpin_pages
LBB0_13:
	mov	x0, x21
	bl	_i915_gem_object_put
LBB0_14:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @igt_ppgtt_internal_huge.sizes
_igt_ppgtt_internal_huge.sizes:
	.long	128                             ; 0x80
	.long	133                             ; 0x85
	.long	131                             ; 0x83
	.long	129                             ; 0x81
	.long	132                             ; 0x84
	.long	130                             ; 0x82

	.comm	_I915_GTT_PAGE_SIZE_64K,8,3     ; @I915_GTT_PAGE_SIZE_64K
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal unable to allocate huge-page(s) with size=%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"internal write-huge failed with size=%u\n"

	.comm	_I915_MM_NORMAL,4,2             ; @I915_MM_NORMAL
	.no_dead_strip	_igt_ppgtt_internal_huge
.subsections_via_symbols
