	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_object_get_page
_i915_gem_object_get_page:              ## @i915_gem_object_get_page
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rcx
	movq	8(%rcx), %rax
	movl	(%rcx), %ebx
	movq	_SG_MAX_SINGLE_ALLOC@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	cmpl	%ecx, %ebx
	jle	LBB0_4
## %bb.1:
	leal	-1(%rcx), %edx
	cmpl	%r14d, %edx
	jg	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$-4, %rdi
	callq	_sg_chain_ptr
	movl	(%r15), %ecx
	leal	-1(%rcx), %edx
	subl	%edx, %r14d
	subl	%edx, %ebx
	cmpl	%ecx, %ebx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%edx, %r14d
	jge	LBB0_2
LBB0_4:
	movslq	%r14d, %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sg_page                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SG_MAX_SINGLE_ALLOC,4,2        ## @SG_MAX_SINGLE_ALLOC
	.no_dead_strip	_i915_gem_object_get_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_gem_object_get_page
_i915_gem_object_get_page:              ; @i915_gem_object_get_page
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x0, [x8, #8]
	ldr	w20, [x8]
Lloh0:
	adrp	x21, _SG_MAX_SINGLE_ALLOC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SG_MAX_SINGLE_ALLOC@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w9, w8, #1
	cmp	w20, w8
	ccmp	w9, w1, #0, gt
	b.gt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x0, w8, sxtw #2
	sub	x0, x8, #4
	bl	_sg_chain_ptr
	ldr	w8, [x21]
	sub	w9, w8, #1
	sub	w19, w19, w9
	sub	w20, w20, w9
	cmp	w20, w8
	ccmp	w19, w9, #8, gt
	b.ge	LBB0_1
LBB0_2:
	add	x0, x0, w19, sxtw #2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sg_page
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SG_MAX_SINGLE_ALLOC,4,2        ; @SG_MAX_SINGLE_ALLOC
	.no_dead_strip	_i915_gem_object_get_page
.subsections_via_symbols
