	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_syncmap_compact
_igt_syncmap_compact:                   ## @igt_syncmap_compact
	.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	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	leaq	-48(%rbp), %rdi
	callq	_i915_syncmap_init
	movq	_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	$63, %r15d
	ja	LBB0_29
## %bb.1:
	leaq	-48(%rbp), %r14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movq	%r14, %rdi
	callq	_check_syncmap_free
	testl	%eax, %eax
	jne	LBB0_30
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_KSYNCMAP@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	callq	_BIT_ULL
	movl	%eax, %ebx
	imull	%r12d, %ebx
	addl	%r12d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_i915_syncmap_set
	testl	%eax, %eax
	jne	LBB0_30
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jne	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	incl	%r12d
	movq	_KSYNCMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%edi, %r12d
	jb	LBB0_5
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movq	-48(%rbp), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, 8(%rax)
	jne	LBB0_31
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %esi
	cmpl	%r15d, %esi
	jne	LBB0_32
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %ebx
	callq	_BIT
	decl	%eax
	cmpl	%eax, %ebx
	jne	LBB0_33
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_KSYNCMAP@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-48(%rbp), %rdi
	callq	___sync_child
	movq	(%rax,%r12,8), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	8(%rbx), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	4(%rbx), %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	4(%rbx), %r13d
	movl	%r12d, %edi
	callq	_BIT
	cmpl	%eax, %r13d
	jne	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	incq	%r12
	movq	_KSYNCMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r12
	jb	LBB0_14
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SHIFT@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	xorl	%r13d, %r13d
	cmpl	$64, %r15d
	jb	LBB0_2
	jmp	LBB0_29
LBB0_30:
	movl	%eax, %r13d
	jmp	LBB0_29
