	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lxf_sync
_lxf_sync:                              ## @lxf_sync
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LXF_IDENT_LENGTH@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	%r12, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_avio_read
	cmpl	(%r13), %eax
	jne	LBB0_6
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_LXF_IDENT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %r12
	addq	$4, %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edx
	decl	%edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_memmove
	movl	(%r15), %edi
	callq	_avio_r8
	movslq	(%r13), %rdx
	movl	%eax, -4(%rbx,%rdx,4)
	movl	(%r14), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	movl	(%r14), %esi
	movl	(%r13), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	testl	%eax, %eax
	js	LBB0_8
LBB0_7:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LXF_IDENT_LENGTH,4,2           ## @LXF_IDENT_LENGTH
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_LXF_IDENT,4,2                  ## @LXF_IDENT
	.no_dead_strip	_lxf_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lxf_sync
_lxf_sync:                              ; @lxf_sync
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _LXF_IDENT_LENGTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _LXF_IDENT_LENGTH@GOTPAGEOFF]
	ldr	w2, [x23]
	lsl	x8, x2, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w0, [x0]
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_avio_read
	mov	x2, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.1:
Lloh7:
	adrp	x24, _LXF_IDENT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _LXF_IDENT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.2:
	add	x22, x21, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_avio_feof
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	sub	w2, w8, #1
	mov	x0, x21
	mov	x1, x22
	bl	_memmove
	ldr	w0, [x20]
	bl	_avio_r8
	ldr	w2, [x23]
	sub	w8, w2, #1
	str	w0, [x21, w8, sxtw #2]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_memcmp
	cbnz	x0, LBB0_3
LBB0_5:
	ldr	w1, [x24]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w2, #0
	csel	w0, w2, w8, lt
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LXF_IDENT_LENGTH,4,2           ; @LXF_IDENT_LENGTH
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_LXF_IDENT,4,2                  ; @LXF_IDENT
	.no_dead_strip	_lxf_sync
.subsections_via_symbols
