	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_init
_igt_init:                              ## @igt_init
	.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
	movq	_EINVAL@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	subl	(%r15), %r14d
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_drm_mm_initialized
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_17
LBB0_2:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_drm_mm_init
	movq	%rbx, %rdi
	callq	_drm_mm_initialized
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	-40(%rbp), %rdi
	callq	_drm_mm_clean
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	leaq	-40(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_assert_one_hole
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	$0, -48(%rbp)
	movl	$4096, -56(%rbp)                ## imm = 0x1000
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_drm_mm_reserve_node
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	callq	_pr_err
	testl	%r14d, %r14d
	je	LBB0_10
LBB0_15:
	leaq	-40(%rbp), %rdi
	callq	_show_mm
	jmp	LBB0_16
LBB0_11:
	leaq	-40(%rbp), %rdi
	callq	_assert_no_holes
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	-56(%rbp), %rdi
	callq	_drm_mm_remove_node
	leaq	-40(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_assert_one_hole
	testl	%eax, %eax
	jne	LBB0_16
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	subl	(%r15), %r14d
	testl	%r14d, %r14d
	jne	LBB0_15
LBB0_10:
	xorl	%r14d, %r14d
LBB0_16:
	leaq	-40(%rbp), %rdi
	callq	_drm_mm_takedown
LBB0_17:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zeroed mm claims to be initialized\n"

L_.str.1:                               ## @.str.1
	.asciz	"mm claims not to be initialized\n"

L_.str.2:                               ## @.str.2
	.asciz	"mm not empty on creation\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to reserve whole drm_mm\n"

	.no_dead_strip	_igt_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_init
_igt_init:                              ; @igt_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _EINVAL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x20]
	neg	w19, w8
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #16
	bl	_drm_mm_initialized
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_14
LBB0_2:
	add	x0, sp, #16
	mov	w1, #255
	mov	w2, #16
	bl	_memset
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #4096
	bl	_drm_mm_init
	add	x0, sp, #16
	bl	_drm_mm_initialized
	cbz	x0, LBB0_7
; %bb.3:
	add	x0, sp, #16
	bl	_drm_mm_clean
	cbz	w0, LBB0_8
; %bb.4:
	mov	w19, #4096
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #4096
	bl	_assert_one_hole
	cbz	w0, LBB0_11
; %bb.5:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	xzr, [sp, #8]
	str	w19, [sp]
	add	x0, sp, #16
	mov	x1, sp
	bl	_drm_mm_reserve_node
	cbz	w0, LBB0_9
; %bb.6:
	mov	x19, x0
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_12
LBB0_7:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	cbnz	w19, LBB0_12
	b	LBB0_13
LBB0_8:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	cbnz	w19, LBB0_12
	b	LBB0_13
LBB0_9:
	add	x0, sp, #16
	bl	_assert_no_holes
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, sp
	bl	_drm_mm_remove_node
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #4096
	bl	_assert_one_hole
	mov	w19, #0
	cbnz	w0, LBB0_13
LBB0_11:
	ldr	w8, [x20]
	neg	w19, w8
	cbz	w19, LBB0_13
LBB0_12:
	add	x0, sp, #16
	bl	_show_mm
LBB0_13:
	add	x0, sp, #16
	bl	_drm_mm_takedown
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zeroed mm claims to be initialized\n"

l_.str.1:                               ; @.str.1
	.asciz	"mm claims not to be initialized\n"

l_.str.2:                               ; @.str.2
	.asciz	"mm not empty on creation\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to reserve whole drm_mm\n"

	.no_dead_strip	_igt_init
.subsections_via_symbols
