	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_timecode_get_smpte_from_framenum ## -- Begin function av_timecode_get_smpte_from_framenum
	.p2align	4, 0x90
_av_timecode_get_smpte_from_framenum:   ## @av_timecode_get_smpte_from_framenum
	.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
	movl	(%rdi), %r14d
	movq	_AV_TIMECODE_FLAG_DROPFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	8(%rdi), %esi
	testl	%eax, 4(%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %edi
	movl	%r14d, %esi
	callq	_av_timecode_adjust_ntsc_framenum2
	movl	%eax, %esi
	movl	$1073741824, %r9d               ## imm = 0x40000000
	jmp	LBB0_3
LBB0_1:
	xorl	%r9d, %r9d
LBB0_3:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %edi
	movl	%edx, %r8d
	movl	$2290649225, %ebx               ## imm = 0x88888889
	movq	%rdi, %rax
	imulq	%rbx, %rax
	shrq	$37, %rax
	imull	$60, %eax, %eax
	subl	%eax, %edi
	imull	$60, %r14d, %ecx
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
	imulq	%rcx, %rbx
	shrq	$37, %rbx
	imull	$60, %ebx, %eax
	subl	%eax, %ecx
	imull	$3600, %r14d, %ebx              ## imm = 0xE10
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	movl	$2863311531, %edx               ## imm = 0xAAAAAAAB
	imulq	%rax, %rdx
	shrq	$36, %rdx
	shll	$3, %edx
	leal	(%rdx,%rdx,2), %edx
	subl	%edx, %eax
	movslq	%r8d, %rdx
	imulq	$1717986919, %rdx, %rsi         ## imm = 0x66666667
	movq	%rsi, %rbx
	shrq	$63, %rbx
	sarq	$34, %rsi
	addl	%ebx, %esi
	movl	%esi, %ebx
	shll	$28, %ebx
	orl	%r9d, %ebx
	addl	%esi, %esi
	leal	(%rsi,%rsi,4), %esi
	subl	%esi, %edx
	shll	$24, %edx
	orl	%ebx, %edx
	imull	$205, %edi, %esi
	movzwl	%si, %esi
	shrl	$11, %esi
	movl	%esi, %ebx
	shll	$20, %ebx
	orl	%edx, %ebx
	addl	%esi, %esi
	leal	(%rsi,%rsi,4), %edx
	subb	%dl, %dil
	movzbl	%dil, %edx
	shll	$16, %edx
	imull	$205, %ecx, %esi
	movzwl	%si, %esi
	shrl	$11, %esi
	movl	%esi, %edi
	shll	$12, %edi
	orl	%ebx, %edi
	orl	%edx, %edi
	addl	%esi, %esi
	leal	(%rsi,%rsi,4), %edx
	subb	%dl, %cl
	movzbl	%cl, %ecx
	shll	$8, %ecx
	imull	$205, %eax, %edx
	movzwl	%dx, %edx
	shrl	$11, %edx
	movl	%edx, %ebx
	shlb	$4, %bl
	movzbl	%bl, %esi
	orl	%edi, %esi
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	subb	%dl, %al
	movzbl	%al, %eax
	orl	%ecx, %eax
	orl	%esi, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_get_smpte_from_framenum ; -- Begin function av_timecode_get_smpte_from_framenum
	.p2align	2
_av_timecode_get_smpte_from_framenum:   ; @av_timecode_get_smpte_from_framenum
	.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
	ldp	w19, 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, w1
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_av_timecode_adjust_ntsc_framenum2
	mov	w8, #1073741824
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	udiv	w9, w0, w19
	msub	w10, w9, w19, w0
	mov	w11, #34953
	movk	w11, #34952, lsl #16
	umull	x12, w9, w11
	lsr	x12, x12, #37
	mov	w13, #60
	msub	w9, w12, w13, w9
	mul	w12, w19, w13
	udiv	w12, w0, w12
	umull	x11, w12, w11
	lsr	x11, x11, #37
	msub	w11, w11, w13, w12
	mov	w12, #3600
	mul	w12, w19, w12
	udiv	w12, w0, w12
	mov	w13, #43691
	movk	w13, #43690, lsl #16
	umull	x13, w12, w13
	lsr	x13, x13, #36
	mov	w14, #24
	msub	w12, w13, w14, w12
	mov	w13, #26215
	movk	w13, #26214, lsl #16
	smull	x13, w10, w13
	lsr	x14, x13, #63
	asr	x13, x13, #34
	add	w13, w13, w14
	orr	w8, w8, w13, lsl #28
	mov	w14, #10
	msub	w10, w13, w14, w10
	orr	w8, w8, w10, lsl #24
	mov	w10, #205
	mul	w13, w9, w10
	lsr	w13, w13, #11
	orr	w8, w8, w13, lsl #20
	msub	w9, w13, w14, w9
	and	w9, w9, #0xff
	orr	w8, w8, w9, lsl #16
	and	w9, w11, #0xff
	mul	w9, w9, w10
	lsr	w9, w9, #11
	orr	w8, w8, w9, lsl #12
	msub	w9, w9, w14, w11
	and	w9, w9, #0xff
	and	w11, w12, #0xff
	mul	w10, w11, w10
	lsr	w11, w10, #11
	lsr	w10, w10, #7
	and	w10, w10, #0xf0
	msub	w11, w11, w14, w12
	and	w11, w11, #0xff
	bfi	w11, w9, #8, #8
	orr	w9, w11, w10
	orr	w0, w9, w8
	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	_AV_TIMECODE_FLAG_DROPFRAME,4,2 ; @AV_TIMECODE_FLAG_DROPFRAME
.subsections_via_symbols
