	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function StdMemAllocator_Alloc
_StdMemAllocator_Alloc:                 ## @StdMemAllocator_Alloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_StdMemAllocator_from_IMemAllocator
	movq	%rax, %r13
	movq	$0, -56(%rbp)
	movq	%rax, %rdi
	callq	_list_empty
	movl	%eax, %edi
	callq	_assert
	leaq	-48(%rbp), %rdi
	callq	_GetSystemInfo
	movl	-48(%rbp), %eax
	cltd
	idivl	4(%r13)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_VFW_E_BADALIGN@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	12(%r13), %esi
	addl	8(%r13), %esi
	imull	16(%r13), %esi
	movq	_MEM_COMMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAGE_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_VirtualAlloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	16(%r13), %ebx
	movq	_S_OK@GOTPCREL(%rip), %rcx
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.5:
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r12d
	leal	-1(%r12), %ebx
	movl	8(%r13), %esi
	movslq	12(%r13), %rcx
	leal	(%rcx,%rsi), %edx
	imull	%ebx, %edx
	movslq	%edx, %rdx
	leaq	(%rax,%rdx,4), %rax
	leaq	(%rax,%rcx,4), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_StdMediaSample2_Construct
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_list_add_head
	cmpl	$2, %r12d
	jl	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r13), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_S_OK@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_VFW_E_BADALIGN,4,2             ## @VFW_E_BADALIGN
	.comm	_MEM_COMMIT,4,2                 ## @MEM_COMMIT
	.comm	_PAGE_READWRITE,4,2             ## @PAGE_READWRITE
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_StdMemAllocator_Alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function StdMemAllocator_Alloc
_StdMemAllocator_Alloc:                 ; @StdMemAllocator_Alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_StdMemAllocator_from_IMemAllocator
	mov	x20, x0
	str	xzr, [sp, #8]
	bl	_list_empty
	bl	_assert
	mov	x0, sp
	bl	_GetSystemInfo
	ldr	w8, [sp]
	ldr	w9, [x20, #4]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x22, _VFW_E_BADALIGN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VFW_E_BADALIGN@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x22]
	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
	add	sp, sp, #64
	ret
LBB0_3:
	ldp	w8, w9, [x20, #8]
	add	w8, w9, w8
	ldr	w9, [x20, #16]
	mul	w1, w8, w9
Lloh2:
	adrp	x8, _MEM_COMMIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEM_COMMIT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _PAGE_READWRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_READWRITE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_VirtualAlloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w21, [x20, #16]
	subs	w8, w21, #1
	b.lt	LBB0_8
; %bb.5:
	ldp	w1, w9, [x20, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	w10, w9, w1
	mul	w8, w10, w8
	add	x8, x0, w8, sxtw #2
	add	x0, x8, x9, lsl #2
	add	x3, sp, #8
	mov	x2, x19
	bl	_StdMediaSample2_Construct
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_list_add_head
Lloh8:
	adrp	x22, _S_OK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _S_OK@GOTPAGEOFF]
	cmp	w21, #1
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	sub	w9, w21, #2
	ldp	w1, w10, [x20, #8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	w11, w10, w1
	mul	w9, w11, w9
	add	x8, x8, w9, sxtw #2
	add	x0, x8, x10, lsl #2
	add	x3, sp, #8
	mov	x2, x19
	bl	_StdMediaSample2_Construct
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_list_add_head
	sub	w21, w21, #1
	cmp	w21, #1
	b.gt	LBB0_6
	b	LBB0_2
LBB0_7:
Lloh10:
	adrp	x22, _E_OUTOFMEMORY@GOTPAGE
Lloh11:
	ldr	x22, [x22, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
Lloh12:
	adrp	x22, _S_OK@GOTPAGE
Lloh13:
	ldr	x22, [x22, _S_OK@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VFW_E_BADALIGN,4,2             ; @VFW_E_BADALIGN
	.comm	_MEM_COMMIT,4,2                 ; @MEM_COMMIT
	.comm	_PAGE_READWRITE,4,2             ; @PAGE_READWRITE
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_StdMemAllocator_Alloc
.subsections_via_symbols
