	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function realloc_alpha_uv
_realloc_alpha_uv:                      ## @realloc_alpha_uv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	(%rdi), %r13
	movq	(%r13), %rbx
	movq	8(%r13), %r12
	movq	_VPX_PLANE_U@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_4
## %bb.1:
	movq	_VPX_PLANE_V@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rbx,%rcx,8)
	je	LBB0_4
## %bb.2:
	cmpl	%r14d, 24(%r13)
	jne	LBB0_4
## %bb.3:
	cmpl	%r15d, 16(%r13)
	je	LBB0_7
LBB0_4:
	leaq	(%rbx,%rax,8), %rdi
	callq	_av_freep
	movq	_VPX_PLANE_V@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax,8), %rdi
	callq	_av_freep
	movq	_VPX_IMG_FMT_I420@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r9d
	movq	%r13, %rdi
	movl	%r14d, %edx
	movq	_VPX_PLANE_V@GOTPCREL(%rip), %r14
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_vpx_img_wrap
	movq	_VPX_PLANE_U@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%r12,%rax,4), %edi
	movl	%r15d, %esi
	callq	_av_malloc_array
	movq	(%r13), %rcx
	movq	%rax, (%rbx,%rcx,8)
	movq	(%r14), %rax
	movl	(%r12,%rax,4), %edi
	movl	%r15d, %esi
	callq	_av_malloc_array
	movq	(%r14), %rcx
	movq	%rax, (%rbx,%rcx,8)
	movq	(%r13), %rcx
	movq	(%rbx,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	(%r12,%rcx,4), %edx
	imull	%r15d, %edx
	movl	$128, %esi
	callq	_memset
	movq	(%r14), %rax
	movq	(%rbx,%rax,8), %rdi
	imull	(%r12,%rax,4), %r15d
	movl	$128, %esi
	movl	%r15d, %edx
	callq	_memset
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VPX_PLANE_U,8,3                ## @VPX_PLANE_U
	.comm	_VPX_PLANE_V,8,3                ## @VPX_PLANE_V
	.comm	_VPX_IMG_FMT_I420,4,2           ## @VPX_IMG_FMT_I420
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_realloc_alpha_uv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function realloc_alpha_uv
_realloc_alpha_uv:                      ; @realloc_alpha_uv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x25, _VPX_PLANE_U@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VPX_PLANE_U@GOTPAGEOFF]
	ldp	x23, x22, [x21]
	ldr	x8, [x25]
	add	x0, x23, x8, lsl #3
	ldr	x8, [x0]
Lloh2:
	adrp	x24, _VPX_PLANE_V@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VPX_PLANE_V@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x24]
	ldr	x8, [x23, x8, lsl #3]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x21, #24]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x21, #16]
	cmp	w8, w19
	b.eq	LBB0_7
LBB0_4:
	bl	_av_freep
	ldr	x8, [x24]
	add	x0, x23, x8, lsl #3
	bl	_av_freep
Lloh4:
	adrp	x8, _VPX_IMG_FMT_I420@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VPX_IMG_FMT_I420@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #1
	mov	w5, #1
	bl	_vpx_img_wrap
	ldr	x8, [x25]
	ldr	w0, [x22, x8, lsl #2]
	mov	x1, x19
	bl	_av_malloc_array
	ldr	x8, [x25]
	str	x0, [x23, x8, lsl #3]
	ldr	x8, [x24]
	ldr	w0, [x22, x8, lsl #2]
	mov	x1, x19
	bl	_av_malloc_array
	mov	x8, x0
	ldr	x9, [x24]
	str	x0, [x23, x9, lsl #3]
	ldr	x9, [x25]
	ldr	x0, [x23, x9, lsl #3]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_6:
	ldr	w8, [x22, x9, lsl #2]
	mul	w2, w8, w19
	mov	w1, #128
	bl	_memset
	ldr	x8, [x24]
	ldr	x0, [x23, x8, lsl #3]
	ldr	w8, [x22, x8, lsl #2]
	mul	w2, w8, w19
	mov	w1, #128
	bl	_memset
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VPX_PLANE_U,8,3                ; @VPX_PLANE_U
	.comm	_VPX_PLANE_V,8,3                ; @VPX_PLANE_V
	.comm	_VPX_IMG_FMT_I420,4,2           ; @VPX_IMG_FMT_I420
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_realloc_alpha_uv
.subsections_via_symbols
