	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_snow_alloc_blocks           ## -- Begin function ff_snow_alloc_blocks
	.p2align	4, 0x90
_ff_snow_alloc_blocks:                  ## @ff_snow_alloc_blocks
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	4(%rax), %edi
	movq	_LOG2_MB_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r14d
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r15d
	movl	%r14d, (%rbx)
	movl	%eax, 4(%rbx)
	movl	12(%rbx), %edi
	callq	_av_free
	imull	%r14d, %r15d
	movb	8(%rbx), %cl
	addb	%cl, %cl
	movl	$4, %esi
	shlq	%cl, %rsi
	movl	%r15d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_av_mallocz_array
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG2_MB_SIZE,4,2               ## @LOG2_MB_SIZE
	.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_alloc_blocks           ; -- Begin function ff_snow_alloc_blocks
	.p2align	2
_ff_snow_alloc_blocks:                  ; @ff_snow_alloc_blocks
	.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, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8, #4]
Lloh0:
	adrp	x21, _LOG2_MB_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LOG2_MB_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_AV_CEIL_RSHIFT
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_AV_CEIL_RSHIFT
	mov	x21, x0
	stp	w20, w0, [x19]
	ldr	w0, [x19, #12]
	bl	_av_free
	mul	w0, w21, w20
	ldr	w8, [x19, #8]
	lsl	w8, w8, #1
	mov	w9, #4
	lsl	x1, x9, x8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_av_mallocz_array
	str	w0, [x19, #12]
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	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
LBB0_2:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG2_MB_SIZE,4,2               ; @LOG2_MB_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
