	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_snow_get_buffer             ## -- Begin function ff_snow_get_buffer
	.p2align	4, 0x90
_ff_snow_get_buffer:                    ## @ff_snow_get_buffer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	8(%rax), %edi
	callq	_av_codec_is_encoder
	movl	%eax, %r15d
	movq	8(%r14), %rdi
	movl	(%rdi), %ecx
	movl	%ecx, (%r12)
	movl	4(%rdi), %eax
	movl	%eax, 4(%r12)
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_EDGE_WIDTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leal	(%rcx,%rsi,2), %ecx
	movl	%ecx, (%r12)
	movl	(%rdx), %ecx
	leal	(%rax,%rcx,2), %eax
	movl	%eax, 4(%r12)
LBB0_2:
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_ff_get_buffer
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovsl	%ecx, %eax
	js	LBB0_9
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.4:
	movq	16(%r12), %rdx
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_EDGE_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	8(%r12), %r9
	movl	(%r9), %ecx
	imull	%ebx, %ecx
	addl	%ebx, %ecx
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	movq	%rax, (%rdx)
	movq	8(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movb	(%r14), %cl
	movb	4(%r14), %r8b
	movl	%ebx, %esi
	sarl	%cl, %esi
	movl	%r8d, %ecx
	sarl	%cl, %ebx
	movl	$4, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rcx), %edi
	imull	%esi, %edi
	addl	%ebx, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	movq	%rdi, (%rdx,%rcx,2)
	movq	8(%rdx,%rcx,2), %rax
	addq	$4, %rcx
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r12)
	movl	4(%rax), %eax
	movl	%eax, 4(%r12)
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDGE_WIDTH,4,2                 ## @EDGE_WIDTH
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_snow_get_buffer             ; -- Begin function ff_snow_get_buffer
	.p2align	2
_ff_snow_get_buffer:                    ; @ff_snow_get_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #8]
	bl	_av_codec_is_encoder
	mov	x21, x0
	ldr	x0, [x20, #8]
	ldp	w9, w8, [x0]
	stp	w9, w8, [x19]
	cbz	w21, LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, _EDGE_WIDTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EDGE_WIDTH@GOTPAGEOFF]
	ldr	w11, [x10]
	add	w9, w9, w11, lsl #1
	str	w9, [x19]
	ldr	w9, [x10]
	add	w8, w8, w9, lsl #1
	str	w8, [x19, #4]
LBB0_2:
Lloh2:
	adrp	x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_ff_get_buffer
	mov	x8, x0
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	tbnz	w8, #31, LBB0_9
; %bb.3:
	cbz	w21, LBB0_9
; %bb.4:
	ldr	x10, [x19, #16]
	ldr	x8, [x10]
	cbz	x8, LBB0_8
; %bb.5:
Lloh5:
	adrp	x9, _EDGE_WIDTH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EDGE_WIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x9]
	ldr	x12, [x19, #8]
	ldr	w9, [x12]
	madd	w9, w9, w11, w11
	add	x8, x8, w9, sxtw
	str	x8, [x10]
	ldr	x8, [x10, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldp	w9, w13, [x20]
	asr	w9, w11, w9
	asr	w11, w11, w13
	add	x12, x12, #4
	add	x10, x10, #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12], #4
	madd	w13, w13, w9, w11
	add	x8, x8, w13, sxtw
	stur	x8, [x10, #-8]
	ldr	x8, [x10], #8
	cbnz	x8, LBB0_7
LBB0_8:
	mov	w0, #0
	ldr	x8, [x20, #8]
	ldr	d0, [x8]
	str	d0, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EDGE_WIDTH,4,2                 ; @EDGE_WIDTH
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
.subsections_via_symbols
