	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mock_phys_object
_mock_phys_object:                      ## @mock_phys_object
	.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
	movq	%rdi, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_i915_gem_object_create_shmem
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_14
LBB0_2:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_i915_gem_object_attach_phys
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_12:
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_13
LBB0_4:
	movq	8(%r14), %rax
	cmpq	_i915_gem_phys_ops@GOTPCREL(%rip), %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_13:
	movq	%r14, %rdi
	callq	_i915_gem_object_put
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	callq	_i915_gem_object_lock
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_i915_gem_object_set_to_gtt_domain
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_i915_gem_object_unlock
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i915_gem_object_create failed, err=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"i915_gem_object_attach_phys failed, err=%d\n"

	.comm	_i915_gem_phys_ops,4,2          ## @i915_gem_phys_ops
L_.str.2:                               ## @.str.2
	.asciz	"i915_gem_object_attach_phys did not create a phys object\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"i915_gem_object_attach_phys did not pin its phys pages\n"

L_.str.4:                               ## @.str.4
	.asciz	"i915_gem_object_set_to_gtt_domain failed with err=%d\n"

	.no_dead_strip	_mock_phys_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mock_phys_object
_mock_phys_object:                      ; @mock_phys_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
Lloh0:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_i915_gem_object_create_shmem
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_8
LBB0_2:
	mov	x0, x20
	bl	_mutex_lock
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i915_gem_object_attach_phys
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w21, LBB0_4
; %bb.3:
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	mov	x20, x21
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _i915_gem_phys_ops@GOTPAGE
Lloh7:
	ldr	x9, [x9, _i915_gem_phys_ops@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.5:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_pr_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x19
	bl	_i915_gem_object_put
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	mov	x0, x19
	bl	_atomic_read
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_i915_gem_object_lock
	mov	x0, x19
	mov	w1, #1
	bl	_i915_gem_object_set_to_gtt_domain
	mov	x20, x0
	mov	x0, x19
	bl	_i915_gem_object_unlock
	cbz	w20, LBB0_7
; %bb.11:
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_7
LBB0_12:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i915_gem_object_create failed, err=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"i915_gem_object_attach_phys failed, err=%d\n"

	.comm	_i915_gem_phys_ops,4,2          ; @i915_gem_phys_ops
l_.str.2:                               ; @.str.2
	.asciz	"i915_gem_object_attach_phys did not create a phys object\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"i915_gem_object_attach_phys did not pin its phys pages\n"

l_.str.4:                               ; @.str.4
	.asciz	"i915_gem_object_set_to_gtt_domain failed with err=%d\n"

	.no_dead_strip	_mock_phys_object
.subsections_via_symbols
