	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_plane
_allocate_plane:                        ## @allocate_plane
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movslq	%ecx, %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rcx,%r12,4), %edi
	imull	(%rax,%r12,4), %edi
	callq	_av_calloc
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx,%r12,4), %edi
	imull	(%rax,%r12,4), %edi
	movl	%r15d, %esi
	callq	_av_calloc
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	32(%rbx), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_5
## %bb.1:
	movq	24(%rbx), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_5
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx,%r12,4), %edi
	imull	(%rax,%r12,4), %edi
	movl	%r14d, %esi
	callq	_av_calloc
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_allocate_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_plane
_allocate_plane:                        ; @allocate_plane
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	sbfiz	x23, x21, #2, #32
	ldp	x8, x9, [x0]
	ldr	w8, [x8, x23]
	ldr	w9, [x9, x23]
	mul	w0, w9, w8
	bl	_av_calloc
	ldr	x8, [x19, #32]
	sbfiz	x24, x21, #3, #32
	str	x0, [x8, x24]
	ldp	x8, x9, [x19]
	ldr	w8, [x8, x23]
	ldr	w9, [x9, x23]
	mul	w0, w9, w8
	mov	x1, x22
	bl	_av_calloc
	ldr	x8, [x19, #24]
	str	x0, [x8, x24]
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x24]
	cbz	x8, LBB0_5
; %bb.1:
	sxtw	x21, w21
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_5
; %bb.2:
	cbz	w20, LBB0_4
; %bb.3:
	lsl	x8, x21, #2
	ldp	x9, x10, [x19]
	ldr	w9, [x9, x8]
	ldr	w8, [x10, x8]
	mul	w0, w8, w9
	mov	x1, x20
	bl	_av_calloc
	ldr	x8, [x19, #16]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_5
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_allocate_plane
.subsections_via_symbols
