	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_reshuffle_raw_rgb           ## -- Begin function ff_reshuffle_raw_rgb
	.p2align	4, 0x90
_ff_reshuffle_raw_rgb:                  ## @ff_reshuffle_raw_rgb
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	(%rsi), %rdi
	movl	(%rdx), %eax
	cmpl	$15, %eax
	movl	$16, %ebx
	cmovnel	%eax, %ebx
	cmpl	$8, %ebx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	imull	4(%r13), %ebx
	addl	$7, %ebx
	sarl	$3, %ebx
	movl	8(%r13), %ecx
	imull	%ecx, %ebx
	leal	1024(%rbx), %edx
	movq	%rdi, %r12
	movl	(%rdi), %eax
	movl	$2, %esi
	cmpl	%edx, %eax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	%rdi, %r12
	movl	(%rdi), %eax
	movl	8(%r13), %ecx
LBB0_3:
	movl	$1, %esi
	movl	%eax, %ebx
LBB0_4:
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	8(%r13), %edx
	movl	%edx, %ecx
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	imull	%r15d, %ecx
	xorl	%r15d, %r15d
	cmpl	%ecx, (%r12)
	je	LBB0_14
## %bb.5:
	imull	%r14d, %edx
	cmpl	%edx, %ebx
	jne	LBB0_14
## %bb.6:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_av_packet_alloc
	movq	%rax, -120(%rbp)
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	%rax, %rbx
	movl	8(%r13), %esi
	imull	-48(%rbp), %esi                 ## 4-byte Folded Reload
	movq	%rax, %rdi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_av_packet_copy_props
	testl	%eax, %eax
	js	LBB0_8
## %bb.10:
	cmpl	$0, 8(%r13)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jle	LBB0_13
## %bb.11:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %edi
	subl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	cltq
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movslq	%edi, %rdi
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	subq	%rdi, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	addq	%r13, %rbx
	movq	8(%rsi), %r15
	addq	%r12, %r15
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rdi
	addq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	incq	%r14
	movslq	8(%rdx), %rax
	addq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-96(%rbp), %r13                 ## 8-byte Folded Reload
	cmpq	%rax, %r14
	jl	LBB0_12
LBB0_13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_8:
	movl	%eax, %r15d
	leaq	-120(%rbp), %rdi
	callq	_av_packet_free
LBB0_14:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_reshuffle_raw_rgb           ; -- Begin function ff_reshuffle_raw_rgb
	.p2align	2
_ff_reshuffle_raw_rgb:                  ; @ff_reshuffle_raw_rgb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x27, [x1]
	ldr	w8, [x2]
	mov	w9, #16
	cmp	w8, #15
	csel	w9, w9, w8, eq
	cmp	w9, #8
	b.ne	LBB0_3
; %bb.1:
	orr	w10, wzr, #0x7
	ldp	w11, w8, [x21, #4]
	madd	w9, w9, w11, w10
	asr	w9, w9, #3
	mul	w9, w8, w9
	add	w10, w9, #1024
	ldr	w19, [x27]
	cmp	w19, w10
	b.ne	LBB0_4
; %bb.2:
	mov	w28, #2
	mov	x19, x9
	b	LBB0_5
LBB0_3:
	ldr	w19, [x27]
	ldr	w8, [x21, #8]
LBB0_4:
	mov	w28, #1
LBB0_5:
	sdiv	w23, w19, w8
	mov	x0, x20
	mov	x1, x23
	bl	_FFMIN
	mov	w26, #0
	ldr	w9, [x27]
	ldr	w8, [x21, #8]
	mul	w10, w8, w20
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.6:
	mul	w8, w8, w23
	cmp	w19, w8
	b.ne	LBB0_16
; %bb.7:
	mov	x25, x0
	bl	_av_packet_alloc
	str	x0, [sp, #56]
	cbz	x0, LBB0_14
; %bb.8:
	mov	x24, x0
	ldr	w8, [x21, #8]
	mul	w1, w8, w20
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_15
; %bb.9:
	mov	x0, x24
	mov	x1, x27
	bl	_av_packet_copy_props
	tbnz	w0, #31, LBB0_15
; %bb.10:
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w8, [x21, #8]
	cmp	w8, #1
	str	x20, [sp, #48]                  ; 8-byte Folded Spill
	b.lt	LBB0_13
; %bb.11:
	mov	x28, #0
	mov	x20, #0
	mov	x22, #0
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	sub	w9, w8, w25
	sxtw	x8, w8
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	sub	x8, x8, w9, sxtw
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	sxtw	x25, w23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	add	x26, x28, x8
	ldr	x8, [x27, #8]
	mov	x19, x27
	add	x27, x20, x8
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x23
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x26
	mov	x1, x27
	mov	x27, x19
	bl	_memcpy
	ldr	x8, [x24, #8]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x9, x9, x28
	add	x0, x9, x8
	mov	w1, #0
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	bl	_memset
	add	x22, x22, #1
	ldrsw	x8, [x21, #8]
	add	x20, x20, x25
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x28, x28, x9
	cmp	x22, x8
	b.lt	LBB0_12
LBB0_13:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x24, [x8]
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_16
LBB0_14:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_AVERROR
LBB0_15:
	mov	x26, x0
	add	x0, sp, #56
	bl	_av_packet_free
LBB0_16:
	mov	x0, x26
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
