	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_video_buffer_to_avframe     ## -- Begin function hb_video_buffer_to_avframe
	.p2align	4, 0x90
_hb_video_buffer_to_avframe:            ## @hb_video_buffer_to_avframe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	48(%rsi), %rax
	movl	4(%rax), %ecx
	movq	56(%rdi), %rdx
	movl	%ecx, (%rdx)
	movl	12(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	20(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	(%rax), %ecx
	movq	48(%rdi), %rdx
	movl	%ecx, (%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	16(%rax), %eax
	movl	%eax, 8(%rdx)
	movsd	36(%rsi), %xmm0                 ## xmm0 = mem[0],zero
	movsd	20(%rsi), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 28(%rdi)
	xorl	%eax, %eax
	cmpl	$0, 32(%rsi)
	movl	16(%rsi), %ecx
	setne	%al
	movl	%eax, (%rdi)
	movq	_PIC_FLAG_TOP_FIELD_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	28(%rsi), %eax
	setne	%dl
	movl	%edx, 4(%rdi)
	movl	%ecx, 24(%rdi)
	movl	12(%rsi), %edi
	callq	_hb_colr_pri_hb_to_ff
	movl	%eax, 20(%rbx)
	movl	8(%r14), %edi
	callq	_hb_colr_tra_hb_to_ff
	movl	%eax, 16(%rbx)
	movl	4(%r14), %edi
	callq	_hb_colr_mat_hb_to_ff
	movl	%eax, 12(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIC_FLAG_TOP_FIELD_FIRST,4,2   ## @PIC_FLAG_TOP_FIELD_FIRST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_video_buffer_to_avframe     ; -- Begin function hb_video_buffer_to_avframe
	.p2align	2
_hb_video_buffer_to_avframe:            ; @hb_video_buffer_to_avframe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #48]
	ldr	w9, [x8, #4]
	ldp	x11, x10, [x0, #48]
	str	w9, [x10]
	ldr	w9, [x8, #12]
	str	w9, [x10, #4]
	ldr	w9, [x8, #20]
	str	w9, [x10, #8]
	ldr	w9, [x8]
	str	w9, [x11]
	ldr	w9, [x8, #8]
	str	w9, [x11, #4]
	ldr	w8, [x8, #16]
	str	w8, [x11, #8]
	ldur	d0, [x1, #36]
	ldur	d1, [x1, #20]
	mov.d	v1[1], v0[0]
	stur	q1, [x0, #28]
	ldp	w9, w8, [x1, #28]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x0]
Lloh0:
	adrp	x8, _PIC_FLAG_TOP_FIELD_FIRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIC_FLAG_TOP_FIELD_FIRST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, ne
	str	w8, [x0, #4]
	ldp	w0, w8, [x1, #12]
	str	w8, [x20, #24]
	bl	_hb_colr_pri_hb_to_ff
	str	w0, [x20, #20]
	ldr	w0, [x19, #8]
	bl	_hb_colr_tra_hb_to_ff
	str	w0, [x20, #16]
	ldr	w0, [x19, #4]
	bl	_hb_colr_mat_hb_to_ff
	ldr	w8, [x19]
	stp	w8, w0, [x20, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIC_FLAG_TOP_FIELD_FIRST,4,2   ; @PIC_FLAG_TOP_FIELD_FIRST
.subsections_via_symbols
