	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_mm_current_scale
_init_mm_current_scale:                 ## @init_mm_current_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_AAT1290_MAX_MM_CURRENT
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$60, %esi
	callq	_devm_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_AAT1290_MM_CURRENT_SCALE_SIZE@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_2
## %bb.4:
	leaq	_init_mm_current_scale.max_mm_current_percent(%rip), %rsi
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %ecx
	imull	%ebx, %ecx
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movl	%ecx, (%rax,%rdi,4)
	incq	%rdi
	movslq	(%r9), %rcx
	addq	$4, %rsi
	cmpq	%rcx, %rdi
	jl	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	subl	(%rax), %r8d
	jmp	LBB0_6
LBB0_2:
	xorl	%r8d, %r8d
LBB0_6:
	movl	%r8d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @init_mm_current_scale.max_mm_current_percent
_init_mm_current_scale.max_mm_current_percent:
	.long	20                              ## 0x14
	.long	22                              ## 0x16
	.long	25                              ## 0x19
	.long	28                              ## 0x1c
	.long	32                              ## 0x20
	.long	36                              ## 0x24
	.long	40                              ## 0x28
	.long	45                              ## 0x2d
	.long	50                              ## 0x32
	.long	56                              ## 0x38
	.long	63                              ## 0x3f
	.long	71                              ## 0x47
	.long	79                              ## 0x4f
	.long	89                              ## 0x59
	.long	100                             ## 0x64

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AAT1290_MM_CURRENT_SCALE_SIZE,4,2 ## @AAT1290_MM_CURRENT_SCALE_SIZE
	.no_dead_strip	_init_mm_current_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_mm_current_scale
_init_mm_current_scale:                 ; @init_mm_current_scale
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w0, [x1]
	bl	_AAT1290_MAX_MM_CURRENT
	mov	x19, x0
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #60
	bl	_devm_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _AAT1290_MM_CURRENT_SCALE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AAT1290_MM_CURRENT_SCALE_SIZE@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
Lloh5:
	adrp	x10, _init_mm_current_scale.max_mm_current_percent@PAGE
Lloh6:
	add	x10, x10, _init_mm_current_scale.max_mm_current_percent@PAGEOFF
	mov	w11, #34079
	movk	w11, #20971, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	mul	w13, w13, w19
	smull	x13, w13, w11
	lsr	x14, x13, #63
	asr	x13, x13, #37
	add	w13, w13, w14
	str	w13, [x0, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @init_mm_current_scale.max_mm_current_percent
_init_mm_current_scale.max_mm_current_percent:
	.long	20                              ; 0x14
	.long	22                              ; 0x16
	.long	25                              ; 0x19
	.long	28                              ; 0x1c
	.long	32                              ; 0x20
	.long	36                              ; 0x24
	.long	40                              ; 0x28
	.long	45                              ; 0x2d
	.long	50                              ; 0x32
	.long	56                              ; 0x38
	.long	63                              ; 0x3f
	.long	71                              ; 0x47
	.long	79                              ; 0x4f
	.long	89                              ; 0x59
	.long	100                             ; 0x64

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AAT1290_MM_CURRENT_SCALE_SIZE,4,2 ; @AAT1290_MM_CURRENT_SCALE_SIZE
	.no_dead_strip	_init_mm_current_scale
.subsections_via_symbols
