	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_snow_common_init_after_header ## -- Begin function ff_snow_common_init_after_header
	.p2align	4, 0x90
_ff_snow_common_init_after_header:      ## @ff_snow_common_init_after_header
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	cmpl	$0, 60(%rbx)
	jne	LBB0_3
## %bb.1:
	movq	40(%rbx), %rdi
	movq	48(%rbx), %rsi
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_24
## %bb.2:
	movl	60(%rbx), %r14d
	movq	48(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movl	(%r15), %eax
	leal	(%rax,%rax), %esi
	addl	$256, %esi                      ## imm = 0x100
	callq	_FFMAX
	movq	_MB_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leal	(,%rdx,8), %ecx
	subl	%edx, %ecx
	movq	_fail@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_FF_ALLOCZ_ARRAY_OR_GOTO
	movq	48(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movl	(%r15), %eax
	leal	(%rax,%rax), %esi
	addl	$256, %esi                      ## imm = 0x100
	callq	_FFMAX
	movl	(%r13), %ecx
	movq	_HTAPS_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	(%rdx,%rcx,2), %edx
	decl	%edx
	imull	%eax, %edx
	movl	56(%rbx), %esi
	movl	(%r12), %ecx
	movq	%r15, %rdi
	callq	_FF_ALLOC_OR_GOTO
LBB0_3:
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_23
## %bb.4:
	cmpl	$0, (%rbx)
	jle	LBB0_5
## %bb.6:
	xorl	%r14d, %r14d
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	movq	40(%rbx), %rax
	movl	(%rax), %r12d
	movl	4(%rax), %eax
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	36(%rbx), %esi
	movl	%r12d, %edi
	movl	%eax, %r15d
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r12d
	movl	32(%rbx), %esi
	movl	%r15d, %edi
	callq	_AV_CEIL_RSHIFT
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rcx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	shlq	$4, %r14
	movl	%r12d, (%rcx,%r14)
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	%eax, 4(%rcx,%r14)
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, %r11
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	xorl	%r14d, %r14d
	decq	%r11
	setne	%r14b
	leal	1(%r12), %edx
	sarl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	addl	$-2, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	imulq	$56, %r14, %r15
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%rbx), %rcx
	movq	16(%rbx), %r10
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	8(%rcx,%rdx), %r8
	movq	(%r8,%r11,8), %r13
	movq	%r10, 40(%r13,%r15)
	movl	%r11d, (%r13,%r15)
	movl	(%rcx,%rdx), %esi
	movq	%rbx, %r9
	movl	4(%rbx), %ecx
	subl	%r11d, %ecx
	shll	%cl, %esi
	movl	%esi, 4(%r13,%r15)
	movl	%r14d, %ebx
	andl	$1, %ebx
	movl	%ebx, %edi
	xorl	$1, %edi
	addl	%r12d, %edi
	sarl	%edi
	cmpq	$2, %r14
	movl	%eax, %edx
	adcl	$0, %edx
	sarl	%edx
	movl	%edi, 8(%r13,%r15)
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movl	%edx, 12(%r13,%r15)
	movl	%edi, 16(%r13,%r15)
	movq	$0, 20(%r13,%r15)
	movq	%r10, %rcx
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%r10,%rdx), %rcx
	movq	%rcx, 40(%r13,%r15)
	movl	%edx, 20(%r13,%r15)
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=3
	cmpq	$2, %r14
	jb	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=3
	sarl	%esi
	movslq	%esi, %rdx
	addq	%rdx, %rcx
	movq	%rcx, 40(%r13,%r15)
	sarl	%edi
	movl	%edi, 24(%r13,%r15)
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=3
	movl	%eax, %r12d
	movq	24(%r9), %rax
	subq	%r10, %rax
	addq	%rcx, %rax
	movq	%rax, 48(%r13,%r15)
	movq	%r11, %rbx
	testq	%r11, %r11
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%r8,%rax,8), %rax
	addq	%r15, %rax
	movq	%rax, 32(%r13,%r15)
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=3
	leaq	(%r15,%r13), %rdi
	addq	$28, %rdi
	callq	_av_freep
	movl	8(%r13,%r15), %edi
	incl	%edi
	imull	12(%r13,%r15), %edi
	incl	%edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movl	%eax, 28(%r13,%r15)
	testl	%eax, %eax
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=3
	incq	%r14
	addq	$56, %r15
	cmpq	$4, %r14
	movl	%r12d, %eax
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, %r11
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_13
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=2
	incl	%eax
	sarl	%eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r12d
	cmpq	$1, -64(%rbp)                   ## 8-byte Folded Reload
	movq	%r11, %rcx
	jg	LBB0_11
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	movslq	(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r14
	jl	LBB0_7
	jmp	LBB0_24
LBB0_23:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_24
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
	.comm	_MB_SIZE,4,2                    ## @MB_SIZE
	.comm	_fail,4,2                       ## @fail
	.comm	_HTAPS_MAX,4,2                  ## @HTAPS_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pixel format changed\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.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_snow_common_init_after_header ; -- Begin function ff_snow_common_init_after_header
	.p2align	2
_ff_snow_common_init_after_header:      ; @ff_snow_common_init_after_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	ldr	x21, [x0, #16]
	ldr	w8, [x21, #60]
	cbnz	w8, LBB0_3
; %bb.1:
	ldp	x0, x1, [x21, #40]
Lloh0:
	adrp	x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_23
; %bb.2:
	ldr	w20, [x21, #60]
	ldr	x8, [x21, #48]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	ldr	w8, [x19]
	lsl	w8, w8, #1
	add	w1, w8, #256
	bl	_FFMAX
	mov	x2, x0
Lloh3:
	adrp	x22, _MB_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MB_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w9, w8, #3
	sub	w3, w9, w8
Lloh5:
	adrp	x23, _fail@GOTPAGE
Lloh6:
	ldr	x23, [x23, _fail@GOTPAGEOFF]
	ldr	w4, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_FF_ALLOCZ_ARRAY_OR_GOTO
	ldr	x8, [x21, #48]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	ldr	w8, [x19]
	lsl	w8, w8, #1
	add	w1, w8, #256
	bl	_FFMAX
	ldr	w8, [x22]
Lloh7:
	adrp	x9, _HTAPS_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HTAPS_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	add	w8, w9, w8, lsl #1
	sub	w8, w8, #1
	mul	w2, w8, w0
	ldr	w1, [x21, #56]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_FF_ALLOC_OR_GOTO
LBB0_3:
	ldr	x8, [x21, #48]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.4:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.5:
	mov	x22, #0
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x8, [x21, #40]
	ldp	w20, w19, [x8]
	cbz	x22, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x21, #36]
	mov	x0, x20
	bl	_AV_CEIL_RSHIFT
	mov	x20, x0
	ldr	w1, [x21, #32]
	mov	x0, x19
	bl	_AV_CEIL_RSHIFT
	mov	x19, x0
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	add	x8, x8, x22, lsl #4
	stp	w20, w19, [x8]
	ldr	w9, [x21, #4]
	cmp	w9, #1
	b.lt	LBB0_19
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	subs	x26, x9, #1
	cset	w28, ne
	add	w8, w20, #1
	asr	w10, w8, #1
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	sbfx	x8, x8, #1, #31
	stp	x9, x8, [sp, #8]                ; 16-byte Folded Spill
	sub	w25, w9, #2
	mov	w8, #56
	umull	x24, w28, w8
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	x8, x10, [x21, #8]
	add	x11, x8, x22, lsl #4
	ldr	x8, [x11, #8]
	ldr	x9, [x8, x26, lsl #3]
	add	x27, x9, x24
	str	x10, [x27, #40]
	ldr	w11, [x11]
	ldr	w12, [x21, #4]
	sub	w12, w12, w26
	lsl	w11, w11, w12
	stp	w26, w11, [x27]
	mvn	w13, w28
	and	w13, w13, #0x1
	add	w13, w13, w20
	asr	w13, w13, #1
	cmp	x28, #2
	cinc	w14, w19, lo
	asr	w14, w14, #1
	stp	w13, w14, [x27, #8]
	mov	w13, #1
	lsl	w13, w13, w12
	stp	wzr, wzr, [x27, #20]
	str	w13, [x27, #16]
	mov	x12, x10
	tbz	w28, #0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	ldr	x12, [sp, #16]                  ; 8-byte Folded Reload
	add	x12, x10, x12
	str	x12, [x27, #40]
	ldr	w14, [sp, #28]                  ; 4-byte Folded Reload
	str	w14, [x27, #20]
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=3
	cmp	x28, #2
	b.lo	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=3
	asr	w11, w11, #1
	add	x12, x12, w11, sxtw
	str	x12, [x27, #40]
	asr	w11, w13, #1
	str	w11, [x27, #24]
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=3
	ldr	x11, [x21, #24]
	sub	x10, x11, x10
	add	x10, x10, x12
	add	x23, x9, x24
	str	x10, [x23, #48]
	cbz	x26, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=3
	ldr	x8, [x8, x25, lsl #3]
	add	x8, x8, x24
	str	x8, [x23, #32]
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=3
	add	x0, x23, #28
	bl	_av_freep
	ldp	w8, w9, [x27, #8]
	madd	w8, w9, w8, w9
	add	w0, w8, #1
	mov	w1, #4
	bl	_av_mallocz_array
	str	w0, [x23, #28]
	cbz	w0, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=3
	add	x28, x28, #1
	add	x24, x24, #56
	cmp	x24, #224
	b.ne	LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=2
	add	w8, w19, #1
	asr	w19, w8, #1
	ldr	w20, [sp, #28]                  ; 4-byte Folded Reload
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, #1
	mov	x9, x26
	b.gt	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_6
	b	LBB0_23
LBB0_20:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_21:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
	.comm	_MB_SIZE,4,2                    ; @MB_SIZE
	.comm	_fail,4,2                       ; @fail
	.comm	_HTAPS_MAX,4,2                  ; @HTAPS_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pixel format changed\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
