	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_gem_object_get_pages    ## -- Begin function __i915_gem_object_get_pages
	.p2align	4, 0x90
___i915_gem_object_get_pages:           ## @__i915_gem_object_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_i915_gem_object_has_pages
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_i915_gem_object_has_pinned_pages
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	%r14, %rdi
	callq	_____i915_gem_object_get_pages
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_smp_mb__before_atomic
LBB0_4:
	leaq	4(%r14), %rdi
	callq	_atomic_inc
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_gem_object_get_pages    ; -- Begin function __i915_gem_object_get_pages
	.p2align	2
___i915_gem_object_get_pages:           ; @__i915_gem_object_get_pages
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mutex_lock_interruptible
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_i915_gem_object_has_pages
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_i915_gem_object_has_pinned_pages
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_____i915_gem_object_get_pages
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
	bl	_smp_mb__before_atomic
LBB0_4:
	add	x0, x19, #4
	bl	_atomic_inc
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
