	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mock_breadcrumbs_smoketest
_mock_breadcrumbs_smoketest:            ## @mock_breadcrumbs_smoketest
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movabsq	$4398046512128, %rax            ## imm = 0x40000000400
	movq	%rax, -80(%rbp)
	movq	(%rdi), %rax
	movq	_RCS0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r13
	movq	%r13, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	___mock_request_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %edx
	movl	$1024, %edi                     ## imm = 0x400
	movl	$8, %esi
	callq	_kmalloc_array
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	%r15d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdi
	callq	_mutex_lock
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	%r15, %rsi
	callq	_mock_context
	movq	%rax, (%rbx,%r12,8)
	movq	-72(%rbp), %rbx
	cmpq	$0, (%rbx,%r12,8)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movq	-64(%rbp), %r13
	cmpq	$1024, %r12                     ## imm = 0x400
	jne	LBB0_6
## %bb.8:
	movq	(%r13), %rdi
	callq	_mutex_unlock
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.10:
	leaq	L_.str.1(%rip), %r12
	leaq	-80(%rbp), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	___igt_breadcrumbs_smoketest@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_kthread_run
	movq	%rax, (%r14,%r13,8)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14,%r13,8), %rdi
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_get_task_struct
	incq	%r13
	cmpq	%r13, %rbx
	jne	LBB0_11
## %bb.14:
	movq	%rbx, %r13
	xorl	%r12d, %r12d
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_24
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_23
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_12:
	callq	_PTR_ERR
	movl	%eax, %r12d
LBB0_15:
	movq	_i915_selftest@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	movl	%eax, %edi
	callq	_msleep
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.16:
	movl	%r13d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_kthread_stop
	testl	%r12d, %r12d
	movl	%eax, %ecx
	cmovnel	%r12d, %ecx
	testl	%eax, %eax
	cmovsl	%ecx, %r12d
	movq	(%r14,%rbx,8), %rdi
	callq	_put_task_struct
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_17
LBB0_18:
	leaq	-52(%rbp), %rdi
	callq	_atomic_long_read
	movl	%eax, %r15d
	leaq	-56(%rbp), %rdi
	callq	_atomic_long_read
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r13d, %ecx
	callq	_pr_info
	movq	-64(%rbp), %rax
	movq	(%rax), %rdi
	callq	_mutex_lock
	cmpl	$0, -80(%rbp)
	je	LBB0_22
LBB0_19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	callq	_mock_context_close
	incq	%rbx
	movl	-80(%rbp), %eax
	cmpq	%rax, %rbx
	jb	LBB0_20
LBB0_22:
	movq	-64(%rbp), %rax
	movq	(%rax), %rdi
	callq	_mutex_unlock
	movq	-72(%rbp), %rdi
	callq	_kfree
LBB0_23:
	movq	%r14, %rdi
	callq	_kfree
LBB0_24:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCS0,8,3                       ## @RCS0
	.comm	___mock_request_alloc,4,2       ## @__mock_request_alloc
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mock"

	.comm	___igt_breadcrumbs_smoketest,4,2 ## @__igt_breadcrumbs_smoketest
L_.str.1:                               ## @.str.1
	.asciz	"igt/%d"

	.comm	_i915_selftest,4,2              ## @i915_selftest
L_.str.2:                               ## @.str.2
	.asciz	"Completed %lu waits for %lu fence across %d cpus\n"

	.no_dead_strip	_mock_breadcrumbs_smoketest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mock_breadcrumbs_smoketest
_mock_breadcrumbs_smoketest:            ; @mock_breadcrumbs_smoketest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	movi.2s	v0, #4, lsl #8
	str	d0, [sp, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RCS0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCS0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x25, [x8, x9, lsl #3]
	stp	x25, xzr, [sp, #24]
Lloh3:
	adrp	x8, ___mock_request_alloc@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___mock_request_alloc@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	bl	_num_online_cpus
	mov	x23, x0
Lloh6:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_kmalloc_array
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w2, [x20]
	mov	w0, #1024
	mov	w1, #8
	bl	_kmalloc_array
	str	x0, [sp, #16]
	cbz	x0, LBB0_11
; %bb.2:
	mov	x22, x0
	add	x8, sp, #8
	add	x20, x8, #24
	add	x21, x8, #28
	mov	w24, w23
	ldr	x0, [x25]
	bl	_mutex_lock
	mov	x26, #0
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	mov	x1, x23
	bl	_mock_context
	str	x0, [x22, x26]
	ldr	x22, [sp, #16]
	ldr	x8, [x22, x26]
	cbz	x8, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x25, [sp, #24]
	add	x26, x26, #8
	cmp	x26, #2, lsl #12                ; =8192
	b.ne	LBB0_3
; %bb.5:
	ldr	x0, [x25]
	bl	_mutex_unlock
	cbz	w24, LBB0_13
; %bb.6:
	mov	x23, #0
Lloh10:
	adrp	x25, ___igt_breadcrumbs_smoketest@GOTPAGE
Lloh11:
	ldr	x25, [x25, ___igt_breadcrumbs_smoketest@GOTPAGEOFF]
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	add	x1, sp, #8
	mov	x2, x22
	mov	x3, x23
	bl	_kthread_run
	lsl	x26, x23, #3
	str	x0, [x19, x26]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, x26]
	cbnz	x8, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_get_task_struct
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_7
; %bb.9:
	mov	w22, #0
	mov	x23, x24
	b	LBB0_15
LBB0_10:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_24
LBB0_11:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_23
LBB0_12:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_13:
	mov	w23, #0
	mov	w22, #0
	b	LBB0_15
LBB0_14:
	bl	_PTR_ERR
	mov	x22, x0
LBB0_15:
Lloh23:
	adrp	x8, _i915_selftest@GOTPAGE
Lloh24:
	ldr	x8, [x8, _i915_selftest@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_jiffies_to_msecs
	bl	_msleep
	cbz	w23, LBB0_18
; %bb.16:
	mov	w24, w23
	mov	w25, #-1
	mov	x26, x19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x26]
	bl	_kthread_stop
	cmp	w22, #0
	ccmp	w0, w25, #0, eq
	csel	w22, w22, w0, gt
	ldr	x0, [x26], #8
	bl	_put_task_struct
	subs	x24, x24, #1
	b.ne	LBB0_17
LBB0_18:
	mov	x0, x21
	bl	_atomic_long_read
	mov	x21, x0
	mov	x0, x20
	bl	_atomic_long_read
	mov	x2, x0
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x3, x23
	bl	_pr_info
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	bl	_mutex_lock
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_22
LBB0_19:
	mov	x20, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	ldr	x0, [x8, x20, lsl #3]
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	bl	_mock_context_close
	add	x20, x20, #1
	ldr	w8, [sp, #8]
	cmp	x20, x8
	b.lo	LBB0_20
LBB0_22:
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	bl	_mutex_unlock
	ldr	x0, [sp, #16]
	bl	_kfree
LBB0_23:
	mov	x0, x19
	bl	_kfree
LBB0_24:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RCS0,8,3                       ; @RCS0
	.comm	___mock_request_alloc,4,2       ; @__mock_request_alloc
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mock"

	.comm	___igt_breadcrumbs_smoketest,4,2 ; @__igt_breadcrumbs_smoketest
l_.str.1:                               ; @.str.1
	.asciz	"igt/%d"

	.comm	_i915_selftest,4,2              ; @i915_selftest
l_.str.2:                               ; @.str.2
	.asciz	"Completed %lu waits for %lu fence across %d cpus\n"

	.no_dead_strip	_mock_breadcrumbs_smoketest
.subsections_via_symbols
