	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_set_motion_block          ## -- Begin function solo_set_motion_block
	.p2align	4, 0x90
_solo_set_motion_block:                 ## @solo_set_motion_block
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_SOLO_MOT_FLAG_AREA@GOTPCREL(%rip), %rax
	movq	_SOLO_MOT_THRESH_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %esi
	addl	%esi, %esi
	movslq	%esi, %rcx
	addq	(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$256, %edi                      ## imm = 0x100
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rdi
	movq	_SOLO_MOTION_SZ@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_SOLO_MOTION_EXT_ADDR
	movl	%r14d, %ecx
	shll	$8, %ecx
	addq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%rax, %rcx
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$256, %r8d                      ## imm = 0x100
	xorl	%r9d, %r9d
	callq	_solo_p2m_dma
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	orl	%eax, %r12d
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	movq	%rbx, %rdi
	jge	LBB0_9
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	movq	%rdi, %rbx
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%r14d, %eax
	cltq
	addq	%r12, %rax
	movl	(%r13,%rax,4), %edi
	callq	_cpu_to_le16
	movl	%eax, (%rbx,%r12,4)
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_7
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_2:
	xorl	%r12d, %r12d
LBB0_9:
	callq	_kfree
LBB0_10:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_MOT_FLAG_AREA,8,3         ## @SOLO_MOT_FLAG_AREA
	.comm	_SOLO_MOT_THRESH_SIZE,4,2       ## @SOLO_MOT_THRESH_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SOLO_MOTION_SZ,4,2             ## @SOLO_MOTION_SZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_set_motion_block          ; -- Begin function solo_set_motion_block
	.p2align	2
_solo_set_motion_block:                 ; @solo_set_motion_block
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SOLO_MOT_FLAG_AREA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOLO_MOT_FLAG_AREA@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x8, _SOLO_MOT_THRESH_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOLO_MOT_THRESH_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #256
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh9:
	adrp	x24, _SOLO_MOTION_SZ@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SOLO_MOTION_SZ@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x25, #0
	mov	w22, #0
	mul	w9, w23, w27
	lsl	w9, w9, #1
	add	x23, x26, w9, sxtw
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_SOLO_MOTION_EXT_ADDR
	lsl	w8, w25, #8
	add	x8, x23, x8
	add	x3, x8, x0
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	mov	w4, #256
	mov	w5, #0
	mov	w6, #0
	bl	_solo_p2m_dma
	orr	w22, w0, w22
	add	x25, x25, #1
	ldrsw	x9, [x24]
	mov	x8, x9
	cmp	x25, x9
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	w8, w25, w8
	add	x8, x26, w8, sxtw
	ldr	w0, [x19, x8, lsl #2]
	bl	_cpu_to_le16
	str	w0, [x21, x26, lsl #2]
	add	x26, x26, #1
	ldrsw	x8, [x24]
	cmp	x26, x8
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x21
	bl	_kfree
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_MOT_FLAG_AREA,8,3         ; @SOLO_MOT_FLAG_AREA
	.comm	_SOLO_MOT_THRESH_SIZE,4,2       ; @SOLO_MOT_THRESH_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SOLO_MOTION_SZ,4,2             ; @SOLO_MOTION_SZ
.subsections_via_symbols
