	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_motion_config
_solo_motion_config:                    ## @solo_motion_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	%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
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	movq	_SOLO_MOT_THRESH_SIZE@GOTPCREL(%rip), %r12
	movq	_SOLO_DEF_MOT_THRESH@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SOLO_MOT_FLAG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %esi
	imull	%ebx, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_solo_dma_vin_region
	movl	(%r12), %ecx
	movl	%r15d, %eax
	imull	%ecx, %eax
	movq	_SOLO_MOT_FLAG_AREA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	addl	%ecx, %esi
	addl	%eax, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_solo_dma_vin_region
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_solo_set_motion_threshold
	incl	%ebx
	addl	$2, %r15d
	cmpl	(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	movq	_SOLO_VI_MOT_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_SOLO_VI_MOTION_EN
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_SOLO_MOTION_EXT_ADDR
	sarl	$16, %eax
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_solo_reg_write
	movq	_SOLO_VI_MOT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$3, %edi
	callq	_SOLO_VI_MOTION_FRAME_COUNT
	movl	%eax, %ebx
	movl	4(%r14), %eax
	leal	15(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$4, %edi
	callq	_SOLO_VI_MOTION_SAMPLE_LENGTH
	movl	%eax, %r12d
	movl	$10, %edi
	callq	_SOLO_VI_MOTION_SAMPLE_COUNT
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_solo_reg_write
	movq	_SOLO_VI_MOTION_BORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_solo_reg_write
	movq	_SOLO_VI_MOTION_BAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_solo_reg_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_MOT_FLAG_SIZE,4,2         ## @SOLO_MOT_FLAG_SIZE
	.comm	_SOLO_MOT_FLAG_AREA,4,2         ## @SOLO_MOT_FLAG_AREA
	.comm	_SOLO_MOT_THRESH_SIZE,4,2       ## @SOLO_MOT_THRESH_SIZE
	.comm	_SOLO_DEF_MOT_THRESH,4,2        ## @SOLO_DEF_MOT_THRESH
	.comm	_SOLO_VI_MOT_ADR,4,2            ## @SOLO_VI_MOT_ADR
	.comm	_SOLO_VI_MOT_CTRL,4,2           ## @SOLO_VI_MOT_CTRL
	.comm	_SOLO_VI_MOTION_BORDER,4,2      ## @SOLO_VI_MOTION_BORDER
	.comm	_SOLO_VI_MOTION_BAR,4,2         ## @SOLO_VI_MOTION_BAR
	.no_dead_strip	_solo_motion_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solo_motion_config
_solo_motion_config:                    ; @solo_motion_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, #0
	mov	w20, #0
Lloh0:
	adrp	x22, _SOLO_MOT_FLAG_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SOLO_MOT_FLAG_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _SOLO_MOT_FLAG_AREA@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SOLO_MOT_FLAG_AREA@GOTPAGEOFF]
Lloh4:
	adrp	x24, _SOLO_MOT_THRESH_SIZE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SOLO_MOT_THRESH_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _SOLO_DEF_MOT_THRESH@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SOLO_DEF_MOT_THRESH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x22]
	mul	w1, w3, w20
	mov	x0, x19
	mov	w2, #0
	bl	_solo_dma_vin_region
	ldr	w8, [x23]
	ldr	w3, [x24]
	add	w8, w3, w8
	madd	w1, w21, w3, w8
	mov	x0, x19
	mov	w2, #0
	bl	_solo_dma_vin_region
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	bl	_solo_set_motion_threshold
	add	w20, w20, #1
	ldr	w8, [x19]
	add	w21, w21, #2
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
Lloh8:
	adrp	x8, _SOLO_VI_MOT_ADR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOLO_VI_MOT_ADR@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	w0, #0
	bl	_SOLO_VI_MOTION_EN
	mov	x21, x0
	mov	x0, x19
	bl	_SOLO_MOTION_EXT_ADDR
	orr	w2, w21, w0, asr #16
	mov	x0, x19
	mov	x1, x20
	bl	_solo_reg_write
Lloh11:
	adrp	x8, _SOLO_VI_MOT_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOLO_VI_MOT_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	mov	w0, #3
	bl	_SOLO_VI_MOTION_FRAME_COUNT
	mov	x21, x0
	ldr	w8, [x19, #4]
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #4
	bl	_SOLO_VI_MOTION_SAMPLE_LENGTH
	orr	w21, w0, w21
	mov	w0, #10
	bl	_SOLO_VI_MOTION_SAMPLE_COUNT
	orr	w2, w21, w0
	mov	x0, x19
	mov	x1, x20
	bl	_solo_reg_write
Lloh14:
	adrp	x8, _SOLO_VI_MOTION_BORDER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SOLO_VI_MOTION_BORDER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_solo_reg_write
Lloh17:
	adrp	x8, _SOLO_VI_MOTION_BAR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SOLO_VI_MOTION_BAR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_solo_reg_write
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_MOT_FLAG_SIZE,4,2         ; @SOLO_MOT_FLAG_SIZE
	.comm	_SOLO_MOT_FLAG_AREA,4,2         ; @SOLO_MOT_FLAG_AREA
	.comm	_SOLO_MOT_THRESH_SIZE,4,2       ; @SOLO_MOT_THRESH_SIZE
	.comm	_SOLO_DEF_MOT_THRESH,4,2        ; @SOLO_DEF_MOT_THRESH
	.comm	_SOLO_VI_MOT_ADR,4,2            ; @SOLO_VI_MOT_ADR
	.comm	_SOLO_VI_MOT_CTRL,4,2           ; @SOLO_VI_MOT_CTRL
	.comm	_SOLO_VI_MOTION_BORDER,4,2      ; @SOLO_VI_MOTION_BORDER
	.comm	_SOLO_VI_MOTION_BAR,4,2         ; @SOLO_VI_MOTION_BAR
	.no_dead_strip	_solo_motion_config
.subsections_via_symbols
