	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function copy_from_dnn_to_frame
LCPI0_0:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_copy_from_dnn_to_frame:                ## @copy_from_dnn_to_frame
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_AV_PIX_FMT_RGB24@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_AV_PIX_FMT_BGR24@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	%rsi, %r14
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_av_assert0
	movq	(%r14), %rax
	movq	8(%r14), %r14
	movq	_DNN_FLOAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_8
## %bb.1:
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_29
## %bb.2:
	movq	%rbx, %rdx
	movl	12(%rbx), %eax
	xorl	%r15d, %r15d
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r12d
	addl	$3, %r15d
	cmpl	%ecx, %r12d
	jge	LBB0_29
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%eax, %eax
	jle	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rdx), %rcx
	movl	(%rcx), %r14d
	imull	%r12d, %r14d
	addl	%ebx, %r14d
	imull	%r15d, %eax
	cltq
	addq	%rbx, %rax
	movss	(%r13,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	cvttss2si	%xmm0, %edi
	movl	$8, %esi
	callq	_av_clip_uintp2
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rdx), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movss	%xmm0, (%rax,%rcx,4)
	movl	12(%rdx), %eax
	leal	(%rax,%rax,2), %ecx
	incq	%rbx
	cmpl	%ecx, %ebx
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rdx), %ecx
	movq	%r13, %r14
	jmp	LBB0_3
LBB0_8:
	movq	_DNN_UINT8@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_av_assert0
	movl	8(%rbx), %r13d
	testl	%r13d, %r13d
	jle	LBB0_29
