	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_syncmap_join_below
_igt_syncmap_join_below:                ## @igt_syncmap_join_below
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	-48(%rbp), %rdi
	callq	_i915_syncmap_init
	movq	_KSYNCMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-48(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movl	%edx, %ecx
	cmpl	%eax, %r12d
	jae	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	$64, %edx
	cmpl	$64, %ecx
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$64, %r13d
	subl	%ecx, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %edi
	callq	_BIT_ULL
	movl	%eax, %ebx
	imull	%r12d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_i915_syncmap_set
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rax
	movl	4(%rax), %r8d
	testl	%r8d, %r8d
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%edx, %r13d
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_KSYNCMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_5:
	movl	%eax, %r15d
	jmp	LBB0_36
LBB0_9:
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_21
LBB0_6:
	testl	%eax, %eax
	je	LBB0_7
## %bb.13:
	movq	_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_7:
	movq	_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
LBB0_27:
	cmpl	$63, %ecx
	ja	LBB0_36
## %bb.28:
	leaq	-48(%rbp), %r14
	movl	%ecx, %r12d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_29 Depth=1
	addl	%ecx, %r12d
	cmpl	$64, %r12d
	jae	LBB0_36
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	testl	%eax, %eax
	movl	$0, %eax
	je	LBB0_35
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	callq	_BIT_ULL
	movl	%eax, %ebx
	imull	%r13d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_i915_syncmap_is_later
	testq	%rax, %rax
	je	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=2
	incl	%r13d
	movq	_KSYNCMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jb	LBB0_31
## %bb.34:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_35
LBB0_32:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
LBB0_20:
	xorl	%eax, %eax
	callq	_pr_err
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_36:
	movq	-48(%rbp), %rdi
	movl	%r15d, %esi
	callq	_dump_syncmap
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%r14d
	cmpl	%eax, %r14d
	jae	LBB0_27
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
	cmpl	$63, %ecx
	ja	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%ecx, %r13d
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_16
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %r13d
	cmpl	$64, %r13d
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jae	LBB0_26
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
	movl	%r13d, %edi
	callq	_BIT_ULL
	movl	%eax, %ebx
	imull	%r14d, %ebx
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_i915_syncmap_is_later
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	_KSYNCMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	jb	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%rbx,%r12), %r14d
	leaq	-48(%rbp), %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_i915_syncmap_is_later
	testq	%rax, %rax
	jne	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=3
	incl	%r12d
	movq	_KSYNCMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	jb	LBB0_23
	jmp	LBB0_25
LBB0_24:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_KSYNCMAP,4,2                   ## @KSYNCMAP
	.comm	_SHIFT,4,2                      ## @SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inserting context=%llx (order=%d, step=%d) did not return leaf (height=%d, prefix=%llx\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"1: context %llx (order=%d, step=%d) not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"1: context %llx (order=%d, step=%d) should not exist\n"

L_.str.3:                               ## @.str.3
	.asciz	"2: context %llx (order=%d, step=%d) not found\n"

	.no_dead_strip	_igt_syncmap_join_below
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_syncmap_join_below
_igt_syncmap_join_below:                ; @igt_syncmap_join_below
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	add	x0, sp, #24
	bl	_i915_syncmap_init
Lloh3:
	adrp	x24, _KSYNCMAP@GOTPAGE
Lloh4:
	ldr	x24, [x24, _KSYNCMAP@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh5:
	adrp	x25, _SHIFT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SHIFT@GOTPAGEOFF]
	cbz	w8, LBB0_22
; %bb.1:
	mov	w20, #0
	ldr	w9, [x25]
	mov	w23, #64
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.hs	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w9, #64
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w21, w23, w9
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_BIT_ULL
	mul	w22, w0, w20
	add	x0, sp, #24
	mov	x1, x22
	mov	w2, #0
	bl	_i915_syncmap_set
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x9, [sp, #24]
	ldr	w8, [x9, #4]
	cbnz	w8, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w9, [x25]
	subs	w21, w21, w9
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #0
	ldr	w8, [x24]
	b	LBB0_2
LBB0_9:
	mov	x19, x0
	b	LBB0_34
LBB0_10:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_32
LBB0_11:
	cbz	w8, LBB0_22
; %bb.12:
	mov	w21, #0
	ldr	w20, [x25]
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;       Child Loop BB0_19 Depth 3
	cmp	w20, #63
	b.ls	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.lo	LBB0_13
	b	LBB0_23
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	w9, [x25]
	add	w20, w9, w20
	cmp	w20, #64
	b.hs	LBB0_21
LBB0_16:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_19 Depth 3
	mov	x0, x20
	bl	_BIT_ULL
	mov	x22, x0
	mul	w23, w0, w21
	add	x0, sp, #24
	mov	x1, x23
	mov	w2, #0
	bl	_i915_syncmap_is_later
	cbz	x0, LBB0_37
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w8, [x24]
	cmp	w8, #2
	b.lo	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	mul	w26, w21, w22
	mov	w23, #1
LBB0_19:                                ;   Parent Loop BB0_13 Depth=1
                                        ;     Parent Loop BB0_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w1, w26, w23
	add	x0, sp, #24
	mov	w2, #0
	bl	_i915_syncmap_is_later
	cbnz	x0, LBB0_35
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=3
	add	w23, w23, #1
	ldr	w8, [x24]
	cmp	w23, w8
	b.lo	LBB0_19
	b	LBB0_15
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x20, x9
	b	LBB0_14
LBB0_22:
	mov	w8, #0
	ldr	w20, [x25]
LBB0_23:
	cmp	w20, #63
	b.hi	LBB0_34
; %bb.24:
	mov	x21, x20
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	w21, w20, w21
	cmp	w21, #64
	b.hs	LBB0_34
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
	cbz	w8, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	w20, #0
LBB0_28:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_BIT_ULL
	mul	w22, w0, w20
	add	x0, sp, #24
	mov	x1, x22
	mov	w2, #0
	bl	_i915_syncmap_is_later
	cbz	x0, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	add	w20, w20, #1
	ldr	w8, [x24]
	cmp	w20, w8
	b.lo	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w20, [x25]
	b	LBB0_25
LBB0_31:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_32:
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
LBB0_33:
	bl	_pr_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_34:
	ldr	x0, [sp, #24]
	mov	x1, x19
	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
	add	sp, sp, #112
	ret
LBB0_35:
	madd	w1, w21, w22, w23
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_36:
	mov	x2, x20
	mov	x3, x21
	b	LBB0_33
LBB0_37:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	b	LBB0_36
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_KSYNCMAP,4,2                   ; @KSYNCMAP
	.comm	_SHIFT,4,2                      ; @SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inserting context=%llx (order=%d, step=%d) did not return leaf (height=%d, prefix=%llx\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"1: context %llx (order=%d, step=%d) not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"1: context %llx (order=%d, step=%d) should not exist\n"

l_.str.3:                               ; @.str.3
	.asciz	"2: context %llx (order=%d, step=%d) not found\n"

	.no_dead_strip	_igt_syncmap_join_below
.subsections_via_symbols
