	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwupload_filter_frame
_hwupload_filter_frame:                 ## @hwupload_filter_frame
	.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	%rsi, %rbx
	movq	%rsi, -48(%rbp)
	movq	16(%rdi), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %r15
	movq	(%rsi), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_1
## %bb.9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_filter_frame                ## TAILCALL
LBB0_1:
	movq	(%rax), %r12
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movq	%r15, %rdi
	callq	_ff_get_video_buffer
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movl	12(%rbx), %eax
	movl	%eax, 12(%r13)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r13)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_av_hwframe_transfer_data
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
	testl	%eax, %eax
	js	LBB0_6
## %bb.10:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ff_filter_frame
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_6:
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate frame to upload to.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to upload frame: %d.\n"

	.no_dead_strip	_hwupload_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwupload_filter_frame
_hwupload_filter_frame:                 ; @hwupload_filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	str	x1, [sp, #24]
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #8]
	ldr	x19, [x9]
	ldr	x9, [x1]
	ldr	x10, [x19]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ff_filter_frame
LBB0_2:
	ldr	x22, [x8]
	ldp	w2, w1, [x19, #8]
	mov	x0, x19
	bl	_ff_get_video_buffer
	str	x0, [sp, #16]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x23, x0
	ldr	d0, [x21, #8]
	str	d0, [x0, #8]
	mov	x1, x21
	mov	w2, #0
	bl	_av_hwframe_transfer_data
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x0, x23
	mov	x1, x21
	bl	_av_frame_copy_props
	tbnz	w0, #31, LBB0_7
; %bb.5:
	add	x0, sp, #24
	bl	_av_frame_free
	mov	x0, x19
	mov	x1, x23
	bl	_ff_filter_frame
	mov	x20, x0
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_7:
	mov	x20, x0
	b	LBB0_9
LBB0_8:
	mov	x20, x0
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_av_log
LBB0_9:
	add	x0, sp, #24
	bl	_av_frame_free
	add	x0, sp, #16
	bl	_av_frame_free
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate frame to upload to.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to upload frame: %d.\n"

	.no_dead_strip	_hwupload_filter_frame
.subsections_via_symbols
