	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mm_remove_node             ## -- Begin function drm_mm_remove_node
	.p2align	4, 0x90
_drm_mm_remove_node:                    ## @drm_mm_remove_node
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_DRM_MM_BUG_ON
	movl	4(%rbx), %edi
	callq	_DRM_MM_BUG_ON
	movq	_node_list@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_list_prev_entry
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_drm_mm_hole_follows
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rm_hole
LBB0_2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drm_mm_interval_tree_remove
	leaq	8(%rbx), %rdi
	callq	_list_del
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_drm_mm_hole_follows
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_rm_hole
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_hole                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_node_list,4,2                  ## @node_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mm_remove_node             ; -- Begin function drm_mm_remove_node
	.p2align	2
_drm_mm_remove_node:                    ; @drm_mm_remove_node
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	w8, [x0]
	cmp	w8, #0
	cset	w0, eq
	bl	_DRM_MM_BUG_ON
	ldr	w0, [x19, #4]
	bl	_DRM_MM_BUG_ON
Lloh0:
	adrp	x8, _node_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _node_list@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_list_prev_entry
	mov	x20, x0
	mov	x0, x19
	bl	_drm_mm_hole_follows
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rm_hole
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_mm_interval_tree_remove
	add	x0, x19, #8
	bl	_list_del
	str	wzr, [x19]
	mov	x0, x20
	bl	_drm_mm_hole_follows
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_rm_hole
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_add_hole
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_node_list,4,2                  ; @node_list
.subsections_via_symbols
