	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mm_scan_remove_block       ## -- Begin function drm_mm_scan_remove_block
	.p2align	4, 0x90
_drm_mm_scan_remove_block:              ## @drm_mm_scan_remove_block
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	32(%rsi), %rax
	xorl	%edi, %edi
	cmpq	16(%r14), %rax
	setne	%dil
	callq	_DRM_MM_BUG_ON
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_DRM_MM_BUG_ON
	movl	$0, (%rbx)
	movq	32(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_DRM_MM_BUG_ON
	movq	32(%rbx), %rax
	decl	(%rax)
	movq	_node_list@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_list_prev_entry
	movq	%rax, %r15
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_list_next_entry
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_list_next_entry
	xorl	%edi, %edi
	cmpq	%rax, %r12
	setne	%dil
	callq	_DRM_MM_BUG_ON
	leaq	24(%rbx), %rdi
	addq	$24, %r15
	movq	%r15, %rsi
	callq	_list_add
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	addq	%rcx, %rdx
	xorl	%eax, %eax
	cmpq	(%r14), %rdx
	jle	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpq	8(%r14), %rcx
	setl	%al
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_scan_remove_block       ; -- Begin function drm_mm_scan_remove_block
	.p2align	2
_drm_mm_scan_remove_block:              ; @drm_mm_scan_remove_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #32]
	ldr	x9, [x0, #16]
	cmp	x8, x9
	cset	w0, ne
	bl	_DRM_MM_BUG_ON
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
	bl	_DRM_MM_BUG_ON
	str	wzr, [x20]
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_DRM_MM_BUG_ON
	ldr	x8, [x20, #32]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh0:
	adrp	x23, _node_list@GOTPAGE
Lloh1:
	ldr	x23, [x23, _node_list@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_list_prev_entry
	mov	x21, x0
	ldr	w1, [x23]
	bl	_list_next_entry
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x20
	bl	_list_next_entry
	cmp	x22, x0
	cset	w0, ne
	bl	_DRM_MM_BUG_ON
	add	x0, x20, #24
	add	x1, x21, #24
	bl	_list_add
	mov	w0, #0
	ldp	x8, x9, [x20, #8]
	ldr	x10, [x19]
	add	x9, x9, x8
	cmp	x9, x10
	b.le	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	cset	w0, lt
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_node_list,4,2                  ; @node_list
.subsections_via_symbols
