	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_one
_check_one:                             ## @check_one
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_i915_syncmap_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	(%r12), %rax
	movq	24(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movl	16(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_11
LBB0_3:
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_11
LBB0_5:
	movl	(%rax), %edi
	callq	_hweight32
	movq	(%r12), %rbx
	movl	(%rbx), %r13d
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.7:
	movl	%r13d, %edi
	callq	_ilog2
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_check_seqno
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_i915_syncmap_is_later
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	movl	%r14d, %edx
	jmp	LBB0_10
LBB0_6:
	movl	%r13d, %edi
	callq	_hweight32
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r13d, %esi
	movl	%eax, %edx
LBB0_10:
	xorl	%eax, %eax
	callq	_pr_err
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	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	"Inserting first context=%llx did not return leaf (height=%d, prefix=%llx\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Inserting first context=%llx created branches!\n"

L_.str.2:                               ## @.str.2
	.asciz	"First bitmap does not contain a single entry, found %x (count=%d)!\n"

L_.str.3:                               ## @.str.3
	.asciz	"Lookup of first context=%llx/seqno=%x failed!\n"

	.no_dead_strip	_check_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_one
_check_one:                             ; @check_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_i915_syncmap_set
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	w8, [x8, #16]
	stp	x9, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	mov	x1, x19
LBB0_6:
	bl	_pr_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w0, [x8]
	bl	_hweight32
	ldr	x23, [x21]
	ldr	w22, [x23]
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x22
	bl	_ilog2
	mov	x1, x0
	mov	x0, x23
	mov	x2, x20
	bl	_check_seqno
	cbnz	w0, LBB0_7
; %bb.10:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_i915_syncmap_is_later
	cbz	w0, LBB0_13
; %bb.11:
	mov	w0, #0
	b	LBB0_7
LBB0_12:
	mov	x0, x22
	bl	_hweight32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	b	LBB0_6
LBB0_13:
	str	x20, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inserting first context=%llx did not return leaf (height=%d, prefix=%llx\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Inserting first context=%llx created branches!\n"

l_.str.2:                               ; @.str.2
	.asciz	"First bitmap does not contain a single entry, found %x (count=%d)!\n"

l_.str.3:                               ; @.str.3
	.asciz	"Lookup of first context=%llx/seqno=%x failed!\n"

	.no_dead_strip	_check_one
.subsections_via_symbols
