	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_se_set_enh_coeffs
_malidp_se_set_enh_coeffs:              ## @malidp_se_set_enh_coeffs
	.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	%rdi, %r14
	movq	_MALIDP_SE_ENH_LOW_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MALIDP_SE_SET_ENH_LIMIT_LOW
	movl	%eax, %ebx
	movq	_MALIDP_SE_ENH_HIGH_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MALIDP_SE_SET_ENH_LIMIT_HIGH
	orl	%eax, %ebx
	movq	(%r14), %rax
	movq	_MALIDP_REGMAP_HAS_CLEARIRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	4(%rax), %ecx
	setne	%dl
	movq	_MALIDP_SE_IMAGE_ENH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	leal	(%rcx,%rdx,4), %r15d
	addl	$12, %r15d
	movq	_MALIDP_SE_ENH_COEFF0@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_malidp_hw_write
	leaq	_malidp_se_set_enh_coeffs.enhancer_coeffs(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	addl	%r13d, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r12), %esi
	leal	(%r15,%rbx), %edx
	movq	%r14, %rdi
	callq	_malidp_hw_write
	incq	%r13
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @malidp_se_set_enh_coeffs.enhancer_coeffs
_malidp_se_set_enh_coeffs.enhancer_coeffs:
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	128                             ## 0x80
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8

	.comm	_MALIDP_SE_ENH_LOW_LEVEL,4,2    ## @MALIDP_SE_ENH_LOW_LEVEL
	.comm	_MALIDP_SE_ENH_HIGH_LEVEL,4,2   ## @MALIDP_SE_ENH_HIGH_LEVEL
	.comm	_MALIDP_REGMAP_HAS_CLEARIRQ,4,2 ## @MALIDP_REGMAP_HAS_CLEARIRQ
	.comm	_MALIDP_SE_IMAGE_ENH,4,2        ## @MALIDP_SE_IMAGE_ENH
	.comm	_MALIDP_SE_ENH_COEFF0,4,2       ## @MALIDP_SE_ENH_COEFF0
	.no_dead_strip	_malidp_se_set_enh_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_se_set_enh_coeffs
_malidp_se_set_enh_coeffs:              ; @malidp_se_set_enh_coeffs
	.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	x19, x0
Lloh0:
	adrp	x8, _MALIDP_SE_ENH_LOW_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MALIDP_SE_ENH_LOW_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MALIDP_SE_SET_ENH_LIMIT_LOW
	mov	x20, x0
Lloh3:
	adrp	x8, _MALIDP_SE_ENH_HIGH_LEVEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MALIDP_SE_ENH_HIGH_LEVEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MALIDP_SE_SET_ENH_LIMIT_HIGH
	orr	w1, w0, w20
	ldr	x8, [x19]
	ldp	w9, w8, [x8]
Lloh6:
	adrp	x10, _MALIDP_REGMAP_HAS_CLEARIRQ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MALIDP_REGMAP_HAS_CLEARIRQ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	mov	w8, #16
	mov	w10, #12
	csel	w8, w10, w8, eq
Lloh9:
	adrp	x10, _MALIDP_SE_IMAGE_ENH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MALIDP_SE_IMAGE_ENH@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	add	w9, w10, w9
	add	w21, w9, w8
Lloh12:
	adrp	x8, _MALIDP_SE_ENH_COEFF0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MALIDP_SE_ENH_COEFF0@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_malidp_hw_write
Lloh15:
	adrp	x20, _malidp_se_set_enh_coeffs.enhancer_coeffs@PAGE
Lloh16:
	add	x20, x20, _malidp_se_set_enh_coeffs.enhancer_coeffs@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	add	w21, w21, w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, x22, lsl #2]
	mov	x0, x19
	mov	x2, x21
	bl	_malidp_hw_write
	add	x22, x22, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	w21, w21, #4
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	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 AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @malidp_se_set_enh_coeffs.enhancer_coeffs
_malidp_se_set_enh_coeffs.enhancer_coeffs:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967288                      ; 0xfffffff8
	.long	4294967288                      ; 0xfffffff8
	.long	4294967288                      ; 0xfffffff8
	.long	128                             ; 0x80
	.long	4294967288                      ; 0xfffffff8
	.long	4294967288                      ; 0xfffffff8
	.long	4294967288                      ; 0xfffffff8
	.long	4294967288                      ; 0xfffffff8

	.comm	_MALIDP_SE_ENH_LOW_LEVEL,4,2    ; @MALIDP_SE_ENH_LOW_LEVEL
	.comm	_MALIDP_SE_ENH_HIGH_LEVEL,4,2   ; @MALIDP_SE_ENH_HIGH_LEVEL
	.comm	_MALIDP_REGMAP_HAS_CLEARIRQ,4,2 ; @MALIDP_REGMAP_HAS_CLEARIRQ
	.comm	_MALIDP_SE_IMAGE_ENH,4,2        ; @MALIDP_SE_IMAGE_ENH
	.comm	_MALIDP_SE_ENH_COEFF0,4,2       ; @MALIDP_SE_ENH_COEFF0
	.no_dead_strip	_malidp_se_set_enh_coeffs
.subsections_via_symbols
