	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mm_scan_init_with_range    ## -- Begin function drm_mm_scan_init_with_range
	.p2align	4, 0x90
_drm_mm_scan_init_with_range:           ## @drm_mm_scan_init_with_range
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	16(%rbp), %rbx
	xorl	%r12d, %r12d
	subq	%r9, %rbx
	setle	%r12b
	movl	%r12d, %edi
	callq	_DRM_MM_BUG_ON
	testq	%r15, %r15
	sete	%al
	cmpq	%r15, %rbx
	setl	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_DRM_MM_BUG_ON
	movl	(%r14), %edi
	callq	_DRM_MM_BUG_ON
	movq	%r14, 72(%r13)
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$2, %rax
	cmovgeq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	movq	%rbx, 64(%r13)
	movq	%rbx, %rdi
	callq	_is_power_of_2
	decq	%rbx
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	movq	%rbx, 56(%r13)
	movq	%r15, 48(%r13)
	movl	24(%rbp), %eax
	movl	%eax, 8(%r13)
	movl	%r12d, %edi
	callq	_DRM_MM_BUG_ON
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r13)
	movq	16(%rbp), %rax
	movq	%rax, 32(%r13)
	movq	_U64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	$0, 16(%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U64_MAX,4,2                    ## @U64_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mm_scan_init_with_range    ; -- Begin function drm_mm_scan_init_with_range
	.p2align	2
_drm_mm_scan_init_with_range:           ; @drm_mm_scan_init_with_range
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	subs	x28, x6, x5
	cset	w27, le
	mov	x0, x27
	bl	_DRM_MM_BUG_ON
	cmp	x24, #0
	ccmp	x28, x24, #8, ne
	cset	w0, lt
	bl	_DRM_MM_BUG_ON
	ldr	w0, [x25]
	bl	_DRM_MM_BUG_ON
	str	x22, [x26]
	cmp	x23, #2
	csel	x22, xzr, x23, lt
	stp	x22, x25, [x26, #64]
	mov	x0, x22
	bl	_is_power_of_2
	sub	x8, x22, #1
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	stp	x24, x8, [x26, #48]
	str	w19, [x26, #8]
	mov	x0, x27
	bl	_DRM_MM_BUG_ON
	stp	x20, x21, [x26, #32]
Lloh0:
	adrp	x8, _U64_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _U64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x26, #24]
	str	xzr, [x26, #16]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_U64_MAX,4,2                    ; @U64_MAX
.subsections_via_symbols
