	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_debug
_igt_debug:                             ## @igt_debug
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_drm_mm_init
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movabsq	$4398046511616, %rax            ## imm = 0x40000000200
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_mm_reserve_node
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_2:
	leaq	-40(%rbp), %rsi
	movabsq	$4398046513664, %rax            ## imm = 0x40000000A00
	movq	%rax, -40(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_drm_mm_reserve_node
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_4:
	leaq	-56(%rbp), %rdi
	callq	_show_mm
	xorl	%ebx, %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to reserve node[0] {start=%lld, size=%lld)\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to reserve node[1] {start=%lld, size=%lld)\n"

	.no_dead_strip	_igt_debug
.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_debug
lCPI0_0:
	.long	512                             ; 0x200
	.long	1024                            ; 0x400
lCPI0_1:
	.long	2560                            ; 0xa00
	.long	1024                            ; 0x400
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_igt_debug:                             ; @igt_debug
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4096
	bl	_drm_mm_init
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	mov	x0, sp
	add	x1, sp, #8
	bl	_drm_mm_reserve_node
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldp	w1, w2, [sp, #8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_5
LBB0_2:
	add	x1, x20, #8
Lloh7:
	adrp	x8, lCPI0_1@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #16]
	mov	x0, sp
	bl	_drm_mm_reserve_node
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldp	w1, w2, [sp, #16]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_5
LBB0_4:
	mov	x0, sp
	bl	_show_mm
LBB0_5:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to reserve node[0] {start=%lld, size=%lld)\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to reserve node[1] {start=%lld, size=%lld)\n"

	.no_dead_strip	_igt_debug
.subsections_via_symbols
