	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_syncmap_join_above
_igt_syncmap_join_above:                ## @igt_syncmap_join_above
	.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
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_i915_syncmap_init
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SHIFT@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	cmpl	$64, %ebx
	jae	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT_ULL
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_check_leaf
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 4(%r12)
	je	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	callq	_hweight32
	cmpl	$2, %eax
	jne	LBB0_26
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	___sync_child
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	___sync_branch_idx
	movq	(%r13,%rax,8), %rax
	cmpq	-48(%rbp), %rax
	je	LBB0_1
	jmp	LBB0_23
LBB0_8:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	_SHIFT@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	cmpl	$64, %ebx
	jae	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT_ULL
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_check_leaf
	testl	%eax, %eax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, 4(%r12)
	je	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %edi
	callq	_hweight32
	cmpl	$2, %eax
	jne	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	callq	___sync_child
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	___sync_branch_idx
	movq	(%r13,%rax,8), %rax
	cmpq	-48(%rbp), %rax
	je	LBB0_9
	jmp	LBB0_23
LBB0_16:
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_SHIFT@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	xorl	%r12d, %r12d
	cmpl	$64, %r14d
	jae	LBB0_28
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_BIT_ULL
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_check_leaf
	testl	%eax, %eax
	jne	LBB0_7
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax), %r12
	testq	%r12, %r12
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$0, 4(%r12)
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r12), %edi
	callq	_hweight32
	cmpl	$2, %eax
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r12, %rdi
	callq	___sync_child
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	___sync_branch_idx
	movq	(%r13,%rax,8), %rax
	cmpq	-48(%rbp), %rax
	je	LBB0_17
LBB0_23:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_25
LBB0_7:
	movl	%eax, %r12d
	jmp	LBB0_28
LBB0_24:
	leaq	L_.str(%rip), %rdi
LBB0_25:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_27
LBB0_26:
	movl	(%r12), %ebx
	movl	%ebx, %edi
	callq	_hweight32
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_28:
	movq	-48(%rbp), %rdi
	movl	%r12d, %esi
	callq	_dump_syncmap
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Parent with no height!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Join does not have 2 children: %x (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Leaf misplaced in parent!\n"

	.comm	_SHIFT,8,3                      ## @SHIFT
	.no_dead_strip	_igt_syncmap_join_above
.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_above
_igt_syncmap_join_above:                ; @igt_syncmap_join_above
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	add	x0, sp, #24
	bl	_i915_syncmap_init
	mov	w20, #0
Lloh0:
	adrp	x23, _SHIFT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SHIFT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	add	w20, w20, w8
	cmp	w20, #64
	b.hs	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_BIT_ULL
	mov	x21, x0
	add	x0, sp, #24
	mov	x1, x21
	mov	w2, #0
	bl	_check_leaf
	cbnz	w0, LBB0_22
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]
	ldr	x19, [x8, #8]
	cbz	x19, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_23
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19]
	bl	_hweight32
	cmp	w0, #2
	b.ne	LBB0_24
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	___sync_child
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	___sync_branch_idx
	ldr	x8, [x22, x0, lsl #3]
	ldr	x9, [sp, #24]
	cmp	x8, x9
	b.eq	LBB0_1
	b	LBB0_21
LBB0_7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23]
	add	w20, w20, w8
	cmp	w20, #64
	b.hs	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_BIT_ULL
	mov	x21, x0
	add	x0, sp, #24
	mov	x1, x21
	mov	w2, #0
	bl	_check_leaf
	cbnz	w0, LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #24]
	ldr	x19, [x8, #8]
	cbz	x19, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19]
	bl	_hweight32
	cmp	w0, #2
	b.ne	LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	___sync_child
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	___sync_branch_idx
	ldr	x8, [x22, x0, lsl #3]
	ldr	x9, [sp, #24]
	cmp	x8, x9
	b.eq	LBB0_8
	b	LBB0_21
LBB0_14:
	mov	w20, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w1, #0
	ldr	w8, [x23]
	add	w20, w20, w8
	cmp	w20, #64
	b.hs	LBB0_26
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_BIT_ULL
	mov	x21, x0
	add	x0, sp, #24
	mov	x1, x21
	mov	w2, #0
	bl	_check_leaf
	cbnz	w0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [sp, #24]
	ldr	x19, [x8, #8]
	cbz	x19, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x19]
	bl	_hweight32
	cmp	w0, #2
	b.ne	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	bl	___sync_child
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	___sync_branch_idx
	ldr	x8, [x22, x0, lsl #3]
	ldr	x9, [sp, #24]
	cmp	x8, x9
	b.eq	LBB0_15
LBB0_21:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_22:
	mov	x1, x0
	b	LBB0_26
LBB0_23:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_25
LBB0_24:
	ldr	w19, [x19]
	mov	x0, x19
	bl	_hweight32
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_25:
	bl	_pr_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_26:
	ldr	x0, [sp, #24]
	bl	_dump_syncmap
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parent with no height!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Join does not have 2 children: %x (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Leaf misplaced in parent!\n"

	.comm	_SHIFT,8,3                      ; @SHIFT
	.no_dead_strip	_igt_syncmap_join_above
.subsections_via_symbols
