	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function realloc_mv_buffers
_realloc_mv_buffers:                    ## @realloc_mv_buffers
	.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
	movq	%rsi, %r15
	movq	(%rdi), %rsi
	xorl	%r14d, %r14d
	cmpq	%r15, %rsi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	(%rax), %r12
	movq	24(%rdi), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_dma_free_coherent
	movq	24(%rbx), %rax
LBB0_3:
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rsi
	movq	16(%rbx), %rax
	movl	4(%rax), %ecx
	movq	%r12, %rdi
	callq	_dma_free_coherent
LBB0_5:
	testq	%r15, %r15
	je	LBB0_12
## %bb.6:
	movq	16(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dma_alloc_coherent
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.9:
	movq	16(%rbx), %rdx
	addq	$4, %rdx
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dma_alloc_coherent
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.11:
	movq	%r15, (%rbx)
	movq	$0, 8(%rbx)
	jmp	LBB0_12
LBB0_7:
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_vpe_err
	jmp	LBB0_8
LBB0_10:
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_vpe_err
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx), %rdx
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dma_free_coherent
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate motion vector buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_realloc_mv_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function realloc_mv_buffers
_realloc_mv_buffers:                    ; @realloc_mv_buffers
	.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
	ldr	x1, [x0]
	cmp	x1, x19
	b.eq	LBB0_9
; %bb.1:
	mov	x20, x0
	ldp	x8, x9, [x0, #24]
	ldr	x21, [x9]
	ldr	x2, [x8]
	cbz	x2, LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	w3, [x8]
	mov	x0, x21
	bl	_dma_free_coherent
	ldr	x8, [x20, #24]
LBB0_3:
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_5
; %bb.4:
	ldr	x1, [x20]
	ldr	x8, [x20, #16]
	ldr	w3, [x8, #4]
	mov	x0, x21
	bl	_dma_free_coherent
LBB0_5:
	cbz	x19, LBB0_9
; %bb.6:
	ldr	x2, [x20, #16]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_dma_alloc_coherent
	ldr	x8, [x20, #24]
	str	x0, [x8]
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x8, [x20, #16]
	add	x2, x8, #4
	ldr	w3, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_dma_alloc_coherent
	ldr	x8, [x20, #24]
	str	x0, [x8, #8]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
; %bb.8:
	mov	w0, #0
	stp	x19, xzr, [x20]
	b	LBB0_13
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	ldr	x0, [x20, #32]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vpe_err
	b	LBB0_12
LBB0_11:
	ldr	x0, [x20, #32]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vpe_err
	ldp	x9, x8, [x20, #16]
	ldr	x2, [x8]
	ldr	w3, [x9]
	mov	x0, x21
	mov	x1, x19
	bl	_dma_free_coherent
LBB0_12:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate motion vector buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_realloc_mv_buffers
.subsections_via_symbols
