	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function mov_write_loci_tag
LCPI0_0:
	.quad	0x40f0000000000000              ## double 65536
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mov_write_loci_tag:                    ## @mov_write_loci_tag
	.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	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_avio_tell
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	callq	_get_metadata_lang
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	(%rax), %r14
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_strtod
	movq	-48(%rbp), %rbx
	cmpq	%r14, %rbx
	je	LBB0_2
## %bb.3:
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strtod
	movq	-48(%rbp), %rdi
	cmpq	%rbx, %rdi
	je	LBB0_2
## %bb.4:
	leaq	-48(%rbp), %rsi
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	callq	_strtod
	movq	-48(%rbp), %rax
	cmpb	$47, (%rax)
	leaq	1(%rax), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	-64(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %rbx
	movsd	-72(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %r13
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r14
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_ffio_wfourcc
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movl	-56(%rbp), %esi
	movq	%r12, %rdi
	callq	_avio_wb16
	movq	%r15, %rdi
	callq	_strlen
	leaq	1(%rax), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_avio_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_avio_wb32
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_avio_wb32
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_avio_wb32
	leaq	L_.str.2(%rip), %rsi
	movl	$6, %edx
	movq	%r12, %rdi
	callq	_avio_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_update_size
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_2:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
LBB0_5:
	movl	%r15d, %eax
	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	"location"

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

L_.str.2:                               ## @.str.2
	.asciz	"earth"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"malformed location metadata\n"

L_.str.4:                               ## @.str.4
	.asciz	"loci"

	.no_dead_strip	_mov_write_loci_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_write_loci_tag
_mov_write_loci_tag:                    ; @mov_write_loci_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_avio_tell
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_get_metadata_lang
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x23, [x0]
	mov	x1, sp
	mov	x0, x23
	bl	_strtod
	ldr	x22, [sp]
	cmp	x22, x23
	b.eq	LBB0_4
; %bb.2:
	fmov	d8, d0
	mov	x1, sp
	mov	x0, x22
	bl	_strtod
	ldr	x0, [sp]
	cmp	x0, x22
	b.eq	LBB0_4
; %bb.3:
	fmov	d9, d0
	mov	x1, sp
	bl	_strtod
	ldr	x8, [sp]
	ldrb	w9, [x8], #1
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w9, #47
	csel	x21, x8, x10, eq
	fcvtzs	x22, d9, #16
	fcvtzs	x23, d8, #16
	fcvtzs	x24, d0, #16
	mov	x0, x19
	mov	x1, #0
	bl	_avio_wb32
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	x1, #0
	bl	_avio_wb32
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_avio_wb16
	mov	x0, x21
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x21
	bl	_avio_write
	mov	x0, x19
	mov	w1, #0
	bl	_avio_w8
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x23
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x24
	bl	_avio_wb32
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #6
	bl	_avio_write
	mov	x0, x19
	mov	w1, #0
	bl	_avio_w8
	mov	x0, x19
	mov	x1, x20
	bl	_update_size
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_av_log
	mov	w0, #0
LBB0_5:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"location"

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

l_.str.2:                               ; @.str.2
	.asciz	"earth"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"malformed location metadata\n"

l_.str.4:                               ; @.str.4
	.asciz	"loci"

	.no_dead_strip	_mov_write_loci_tag
.subsections_via_symbols
