	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_timecode_init_from_string   ## -- Begin function av_timecode_init_from_string
	.p2align	4, 0x90
_av_timecode_init_from_string:          ## @av_timecode_init_from_string
	.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	%rcx, %r14
	movq	%rdx, %rax
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str(%rip), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	leaq	-41(%rbp), %r9
	movq	%rax, %rdi
	callq	_sscanf
	cmpl	$5, %eax
	jne	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	cmpb	$58, -41(%rbp)
	movq	_AV_TIMECODE_FLAG_DROPFRAME@GOTPCREL(%rip), %r12
	je	LBB0_4
## %bb.3:
	movl	(%r12), %r13d
LBB0_4:
	movl	%r13d, (%rbx)
	movl	%r15d, 12(%rbx)
	movl	%r15d, %edi
	callq	_fps_from_frame_rate
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_check_timecode
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movl	-60(%rbp), %r8d
	imull	$3600, %r8d, %eax               ## imm = 0xE10
	movl	-56(%rbp), %esi
	imull	$60, %esi, %ecx
	addl	%eax, %ecx
	addl	-52(%rbp), %ecx
	movl	4(%rbx), %edi
	imull	%edi, %ecx
	addl	-48(%rbp), %ecx
	movl	%ecx, 8(%rbx)
	movl	(%r12), %edx
	xorl	%eax, %eax
	testl	%edx, (%rbx)
	je	LBB0_7
## %bb.6:
	imull	$60, %r8d, %edx
	addl	%esi, %edx
	xorl	%esi, %esi
	cmpl	$30, %edi
	sete	%sil
	addl	%esi, %esi
	orl	$-4, %esi
	movslq	%edx, %rdx
	imulq	$-1717986919, %rdx, %rdi        ## imm = 0x99999999
	movq	%rdi, %r8
	shrq	$63, %r8
	sarq	$34, %rdi
	addl	%r8d, %edi
	addl	%edi, %edx
	imull	%esi, %edx
	addl	%ecx, %edx
	movl	%edx, 8(%rbx)
	jmp	LBB0_7
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d:%d:%d%c%d"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unable to parse timecode, syntax: hh:mm:ss[:;.]ff\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_TIMECODE_FLAG_DROPFRAME,4,2 ## @AV_TIMECODE_FLAG_DROPFRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_timecode_init_from_string   ; -- Begin function av_timecode_init_from_string
	.p2align	2
_av_timecode_init_from_string:          ; @av_timecode_init_from_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x8, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	add	x5, sp, #31
	add	x6, sp, #12
	mov	x0, x8
	bl	_sscanf
	cmp	w0, #5
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh2:
	adrp	x22, _AV_TIMECODE_FLAG_DROPFRAME@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AV_TIMECODE_FLAG_DROPFRAME@GOTPAGEOFF]
	ldrb	w8, [sp, #31]
	ldr	w9, [x22]
	cmp	w8, #58
	csel	w8, wzr, w9, eq
	str	w8, [x19]
	str	w21, [x19, #12]
	mov	x0, x21
	bl	_fps_from_frame_rate
	str	w0, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_check_timecode
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldp	w10, w9, [sp, #20]
	mov	w8, #3600
	mul	w8, w9, w8
	mov	w11, #60
	madd	w8, w10, w11, w8
	ldp	w13, w12, [sp, #12]
	add	w8, w8, w12
	ldp	w14, w12, [x19]
	madd	w8, w8, w12, w13
	str	w8, [x19, #8]
	ldr	w13, [x22]
	tst	w13, w14
	b.eq	LBB0_5
; %bb.3:
	mov	w0, #0
	madd	w9, w9, w11, w10
	mov	w10, #-4
	mov	w11, #-2
	cmp	w12, #30
	csel	w10, w11, w10, eq
	mov	w11, #-1717986919
	smull	x11, w9, w11
	lsr	x12, x11, #63
	asr	x11, x11, #34
	add	w11, w11, w12
	add	w9, w11, w9
	madd	w8, w10, w9, w8
	str	w8, [x19, #8]
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh9:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d:%d:%d%c%d"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unable to parse timecode, syntax: hh:mm:ss[:;.]ff\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_TIMECODE_FLAG_DROPFRAME,4,2 ; @AV_TIMECODE_FLAG_DROPFRAME
.subsections_via_symbols