LBB0_21:
	movl	16(%rax), %r9d
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_28
LBB0_22:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.5(%rip), %rdi
LBB0_24:
	xorl	%r13d, %r13d
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_28
LBB0_25:
	movl	4(%rbx), %ebx
	movl	%ebx, %edi
	callq	_hweight32
	leaq	L_.str.6(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	jmp	LBB0_27
LBB0_26:
	movl	4(%rbx), %edi
	callq	_ilog2
	leaq	L_.str.7(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
LBB0_27:
	xorl	%eax, %eax
	callq	_pr_err
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_29:
	movq	-48(%rbp), %rdi
	movl	%r13d, %esi
	callq	_dump_syncmap
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_28
LBB0_32:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_28
LBB0_33:
	movq	-48(%rbp), %rax
	movl	4(%rax), %ebx
	movl	%ebx, %edi
	callq	_hweight32
	movl	%eax, %r15d
	movq	_KSYNCMAP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	movl	(%r14), %r8d
	leaq	L_.str.3(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SHIFT,4,2                      ## @SHIFT
	.comm	_KSYNCMAP,4,2                   ## @KSYNCMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inserting context=%llx (order=%d, idx=%d) did not return leaf (height=%d, prefix=%llx\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Parent (join) of last leaf was not the sync!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Join does not have the expected height, found %d, expected %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Join is not full!, found %x (%d) expected %lx (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Child %d is a not leaf!\n"

L_.str.5:                               ## @.str.5
	.asciz	"Child %d is not attached to us!\n"

L_.str.6:                               ## @.str.6
	.asciz	"Child %d holds more than one id, found %x (%d)\n"

L_.str.7:                               ## @.str.7
	.asciz	"Child %d has wrong seqno idx, found %d, expected %d\n"

	.no_dead_strip	_igt_syncmap_compact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_syncmap_compact
_igt_syncmap_compact:                   ; @igt_syncmap_compact
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x0, sp, #40
	bl	_i915_syncmap_init
Lloh3:
	adrp	x22, _SHIFT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SHIFT@GOTPAGEOFF]
	ldr	w19, [x22]
	cmp	w19, #63
	b.hi	LBB0_20
; %bb.1:
Lloh5:
	adrp	x21, _KSYNCMAP@GOTPAGE
Lloh6:
	ldr	x21, [x21, _KSYNCMAP@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	add	x0, sp, #40
	bl	_check_syncmap_free
	cbnz	w0, LBB0_21
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #0
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_BIT_ULL
	madd	w20, w0, w23, w23
	add	x0, sp, #40
	mov	x1, x20
	mov	w2, #0
	bl	_i915_syncmap_set
	cbnz	w0, LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [sp, #40]
	ldr	w9, [x8]
	cbnz	w9, LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w23, w23, #1
	ldr	w0, [x21]
	cmp	w23, w0
	b.lo	LBB0_5
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	ldr	x8, [sp, #40]
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #8]
	str	x8, [sp, #40]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x8]
	cmp	w9, w19
	b.ne	LBB0_28
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w20, [x8, #4]
	bl	_BIT
	sub	w8, w0, #1
	cmp	w20, w8
	b.ne	LBB0_29
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	cbz	w8, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, #0
LBB0_14:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [sp, #40]
	bl	___sync_child
	ldr	x23, [x0, x20, lsl #3]
	ldr	w8, [x23]
	cbnz	w8, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x23, #8]
	ldr	x9, [sp, #40]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w0, [x23, #4]
	bl	_is_power_of_2
	cbz	w0, LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w24, [x23, #4]
	mov	x0, x20
	bl	_BIT
	cmp	w24, w0
	b.ne	LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=2
	add	x20, x20, #1
	ldr	w8, [x21]
	cmp	x20, x8
	b.lo	LBB0_14
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w1, #0
	ldr	w8, [x22]
	add	w19, w8, w19
	cmp	w19, #64
	b.lo	LBB0_2
	b	LBB0_31
LBB0_20:
	neg	w1, w20
	b	LBB0_31
LBB0_21:
	mov	x1, x0
	b	LBB0_31
LBB0_22:
	ldr	w8, [x8, #16]
	stp	x9, x8, [sp, #24]
	stp	x19, x23, [sp, #8]
	str	x20, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_30
LBB0_23:
	str	x20, [sp]
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_30
LBB0_24:
	str	x20, [sp]
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_30
LBB0_25:
	ldr	w19, [x23, #4]
	mov	x0, x19
	bl	_hweight32
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp, #8]
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.6@PAGE
Lloh14:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_30
LBB0_26:
	ldr	w0, [x23, #4]
	bl	_ilog2
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x20, [sp, #8]
	str	x20, [sp]
Lloh15:
	adrp	x0, l_.str.7@PAGE
Lloh16:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_30
LBB0_27:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_30
LBB0_28:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x9, x19, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_30
LBB0_29:
	ldr	x8, [sp, #40]
	ldr	w19, [x8, #4]
	mov	x0, x19
	bl	_hweight32
	mov	x20, x0
	ldr	w0, [x21]
	bl	_BIT
	sub	w8, w0, #1
	ldr	w9, [x21]
	stp	x8, x9, [sp, #16]
	stp	x19, x20, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_30:
	bl	_pr_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_31:
	ldr	x0, [sp, #40]
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SHIFT,4,2                      ; @SHIFT
	.comm	_KSYNCMAP,4,2                   ; @KSYNCMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inserting context=%llx (order=%d, idx=%d) did not return leaf (height=%d, prefix=%llx\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Parent (join) of last leaf was not the sync!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Join does not have the expected height, found %d, expected %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Join is not full!, found %x (%d) expected %lx (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Child %d is a not leaf!\n"

l_.str.5:                               ; @.str.5
	.asciz	"Child %d is not attached to us!\n"

l_.str.6:                               ; @.str.6
	.asciz	"Child %d holds more than one id, found %x (%d)\n"

l_.str.7:                               ; @.str.7
	.asciz	"Child %d has wrong seqno idx, found %d, expected %d\n"

	.no_dead_strip	_igt_syncmap_compact
.subsections_via_symbols