## %bb.9:
	movl	12(%rbx), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leal	(%rax,%rax,2), %edi
	cmpl	$2, %edi
	movl	$1, %esi
	cmovgel	%edi, %esi
	movl	%esi, %eax
	andl	$2147483640, %eax               ## imm = 0x7FFFFFF8
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	andq	$-2, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %eax
	andl	$3, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	48(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	12(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	xorl	%r10d, %r10d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r10
	addq	$4, %r15
	addl	%edi, %eax
	cmpq	%r13, %r10
	je	LBB0_29
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
                                        ##     Child Loop BB0_28 Depth 2
	cmpl	$0, -120(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	%eax, %r8
	movq	16(%rbx), %rcx
	movq	24(%rbx), %rdx
	movslq	(%rcx), %r12
	movq	(%rdx), %r9
	cmpl	$8, %esi
	jb	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	(,%r10,4), %rcx
	movl	%edi, %edx
	imull	%r10d, %edx
	movslq	%edx, %rdx
	leaq	(%r14,%rdx,4), %rdx
	imulq	%r12, %rcx
	addq	%r9, %rcx
	subq	%rdx, %rcx
	cmpq	$32, %rcx
	jae	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r11d, %r11d
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r11, %rbx
	notq	%rbx
	addq	%rsi, %rbx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	(%r14,%r8,4), %rcx
	movq	%r15, %rdx
	imulq	%r12, %rdx
	addq	%r9, %rdx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rcx,%r11,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rdx,%r11,4)
	incq	%r11
	decq	%rdi
	jne	LBB0_25
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$3, %rbx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jb	LBB0_10
## %bb.27:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r8,4), %rcx
	imulq	%r15, %r12
	leaq	(%r9,%r12), %rdx
	addq	$12, %rdx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	-12(%rcx,%r11,4), %xmm0         ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -12(%rdx,%r11,4)
	movss	-8(%rcx,%r11,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -8(%rdx,%r11,4)
	movss	-4(%rcx,%r11,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -4(%rdx,%r11,4)
	movss	(%rcx,%r11,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rdx,%r11,4)
	addq	$4, %r11
	cmpq	%r11, %rsi
	jne	LBB0_28
	jmp	LBB0_10
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r8,4), %rcx
	movq	%r15, %rdx
	imulq	%r12, %rdx
	leaq	(%r9,%rdx), %rdi
	addq	$48, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-48(%rcx,%rbx,4), %xmm0
	movups	-32(%rcx,%rbx,4), %xmm1
	movups	%xmm0, -48(%rdi,%rbx,4)
	movups	%xmm1, -32(%rdi,%rbx,4)
	movups	-16(%rcx,%rbx,4), %xmm0
	movups	(%rcx,%rbx,4), %xmm1
	movups	%xmm0, -16(%rdi,%rbx,4)
	movups	%xmm1, (%rdi,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdx
	jne	LBB0_18
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%edi, %ecx
	imull	%r10d, %ecx
	movq	%r10, %rdx
	imulq	%r12, %rdx
	movslq	%ecx, %rcx
	addq	%rbx, %rdx
	addq	%rbx, %rcx
	movups	(%r14,%rcx,4), %xmm0
	movups	16(%r14,%rcx,4), %xmm1
	movups	%xmm0, (%r9,%rdx,4)
	movups	%xmm1, 16(%r9,%rdx,4)
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %r11
	cmpq	%rsi, %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
	jmp	LBB0_23
LBB0_29:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_RGB24,8,3           ## @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_BGR24,8,3           ## @AV_PIX_FMT_BGR24
	.comm	_DNN_FLOAT,8,3                  ## @DNN_FLOAT
	.comm	_DNN_UINT8,8,3                  ## @DNN_UINT8
	.no_dead_strip	_copy_from_dnn_to_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_from_dnn_to_frame
_copy_from_dnn_to_frame:                ; @copy_from_dnn_to_frame
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AV_PIX_FMT_RGB24@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_RGB24@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _AV_PIX_FMT_BGR24@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PIX_FMT_BGR24@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_av_assert0
Lloh6:
	adrp	x8, _DNN_FLOAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DNN_FLOAT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x8]
	ldp	x8, x20, [x20]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.2:
	mov	w21, #0
	mov	w22, #0
	ldr	w8, [x19, #12]
	mov	w23, #1132396544
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	add	w21, w21, #3
	cmp	w22, w9
	b.ge	LBB0_20
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	x24, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	madd	w25, w22, w9, w24
	mul	w8, w21, w8
	add	x8, x24, w8, sxtw
	ldr	s0, [x20, x8, lsl #2]
	fmov	s1, w23
	fmul	s0, s0, s1
	fcvtzs	w0, s0
	mov	w1, #8
	bl	_av_clip_uintp2
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	str	s0, [x8, w25, sxtw #2]
	ldr	w8, [x19, #12]
	add	w9, w8, w8, lsl #1
	add	x24, x24, #1
	cmp	w24, w9
	b.lt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #8]
	b	LBB0_3
LBB0_8:
Lloh9:
	adrp	x9, _DNN_UINT8@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DNN_UINT8@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_av_assert0
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.9:
	mov	x9, #0
	mov	w1, #0
	mov	x10, #0
	ldr	w11, [x19, #12]
	add	w12, w11, w11, lsl #1
	cmp	w12, #1
	csinc	w13, w12, wzr, gt
	and	x14, x13, #0x7ffffff0
	add	x15, x20, #32
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x10, x10, #1
	add	w1, w16, w12
	add	x9, x9, #4
	cmp	x10, x8
	b.eq	LBB0_20
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	sxtw	x16, w1
	cmp	w11, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	x17, x2, [x19, #16]
	ldrsw	x0, [x17]
	ldr	x17, [x2]
	cmp	w13, #16
	b.lo	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	lsl	x2, x10, #2
	mul	w3, w12, w10
	add	x3, x20, w3, sxtw #2
	madd	x2, x2, x0, x17
	sub	x2, x2, x3
	cmp	x2, #64
	b.hs	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x2, #0
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x1, x2, x16
	add	x1, x20, x1, lsl #2
	madd	x0, x10, x0, x2
	add	x17, x17, x0, lsl #2
	sub	x0, x13, x2
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s0, [x1], #4
	str	s0, [x17], #4
	subs	x0, x0, #1
	b.ne	LBB0_16
	b	LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x1, x15, w1, sxtw #2
	madd	x2, x9, x0, x17
	add	x2, x2, #32
	mov	x3, x14
LBB0_18:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x1, #-32]
	ldp	q2, q3, [x1], #64
	stp	q0, q1, [x2, #-32]
	stp	q2, q3, [x2], #64
	subs	x3, x3, #16
	b.ne	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x2, x14
	cmp	x14, x13
	b.eq	LBB0_10
	b	LBB0_15
LBB0_20:
	mov	w0, #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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_RGB24,8,3           ; @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_BGR24,8,3           ; @AV_PIX_FMT_BGR24
	.comm	_DNN_FLOAT,8,3                  ; @DNN_FLOAT
	.comm	_DNN_UINT8,8,3                  ; @DNN_UINT8
	.no_dead_strip	_copy_from_dnn_to_frame
.subsections_via_symbols
