	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_mm_insert_helper
_drm_mm_insert_helper:                  ## @drm_mm_insert_helper
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	40(%rdi), %r13
	callq	_drm_mm_hole_node_start
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_drm_mm_hole_node_end
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)
	movl	(%rbx), %edi
	callq	_BUG_ON
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*%rax
LBB0_2:
	movq	-48(%rbp), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testl	%edi, %edi
	je	LBB0_3
## %bb.4:
	movl	%edi, %esi
	movq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_7
LBB0_3:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rcx
	je	LBB0_11
	jmp	LBB0_12
LBB0_5:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:
	testl	%edx, %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	subl	%edx, %edi
	addq	%rdi, %rcx
	movq	%rcx, -48(%rbp)
LBB0_9:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	%rax, %rcx
	jne	LBB0_12
LBB0_11:
	movl	$0, 4(%r12)
	leaq	32(%r12), %rdi
	callq	_list_del
	movq	-48(%rbp), %rcx
LBB0_12:
	movq	%rcx, 8(%rbx)
	movq	%r15, 16(%rbx)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 40(%rbx)
	movq	%r14, 24(%rbx)
	movl	$1, (%rbx)
	leaq	32(%rbx), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%rbx), %rdi
	addq	$36, %r12
	movq	%r12, %rsi
	callq	_list_add
	movq	16(%rbx), %rax
	addq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	-72(%rbp), %rax
	seta	%dil
	callq	_BUG_ON
	movl	$0, 4(%rbx)
	movq	%rbx, %rdi
	callq	___drm_mm_hole_node_start
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_list_add
	movl	$1, 4(%rbx)
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_drm_mm_insert_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_mm_insert_helper
_drm_mm_insert_helper:                  ; @drm_mm_insert_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x26, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x20, [x0, #40]
	bl	_drm_mm_hole_node_start
	mov	x25, x0
	mov	x0, x22
	bl	_drm_mm_hole_node_end
	mov	x21, x0
	stp	x0, x25, [sp]
	ldr	w0, [x19]
	bl	_BUG_ON
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x22
	mov	x1, x23
	blr	x8
LBB0_2:
	ldr	x8, [sp, #8]
	cbz	w26, LBB0_5
; %bb.3:
	mov	w9, w26
	udiv	x9, x8, x9
	msub	w9, w9, w26, w8
	cbz	w9, LBB0_5
; %bb.4:
	sub	w9, w26, w9
	add	x8, x8, x9
	str	x8, [sp, #8]
LBB0_5:
	cmp	x8, x25
	b.ne	LBB0_7
; %bb.6:
	str	wzr, [x22, #4]
	add	x0, x22, #32
	bl	_list_del
	ldr	x8, [sp, #8]
LBB0_7:
	stp	x8, x24, [x19, #8]
	str	x20, [x19, #40]
	str	x23, [x19, #24]
	mov	w24, #1
	add	x23, x19, #32
	str	w24, [x19]
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	add	x1, x22, #36
	bl	_list_add
	ldp	x8, x9, [x19, #8]
	ldr	x10, [sp]
	add	x8, x9, x8
	cmp	x8, x10
	cset	w0, hi
	bl	_BUG_ON
	str	wzr, [x19, #4]
	mov	x0, x19
	bl	___drm_mm_hole_node_start
	cmp	x0, x21
	b.hs	LBB0_9
; %bb.8:
	mov	x0, x23
	mov	x1, x20
	bl	_list_add
	str	w24, [x19, #4]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_drm_mm_insert_helper
.subsections_via_symbols
