	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_test_object
_create_test_object:                    ## @create_test_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movslq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	(%r12), %rdi
	movq	%rdi, %rbx
LBB0_3:
	callq	_i915_retire_requests
	movl	(%rbx), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	_DW_PER_PAGE@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	imulq	(%rbx), %rsi
	shlq	$10, %rsi
	callq	_min
	movq	(%rbx), %rsi
	imulq	(%r13), %rsi
	movl	%eax, %edi
	callq	_round_down
	movq	(%r12), %rdi
	movq	(%rbx), %rsi
	imulq	(%r13), %rsi
	movl	%eax, %edx
	callq	_huge_gem_object
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_file_add_object
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_i915_gem_object_put
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.5:
	movq	_STACK_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cpu_fill
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_7:
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_PER_PAGE,8,3                ## @DW_PER_PAGE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_STACK_MAGIC,4,2                ## @STACK_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to fill object with cpu, err=%d\n"

	.no_dead_strip	_create_test_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_test_object
_create_test_object:                    ; @create_test_object
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldrsw	x22, [x0, #8]
	cbz	w22, LBB0_2
; %bb.1:
	ldr	x0, [x21]
	b	LBB0_3
LBB0_2:
	ldr	x0, [x21]
	mov	x22, x0
LBB0_3:
	bl	_i915_retire_requests
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
Lloh0:
	adrp	x22, _DW_PER_PAGE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DW_PER_PAGE@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x9, [x23]
	mul	x8, x8, x9
	lsl	x1, x8, #10
	bl	_min
	ldr	x8, [x22]
	ldr	x9, [x23]
	mul	x1, x9, x8
	bl	_round_down
	mov	x2, x0
	ldr	x0, [x21]
	ldr	x8, [x22]
	ldr	x9, [x23]
	mul	x1, x9, x8
	bl	_huge_gem_object
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_file_add_object
	mov	x20, x0
	mov	x0, x21
	bl	_i915_gem_object_put
	cbnz	w20, LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, _STACK_MAGIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STACK_MAGIC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_cpu_fill
	cbz	w0, LBB0_9
; %bb.7:
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_9:
	mov	x0, x21
	mov	x1, x19
	bl	_list_add_tail
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_PER_PAGE,8,3                ; @DW_PER_PAGE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_STACK_MAGIC,4,2                ; @STACK_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to fill object with cpu, err=%d\n"

	.no_dead_strip	_create_test_object
.subsections_via_symbols
