	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expect_insert_in_range_fail
_expect_insert_in_range_fail:           ## @expect_insert_in_range_fail
	.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	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r12d, %r9d
	pushq	$0
	pushq	%r15
	callq	_drm_mm_insert_node_in_range
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%ebx, %eax
	sete	%dil
	callq	_likely
	movl	$1, %r13d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	subl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_4
LBB0_2:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_pr_err
	leaq	-48(%rbp), %rdi
	callq	_drm_mm_remove_node
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"impossible insert succeeded, node %llx + %llu, range [%llx, %llx]\n"

L_.str.1:                               ## @.str.1
	.asciz	"impossible insert failed with wrong error %d [expected %d], size %llu, range [%llx, %llx]\n"

	.no_dead_strip	_expect_insert_in_range_fail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expect_insert_in_range_fail
_expect_insert_in_range_fail:           ; @expect_insert_in_range_fail
	.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, x3
	mov	x19, x2
	mov	x21, x1
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	mov	x5, x19
	mov	x6, x20
	mov	w7, #0
	bl	_drm_mm_insert_node_in_range
	mov	x22, x0
Lloh0:
	adrp	x23, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENOSPC@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w0, w8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	cbz	w22, LBB0_4
; %bb.3:
	ldr	w8, [x23]
	neg	w2, w8
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	str	x20, [sp]
	mov	x1, x22
	mov	x3, x21
	mov	x4, x19
	bl	_pr_err
	b	LBB0_5
LBB0_4:
	ldp	w2, w1, [sp, #8]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	mov	x4, x20
	bl	_pr_err
	add	x0, sp, #8
	bl	_drm_mm_remove_node
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"impossible insert succeeded, node %llx + %llu, range [%llx, %llx]\n"

l_.str.1:                               ; @.str.1
	.asciz	"impossible insert failed with wrong error %d [expected %d], size %llu, range [%llx, %llx]\n"

	.no_dead_strip	_expect_insert_in_range_fail
.subsections_via_symbols
