	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_timecode_make_string        ## -- Begin function av_timecode_make_string
	.p2align	4, 0x90
_av_timecode_make_string:               ## @av_timecode_make_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r9d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	_AV_TIMECODE_FLAG_DROPFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	8(%rdi), %r9d
	andl	4(%rdi), %r12d
	je	LBB0_2
## %bb.1:
	movl	%r9d, %edi
	movl	%r15d, %esi
	callq	_av_timecode_adjust_ntsc_framenum2
	movl	%eax, %r9d
LBB0_2:
	testl	%r9d, %r9d
	js	LBB0_4
## %bb.3:
	movl	4(%rbx), %esi
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	negl	%r9d
	movl	4(%rbx), %esi
	movq	_AV_TIMECODE_FLAG_ALLOWNEGATIVE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
LBB0_5:
	imull	$3600, %r15d, %edi              ## imm = 0xE10
	movl	%r9d, %eax
	cltd
	idivl	%edi
	movl	%eax, %r8d
	movq	_AV_TIMECODE_FLAG_24HOURSMAX@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_7
## %bb.6:
	movslq	%r8d, %rax
	imulq	$715827883, %rax, %rax          ## imm = 0x2AAAAAAB
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$34, %rax
	addl	%edx, %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %r8d
LBB0_7:
	imull	$60, %r15d, %esi
	movl	%r9d, %eax
	cltd
	idivl	%esi
	movl	%eax, %esi
	movl	%r9d, %eax
	cltd
	idivl	%r15d
	movl	%edx, %r10d
	movslq	%esi, %r9
	imulq	$-2004318071, %r9, %rdx         ## imm = 0x88888889
	shrq	$32, %rdx
	addl	%r9d, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$5, %edx
	addl	%esi, %edx
	imull	$60, %edx, %edx
	subl	%edx, %r9d
	cltq
	imulq	$-2004318071, %rax, %rdx        ## imm = 0x88888889
	shrq	$32, %rdx
	addl	%eax, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$5, %edx
	addl	%esi, %edx
	imull	$60, %edx, %edx
	subl	%edx, %eax
	movq	_AV_TIMECODE_STR_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	subq	$8, %rsp
	cmpl	$1, %r12d
	movl	$59, %ebx
	sbbl	$0, %ebx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r10
	pushq	%rbx
	pushq	%rax
	callq	_snprintf
	addq	$32, %rsp
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_TIMECODE_FLAG_DROPFRAME,4,2 ## @AV_TIMECODE_FLAG_DROPFRAME
	.comm	_AV_TIMECODE_FLAG_ALLOWNEGATIVE,4,2 ## @AV_TIMECODE_FLAG_ALLOWNEGATIVE
	.comm	_AV_TIMECODE_FLAG_24HOURSMAX,4,2 ## @AV_TIMECODE_FLAG_24HOURSMAX
	.comm	_AV_TIMECODE_STR_SIZE,4,2       ## @AV_TIMECODE_STR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%02d:%02d:%02d%c%02d"

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

L_.str.2:                               ## @.str.2
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_timecode_make_string        ; -- Begin function av_timecode_make_string
	.p2align	2
_av_timecode_make_string:               ; @av_timecode_make_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x21, x0
	ldp	w20, w8, [x0]
Lloh0:
	adrp	x9, _AV_TIMECODE_FLAG_DROPFRAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_TIMECODE_FLAG_DROPFRAME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x0, #8]
	add	w0, w10, w2
	ands	w22, w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x20
	bl	_av_timecode_adjust_ntsc_framenum2
LBB0_2:
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	w8, [x21, #4]
Lloh3:
	adrp	x3, l_.str.2@PAGE
Lloh4:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
	neg	w0, w0
	ldr	w8, [x21, #4]
Lloh5:
	adrp	x9, _AV_TIMECODE_FLAG_ALLOWNEGATIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_TIMECODE_FLAG_ALLOWNEGATIVE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh10:
	adrp	x11, l_.str.2@PAGE
Lloh11:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w9, w8
	csel	x3, x11, x10, eq
LBB0_5:
	mov	w9, #3600
	mul	w9, w20, w9
	sdiv	w9, w0, w9
Lloh12:
	adrp	x10, _AV_TIMECODE_FLAG_24HOURSMAX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AV_TIMECODE_FLAG_24HOURSMAX@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	mov	w11, #43691
	movk	w11, #10922, lsl #16
	smull	x11, w9, w11
	lsr	x12, x11, #32
	lsr	x11, x11, #63
	add	w11, w11, w12, asr #2
	mov	w12, #24
	msub	w11, w11, w12, w9
	tst	w10, w8
	csel	w4, w9, w11, eq
	mov	w8, #60
	mul	w9, w20, w8
	sdiv	w9, w0, w9
	mov	w10, #34953
	movk	w10, #34952, lsl #16
	smull	x11, w9, w10
	lsr	x11, x11, #32
	add	w11, w11, w9
	asr	w12, w11, #5
	add	w11, w12, w11, lsr #31
	msub	w5, w11, w8, w9
	sdiv	w9, w0, w20
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w10, w10, w9
	asr	w11, w10, #5
	add	w10, w11, w10, lsr #31
	msub	w6, w10, w8, w9
	msub	w8, w9, w20, w0
Lloh15:
	adrp	x9, _AV_TIMECODE_STR_SIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AV_TIMECODE_STR_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	str	w8, [sp]
	cmp	w22, #0
	mov	w8, #58
	cinc	w7, w8, ne
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snprintf
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_TIMECODE_FLAG_DROPFRAME,4,2 ; @AV_TIMECODE_FLAG_DROPFRAME
	.comm	_AV_TIMECODE_FLAG_ALLOWNEGATIVE,4,2 ; @AV_TIMECODE_FLAG_ALLOWNEGATIVE
	.comm	_AV_TIMECODE_FLAG_24HOURSMAX,4,2 ; @AV_TIMECODE_FLAG_24HOURSMAX
	.comm	_AV_TIMECODE_STR_SIZE,4,2       ; @AV_TIMECODE_STR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%02d:%02d:%02d%c%02d"

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

l_.str.2:                               ; @.str.2
	.space	1

.subsections_via_symbols
