	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __igt_once
___igt_once:                            ## @__igt_once
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_drm_mm_init
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_mm_reserve_node
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_2
LBB0_3:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movabsq	$4294967301, %rax               ## imm = 0x100000005
	movq	%rax, -48(%rbp)
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_drm_mm_reserve_node
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_5
LBB0_6:
	leaq	-56(%rbp), %rdi
	callq	_drm_mm_hole_follows
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	-48(%rbp), %rdi
	callq	_drm_mm_hole_follows
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	leaq	-40(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_DRM_MM_INSERT_ONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	orl	%r14d, %r9d
	leaq	-32(%rbp), %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_drm_mm_insert_node_generic
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	callq	_drm_mm_insert_node_generic
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_11:
	movl	-40(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	leaq	-40(%rbp), %rdi
	callq	_drm_mm_remove_node
LBB0_13:
	leaq	-48(%rbp), %rdi
	callq	_drm_mm_remove_node
LBB0_5:
	leaq	-56(%rbp), %rdi
	callq	_drm_mm_remove_node
LBB0_2:
	leaq	-32(%rbp), %rdi
	callq	_drm_mm_takedown
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not reserve low node\n"

L_.str.1:                               ## @.str.1
	.asciz	"Expected a hole after lo and high nodes!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MM_INSERT_ONCE,4,2         ## @DRM_MM_INSERT_ONCE
L_.str.2:                               ## @.str.2
	.asciz	"Unexpectedly inserted the node into the wrong hole: node.start=%llx\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not insert the node into the available hole!\n"

	.no_dead_strip	___igt_once
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function __igt_once
lCPI0_0:
	.long	5                               ; 0x5
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___igt_once:                            ; @__igt_once
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	sub	x0, x29, #24
	mov	w1, #0
	mov	w2, #7
	bl	_drm_mm_init
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	movi.2s	v0, #1
	str	d0, [sp, #32]
	sub	x0, x29, #24
	add	x1, sp, #32
	bl	_drm_mm_reserve_node
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_16
LBB0_2:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	sub	x0, x29, #24
	add	x1, sp, #24
	bl	_drm_mm_reserve_node
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_15
LBB0_4:
	add	x0, sp, #32
	bl	_drm_mm_hole_follows
	cbz	w0, LBB0_9
; %bb.5:
	add	x0, sp, #24
	bl	_drm_mm_hole_follows
	cbz	w0, LBB0_9
; %bb.6:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh6:
	adrp	x8, _DRM_MM_INSERT_ONCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MM_INSERT_ONCE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w5, w8, w19
	sub	x0, x29, #24
	add	x1, sp, #16
	mov	w2, #2
	mov	w3, #0
	mov	w4, #0
	bl	_drm_mm_insert_node_generic
	cbz	w0, LBB0_11
; %bb.7:
	sub	x0, x29, #24
	add	x1, sp, #16
	mov	w2, #2
	mov	w3, #0
	mov	w4, #0
	mov	x5, x19
	bl	_drm_mm_insert_node_generic
	cbz	w0, LBB0_12
; %bb.8:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_pr_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_11:
	ldr	w8, [sp, #16]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_12:
	mov	w20, #0
LBB0_13:
	add	x0, sp, #16
	bl	_drm_mm_remove_node
LBB0_14:
	add	x0, sp, #24
	bl	_drm_mm_remove_node
LBB0_15:
	add	x0, sp, #32
	bl	_drm_mm_remove_node
LBB0_16:
	sub	x0, x29, #24
	bl	_drm_mm_takedown
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not reserve low node\n"

l_.str.1:                               ; @.str.1
	.asciz	"Expected a hole after lo and high nodes!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MM_INSERT_ONCE,4,2         ; @DRM_MM_INSERT_ONCE
l_.str.2:                               ; @.str.2
	.asciz	"Unexpectedly inserted the node into the wrong hole: node.start=%llx\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not insert the node into the available hole!\n"

	.no_dead_strip	___igt_once
.subsections_via_symbols
