	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_trim
_insert_trim:                           ## @insert_trim
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rax
	movq	8(%rax), %r13
	movl	(%rax), %edi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %esi
	callq	_avfilter_pad_get_type
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	_INT64_MAX@GOTPCREL(%rip), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rcx)
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	cmpl	%r15d, (%rax)
	je	LBB0_19
LBB0_2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_avfilter_get_by_name
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_avfilter_graph_alloc_filter
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %r15
	xorl	%r12d, %r12d
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_AV_OPT_SEARCH_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_av_opt_set_int
	movl	%eax, %r12d
LBB0_6:
	testl	%r12d, %r12d
	js	LBB0_15
## %bb.7:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	_AV_OPT_SEARCH_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_av_opt_set_int
	movl	%eax, %r12d
LBB0_9:
	testl	%r12d, %r12d
	js	LBB0_16
LBB0_10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avfilter_init_str
	testl	%eax, %eax
	js	LBB0_18
## %bb.11:
	movq	(%r14), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_avfilter_link
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movq	%r15, (%r14)
	movl	$0, (%rbx)
	jmp	LBB0_19
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	movq	%rbx, %rcx
	callq	_av_log
	movq	_AVERROR_FILTER_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_19
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_18:
	movl	%eax, %r12d
	jmp	LBB0_19
LBB0_15:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testl	%r12d, %r12d
	jns	LBB0_10
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_av_log
LBB0_19:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trim"

L_.str.1:                               ## @.str.1
	.asciz	"atrim"

	.comm	_INT64_MAX,4,2                  ## @INT64_MAX
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"%s filter not present, cannot limit recording time.\n"

	.comm	_AVERROR_FILTER_NOT_FOUND,4,2   ## @AVERROR_FILTER_NOT_FOUND
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"durationi"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ## @AV_OPT_SEARCH_CHILDREN
L_.str.4:                               ## @.str.4
	.asciz	"starti"

L_.str.5:                               ## @.str.5
	.asciz	"Error configuring the %s filter"

	.no_dead_strip	_insert_trim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_trim
_insert_trim:                           ; @insert_trim
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x8, [x2]
	ldr	x25, [x8, #8]
	ldr	w0, [x8]
	ldr	w1, [x3]
	bl	_avfilter_pad_get_type
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str@PAGE
Lloh6:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w0, w8
	csel	x21, x10, x9, eq
Lloh7:
	adrp	x27, _INT64_MAX@GOTPAGE
Lloh8:
	ldr	x27, [x27, _INT64_MAX@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh9:
	adrp	x26, _AV_NOPTS_VALUE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	w9, [x26]
	cmp	w8, w24
	ccmp	w9, w23, #0, eq
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_avfilter_get_by_name
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
	mov	x0, x25
	mov	x2, x22
	bl	_avfilter_graph_alloc_filter
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
	ldr	w8, [x27]
Lloh11:
	adrp	x25, _AV_OPT_SEARCH_CHILDREN@GOTPAGE
Lloh12:
	ldr	x25, [x25, _AV_OPT_SEARCH_CHILDREN@GOTPAGEOFF]
	cmp	w8, w24
	b.ne	LBB0_8
; %bb.4:
	mov	w24, #0
	tbz	w24, #31, LBB0_9
	b	LBB0_11
LBB0_5:
	mov	w24, #0
	b	LBB0_17
LBB0_6:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x21
	bl	_av_log
Lloh18:
	adrp	x8, _AVERROR_FILTER_NOT_FOUND@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_FILTER_NOT_FOUND@GOTPAGEOFF]
Lloh20:
	ldr	w24, [x8]
	b	LBB0_17
LBB0_7:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_8:
	ldr	w3, [x25]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, x24
	bl	_av_opt_set_int
	mov	x24, x0
	tbnz	w24, #31, LBB0_11
LBB0_9:
	ldr	w8, [x26]
	cmp	w8, w23
	b.eq	LBB0_11
; %bb.10:
	ldr	w3, [x25]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_av_opt_set_int
	mov	x24, x0
LBB0_11:
	tbnz	w24, #31, LBB0_15
; %bb.12:
	mov	x0, x22
	mov	x1, #0
	bl	_avfilter_init_str
	tbnz	w0, #31, LBB0_16
; %bb.13:
	ldr	x0, [x20]
	ldr	w1, [x19]
	mov	x2, x22
	mov	w3, #0
	bl	_avfilter_link
	tbnz	w0, #31, LBB0_16
; %bb.14:
	mov	w24, #0
	str	x22, [x20]
	str	wzr, [x19]
	b	LBB0_17
LBB0_15:
Lloh28:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	x3, x21
	bl	_av_log
	b	LBB0_17
LBB0_16:
	mov	x24, x0
LBB0_17:
	mov	x0, x24
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trim"

l_.str.1:                               ; @.str.1
	.asciz	"atrim"

	.comm	_INT64_MAX,4,2                  ; @INT64_MAX
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"%s filter not present, cannot limit recording time.\n"

	.comm	_AVERROR_FILTER_NOT_FOUND,4,2   ; @AVERROR_FILTER_NOT_FOUND
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"durationi"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ; @AV_OPT_SEARCH_CHILDREN
l_.str.4:                               ; @.str.4
	.asciz	"starti"

l_.str.5:                               ; @.str.5
	.asciz	"Error configuring the %s filter"

	.no_dead_strip	_insert_trim
.subsections_via_symbols
