	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_mock_exhaust_device_supported_pages
_igt_mock_exhaust_device_supported_pages: ## @igt_mock_exhaust_device_supported_pages
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_INTEL_INFO
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_page_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %edi
	callq	_BIT
	xorl	%r14d, %r14d
	cmpl	$2, %eax
	jl	LBB0_30
## %bb.1:
	movl	$1, %r13d
	movq	_page_sizes@GOTPCREL(%rip), %r14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	$0, %r12d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_BIT
	movq	(%r14), %rdi
	testl	%r13d, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	orl	(%rdi,%rbx,4), %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mkwrite_device_info
	movl	%r12d, (%rax)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_fake_huge_pages_object
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %esi
	cmpl	%r12d, %esi
	jne	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_i915_vma_instance
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PIN_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_i915_vma_pin
	testl	%eax, %eax
	jne	LBB0_13
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_igt_check_page_sizes
	movl	(%r15), %esi
	cmpl	%r12d, %esi
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %edx
	callq	_pr_err
	xorl	%r14d, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_i915_vma_unpin
	movq	%r15, %rdi
	callq	_i915_vma_close
	movq	%rbx, %rdi
	callq	_i915_gem_object_put
	testl	%r14d, %r14d
	jne	LBB0_30
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_fake_huge_pages_object
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %esi
	cmpl	%r12d, %esi
	jne	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_i915_vma_instance
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_24
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PIN_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_i915_vma_pin
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_igt_check_page_sizes
	movl	(%r15), %esi
	cmpl	%r12d, %esi
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %edx
	callq	_pr_err
	xorl	%r14d, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_i915_vma_unpin
	movq	%r15, %rdi
	callq	_i915_vma_close
	movq	%rbx, %rdi
	callq	_i915_gem_object_put
	testl	%r14d, %r14d
	jne	LBB0_30
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movq	_page_sizes@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %edi
	callq	_BIT
	cmpl	%eax, %r13d
	jl	LBB0_2
## %bb.19:
	xorl	%r14d, %r14d
	jmp	LBB0_30
LBB0_8:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_30
LBB0_21:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	callq	_pr_err
	xorl	%r14d, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_24:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_22
LBB0_13:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_i915_vma_close
LBB0_22:
	movq	%rbx, %rdi
	callq	_i915_gem_object_put
LBB0_30:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mkwrite_device_info
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_page_sizes,8,3                 ## @page_sizes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"obj->base.size=%zu, expected=%u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIN_USER,4,2                   ## @PIN_USER
L_.str.1:                               ## @.str.1
	.asciz	"page_sizes.sg=%u, expected=%u\n"

	.no_dead_strip	_igt_mock_exhaust_device_supported_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_mock_exhaust_device_supported_pages
_igt_mock_exhaust_device_supported_pages: ; @igt_mock_exhaust_device_supported_pages
	.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	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_INTEL_INFO
	ldr	w26, [x0]
Lloh0:
	adrp	x28, _page_sizes@GOTPAGE
Lloh1:
	ldr	x28, [x28, _page_sizes@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	bl	_BIT
	cmp	w0, #2
	b.lt	LBB0_25
; %bb.1:
	mov	w27, #1
Lloh2:
	adrp	x21, _PIN_USER@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PIN_USER@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, #0
	mov	w23, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_BIT
	mov	x8, x0
	ldr	x0, [x28]
	tst	w8, w27
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x0, x22, lsl #2]
	orr	w23, w8, w23
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #0
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_mkwrite_device_info
	str	w23, [x0]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_fake_huge_pages_object
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22, #4]
	cmp	w1, w23
	b.ne	LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	bl	_i915_vma_instance
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_28
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w3, [x21]
	mov	x0, x24
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	cbnz	w0, LBB0_29
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_igt_check_page_sizes
	ldr	w1, [x24]
	cmp	w1, w23
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_pr_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_i915_vma_unpin
	mov	x0, x24
	bl	_i915_vma_close
	mov	x0, x22
	bl	_i915_gem_object_put
	cbnz	w25, LBB0_31
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	w2, #1
	bl	_fake_huge_pages_object
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_26
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22, #4]
	cmp	w1, w23
	b.ne	LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	bl	_i915_vma_instance
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w3, [x21]
	mov	x0, x24
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	cbnz	w0, LBB0_29
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_igt_check_page_sizes
	ldr	w1, [x24]
	cmp	w1, w23
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_pr_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_i915_vma_unpin
	mov	x0, x24
	bl	_i915_vma_close
	mov	x0, x22
	bl	_i915_gem_object_put
	cbnz	w25, LBB0_31
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w27, #1
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	bl	_BIT
	cmp	w27, w0
	b.lt	LBB0_2
LBB0_25:
	mov	w25, #0
	b	LBB0_31
LBB0_26:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_31
LBB0_27:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x23
	bl	_pr_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_30
LBB0_28:
	mov	x0, x24
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_30
LBB0_29:
	mov	x25, x0
	mov	x0, x24
	bl	_i915_vma_close
LBB0_30:
	mov	x0, x22
	bl	_i915_gem_object_put
LBB0_31:
	mov	x0, x19
	bl	_mkwrite_device_info
	str	w26, [x0]
	mov	x0, x25
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_page_sizes,8,3                 ; @page_sizes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"obj->base.size=%zu, expected=%u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIN_USER,4,2                   ; @PIN_USER
l_.str.1:                               ; @.str.1
	.asciz	"page_sizes.sg=%u, expected=%u\n"

	.no_dead_strip	_igt_mock_exhaust_device_supported_pages
.subsections_via_symbols
