	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_frame_sync_                    ## -- Begin function frame_sync_
	.p2align	4, 0x90
_frame_sync_:                           ## @frame_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_FLAC__stream_decoder_get_total_samples
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_FLAC__stream_decoder_get_total_samples
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_2:
	movq	8(%r12), %rax
	movl	32(%rax), %edi
	callq	_FLAC__bitreader_is_consumed_byte_aligned
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	8(%r12), %rax
	movl	32(%rax), %r14d
	movl	%r14d, %edi
	callq	_FLAC__bitreader_bits_left_for_byte_alignment
	leaq	-36(%rbp), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_FLAC__bitreader_read_raw_uint32
	testl	%eax, %eax
	je	LBB0_21
LBB0_4:
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r14
	movq	_FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	cmpl	$0, 8(%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%rcx), %eax
	movl	%eax, -36(%rbp)
	movl	$0, 8(%rcx)
	cmpl	$255, %eax
	je	LBB0_9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	32(%rcx), %edi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_FLAC__bitreader_read_raw_uint32
	testl	%eax, %eax
	je	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-36(%rbp), %eax
	cmpl	$255, %eax
	jne	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %rax
	movq	16(%rax), %rax
	movq	$255, (%rax)
	movq	8(%r12), %rax
	movl	32(%rax), %edi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_FLAC__bitreader_read_raw_uint32
	testl	%eax, %eax
	je	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-36(%rbp), %eax
	cmpq	$255, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %rax
	movq	$255, 24(%rax)
	movl	$1, 8(%rax)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$248, %ecx
	je	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %bl
	movb	$1, %bl
	jne	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_send_error_to_client_
	movb	$1, %bl
	jmp	LBB0_5
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_15:
	movq	_FLAC__STREAM_DECODER_END_OF_STREAM@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	8(%r12), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	_FLAC__STREAM_DECODER_READ_FRAME@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movl	$1, %eax
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__STREAM_DECODER_END_OF_STREAM,4,2 ## @FLAC__STREAM_DECODER_END_OF_STREAM
	.comm	_FLAC__STREAM_DECODER_READ_FRAME,4,2 ## @FLAC__STREAM_DECODER_READ_FRAME
	.comm	_FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC,4,2 ## @FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_frame_sync_                    ; -- Begin function frame_sync_
	.p2align	2
_frame_sync_:                           ; @frame_sync_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_FLAC__stream_decoder_get_total_samples
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	mov	x0, x19
	bl	_FLAC__stream_decoder_get_total_samples
	cmp	x20, x0
	b.ge	LBB0_15
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #32]
	bl	_FLAC__bitreader_is_consumed_byte_aligned
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w20, [x8, #32]
	mov	x0, x20
	bl	_FLAC__bitreader_bits_left_for_byte_alignment
	mov	x2, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	_FLAC__bitreader_read_raw_uint32
	cbz	w0, LBB0_18
LBB0_4:
	mov	w8, #0
	mov	w20, #255
	mov	w21, #1
Lloh0:
	adrp	x22, _FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	ldr	x9, [x19, #8]
	ldr	w8, [x9, #8]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x9, #24]
	str	w8, [sp, #12]
	str	wzr, [x9, #8]
	cmp	w8, #255
	b.eq	LBB0_9
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x9, #32]
	add	x1, sp, #12
	mov	w2, #8
	bl	_FLAC__bitreader_read_raw_uint32
	cbz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #255
	b.ne	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	str	x20, [x8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #32]
	add	x1, sp, #12
	mov	w2, #8
	bl	_FLAC__bitreader_read_raw_uint32
	cbz	w0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #255
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	str	x20, [x8, #24]
	str	w21, [x8, #8]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w8, #0xfffffffe
	cmp	w9, #248
	b.eq	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	tbnz	w23, #0, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_send_error_to_client_
	mov	w8, #1
	b	LBB0_5
LBB0_15:
Lloh2:
	adrp	x8, _FLAC__STREAM_DECODER_END_OF_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLAC__STREAM_DECODER_END_OF_STREAM@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	ldr	x9, [x19, #8]
	ldr	x9, [x9, #16]
	str	x8, [x9, #8]
Lloh4:
	adrp	x8, _FLAC__STREAM_DECODER_READ_FRAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FLAC__STREAM_DECODER_READ_FRAME@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	mov	w0, #1
LBB0_18:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__STREAM_DECODER_END_OF_STREAM,4,2 ; @FLAC__STREAM_DECODER_END_OF_STREAM
	.comm	_FLAC__STREAM_DECODER_READ_FRAME,4,2 ; @FLAC__STREAM_DECODER_READ_FRAME
	.comm	_FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC,4,2 ; @FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC
.subsections_via_symbols
