	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_mm_config
_igt_mm_config:                         ## @igt_mm_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_prng@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_RND_STATE
	movq	_i915_selftest@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_prandom_seed_state
	movq	%r12, %rdi
	callq	_i915_prandom_u64_state
	movq	_SZ_8G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	decl	%ebx
	andl	%eax, %ebx
	movq	%r12, %rdi
	callq	_prandom_u32_state
	movl	%eax, %r12d
	movl	%ebx, %edi
	sarl	$12, %edi
	callq	_ilog2
	movl	%eax, %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	leal	12(%rdx), %edi
	callq	_BIT_ULL
	movl	%eax, %r12d
	movl	%eax, %edi
	negl	%edi
	andl	%ebx, %edi
	movl	%eax, %esi
	callq	_max
	movl	%r12d, (%r14)
	movl	%eax, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_prng,4,2                       ## @prng
	.comm	_i915_selftest,4,2              ## @i915_selftest
	.comm	_SZ_8G,4,2                      ## @SZ_8G
	.no_dead_strip	_igt_mm_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_mm_config
_igt_mm_config:                         ; @igt_mm_config
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _prng@GOTPAGE
Lloh1:
	ldr	x21, [x21, _prng@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_RND_STATE
Lloh2:
	adrp	x8, _i915_selftest@GOTPAGE
Lloh3:
	ldr	x8, [x8, _i915_selftest@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_prandom_seed_state
	mov	x0, x21
	bl	_i915_prandom_u64_state
Lloh5:
	adrp	x8, _SZ_8G@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SZ_8G@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sub	w8, w8, #1
	and	w22, w8, w0
	mov	x0, x21
	bl	_prandom_u32_state
	mov	x21, x0
	asr	w0, w22, #12
	bl	_ilog2
	sdiv	w8, w21, w0
	msub	w8, w8, w0, w21
	add	w0, w8, #12
	bl	_BIT_ULL
	mov	x21, x0
	neg	w8, w0
	and	w0, w22, w8
	mov	x1, x21
	bl	_max
	str	w21, [x19]
	str	w0, [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
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_prng,4,2                       ; @prng
	.comm	_i915_selftest,4,2              ; @i915_selftest
	.comm	_SZ_8G,4,2                      ; @SZ_8G
	.no_dead_strip	_igt_mm_config
.subsections_via_symbols
