	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function text2movsub
_text2movsub:                           ## @text2movsub
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	leaq	-24(%rbp), %rsi
	callq	_ff_bsf_get_packet
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-24(%rbp), %rax
	movl	(%rax), %esi
	cmpl	$65536, %esi                    ## imm = 0x10000
	jl	LBB0_4
## %bb.3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jns	LBB0_10
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_4:
	addl	$2, %esi
	movq	%r14, %rdi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:
	movq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_av_packet_copy_props
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movq	8(%r14), %rdi
	movq	-24(%rbp), %rax
	movl	(%rax), %esi
	callq	_AV_WB16
	movq	8(%r14), %rdi
	addq	$2, %rdi
	movq	-24(%rbp), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	callq	_memcpy
	jmp	LBB0_10
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	callq	_av_packet_unref
LBB0_10:
	leaq	-24(%rbp), %rdi
	callq	_av_packet_free
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_text2movsub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function text2movsub
_text2movsub:                           ; @text2movsub
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	add	x1, sp, #8
	bl	_ff_bsf_get_packet
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cmp	w8, #16, lsl #12                ; =65536
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	tbz	w20, #31, LBB0_9
	b	LBB0_8
LBB0_3:
	mov	x20, x0
	b	LBB0_10
LBB0_4:
	add	w1, w8, #2
	mov	x0, x19
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_av_packet_copy_props
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	x0, [x19, #8]
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	bl	_AV_WB16
	ldr	x8, [x19, #8]
	add	x0, x8, #2
	ldr	x8, [sp, #8]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	bl	_memcpy
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	tbz	w20, #31, LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_9:
	add	x0, sp, #8
	bl	_av_packet_free
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_text2movsub
.subsections_via_symbols
