	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_syncmap_random
_igt_syncmap_random:                    ## @igt_syncmap_random
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_prng@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_RND_STATE
	movq	_end_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IGT_TIMEOUT
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_i915_syncmap_init
	movq	_jiffies@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	addl	%ecx, %eax
	incl	%eax
	movslq	%eax, %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_i915_prandom_u64_state
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_i915_syncmap_set
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%r13
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	xorl	%r12d, %r12d
	movq	_ctx@GOTPCREL(%rip), %r15
	movq	_prng@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	_end_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	___igt_timeout
	movq	%r14, %r12
	testl	%eax, %eax
	movq	_prng@GOTPCREL(%rip), %r14
	jne	LBB0_6
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_I915_RND_STATE
	movq	%r14, %rdi
	callq	_prandom_u32_state
	movq	%rax, %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_seqno_later
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rbx
	testq	%r13, %r13
	je	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_i915_prandom_u64_state
	movl	%eax, %r15d
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_i915_syncmap_is_later
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_i915_syncmap_set
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=2
	decq	%rbx
	movq	_ctx@GOTPCREL(%rip), %r15
	jne	LBB0_8
	jmp	LBB0_5
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	movq	-56(%rbp), %rdi
	movl	%eax, %esi
	callq	_dump_syncmap
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_pr_debug
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_prng,4,2                       ## @prng
	.comm	_end_time,4,2                   ## @end_time
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ctx,4,2                        ## @ctx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"context=%llu, last=%u this=%u did not match expectation (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Completed %lu passes, each of %lu contexts\n"

	.no_dead_strip	_igt_syncmap_random
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_syncmap_random
_igt_syncmap_random:                    ; @igt_syncmap_random
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x20, _prng@GOTPAGE
Lloh1:
	ldr	x20, [x20, _prng@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_RND_STATE
Lloh2:
	adrp	x27, _end_time@GOTPAGE
Lloh3:
	ldr	x27, [x27, _end_time@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_IGT_TIMEOUT
	add	x0, sp, #8
	bl	_i915_syncmap_init
	mov	x19, #0
Lloh4:
	adrp	x22, _jiffies@GOTPAGE
Lloh5:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _HZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	add	w8, w8, w9
	add	w8, w8, #1
	sxtw	x21, w8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_i915_prandom_u64_state
	mov	x1, x0
	add	x0, sp, #8
	mov	x2, #0
	bl	_i915_syncmap_set
	cbnz	w0, LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x19, x19, #1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_time_after
	cbz	w0, LBB0_1
; %bb.3:
	mov	x23, #0
	mov	x20, #0
Lloh9:
	adrp	x21, _ctx@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ctx@GOTPAGEOFF]
Lloh11:
	adrp	x22, _prng@GOTPAGE
Lloh12:
	ldr	x22, [x22, _prng@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	w0, [x27]
	mov	x1, #0
	bl	___igt_timeout
	mov	x23, x24
	cbnz	w0, LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w0, [x21]
	bl	_I915_RND_STATE
	mov	x0, x22
	bl	_prandom_u32_state
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	bl	_seqno_later
	mov	x25, x0
	mov	x28, x19
	cbz	x19, LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_i915_prandom_u64_state
	mov	x26, x0
	add	x0, sp, #8
	mov	x1, x26
	mov	x2, x24
	bl	_i915_syncmap_is_later
	cmp	w0, w25
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x0, sp, #8
	mov	x1, x26
	mov	x2, x24
	bl	_i915_syncmap_set
	cbnz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	subs	x28, x28, #1
	b.ne	LBB0_6
	b	LBB0_4
LBB0_9:
	mov	x1, x0
	b	LBB0_11
LBB0_10:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x26
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_pr_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_11:
	ldr	x0, [sp, #8]
	bl	_dump_syncmap
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_pr_debug
	mov	w1, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_prng,4,2                       ; @prng
	.comm	_end_time,4,2                   ; @end_time
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ctx,4,2                        ; @ctx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"context=%llu, last=%u this=%u did not match expectation (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Completed %lu passes, each of %lu contexts\n"

	.no_dead_strip	_igt_syncmap_random
.subsections_via_symbols
