	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp500_se_set_scaling_coeffs
_malidp500_se_set_scaling_coeffs:       ## @malidp500_se_set_scaling_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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r12
	movq	8(%rsi), %r13
	movq	_dp500_se_scaling_coeffs@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ARRAY_SIZE
	movl	$1, %edi
	cmpq	%rax, %r12
	jg	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpq	%rax, %r13
	setg	%dil
LBB0_2:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_4:
	leaq	-1(%r13), %rcx
	cmpq	%r13, %r12
	jne	LBB0_8
## %bb.5:
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	cmpq	8(%r15), %rax
	je	LBB0_10
LBB0_7:
	movq	_MALIDP_SE_V_COEFFTAB@GOTPCREL(%rip), %rax
	movq	_MALIDP_SE_H_COEFFTAB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_8:
	movq	8(%rbx), %rax
	cmpq	8(%r15), %rax
	je	LBB0_10
## %bb.9:
	movq	_MALIDP_SE_V_COEFFTAB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_malidp500_se_write_pp_coefftab
LBB0_10:
	movq	(%rbx), %rax
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	je	LBB0_13
## %bb.11:
	decq	%r12
	movq	_MALIDP_SE_H_COEFFTAB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	%r12, %rcx
LBB0_12:
	callq	_malidp500_se_write_pp_coefftab
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dp500_se_scaling_coeffs,4,2    ## @dp500_se_scaling_coeffs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MALIDP_SE_V_COEFFTAB,4,2       ## @MALIDP_SE_V_COEFFTAB
	.comm	_MALIDP_SE_H_COEFFTAB,4,2       ## @MALIDP_SE_H_COEFFTAB
	.no_dead_strip	_malidp500_se_set_scaling_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp500_se_set_scaling_coeffs
_malidp500_se_set_scaling_coeffs:       ; @malidp500_se_set_scaling_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x22, x23, [x1]
Lloh0:
	adrp	x24, _dp500_se_scaling_coeffs@GOTPAGE
Lloh1:
	ldr	x24, [x24, _dp500_se_scaling_coeffs@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_ARRAY_SIZE
	cmp	x22, x0
	b.le	LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_3:
	ldr	w0, [x24]
	bl	_ARRAY_SIZE
	cmp	x23, x0
	cset	w0, gt
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	sub	x3, x23, #1
	cmp	x22, x23
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x21]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _MALIDP_SE_V_COEFFTAB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MALIDP_SE_V_COEFFTAB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MALIDP_SE_H_COEFFTAB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MALIDP_SE_H_COEFFTAB@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	b	LBB0_12
LBB0_8:
	ldr	x8, [x21, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh11:
	adrp	x8, _MALIDP_SE_V_COEFFTAB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MALIDP_SE_V_COEFFTAB@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_malidp500_se_write_pp_coefftab
LBB0_10:
	ldr	x8, [x21]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.11:
	sub	x3, x22, #1
Lloh14:
	adrp	x8, _MALIDP_SE_H_COEFFTAB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MALIDP_SE_H_COEFFTAB@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
LBB0_12:
	mov	x0, x19
	mov	w2, #0
	bl	_malidp500_se_write_pp_coefftab
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_dp500_se_scaling_coeffs,4,2    ; @dp500_se_scaling_coeffs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MALIDP_SE_V_COEFFTAB,4,2       ; @MALIDP_SE_V_COEFFTAB
	.comm	_MALIDP_SE_H_COEFFTAB,4,2       ; @MALIDP_SE_H_COEFFTAB
	.no_dead_strip	_malidp500_se_set_scaling_coeffs
.subsections_via_symbols
