	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_adts_header_parse           ## -- Begin function ff_adts_header_parse
	.p2align	4, 0x90
_ff_adts_header_parse:                  ## @ff_adts_header_parse
	.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
	pushq	%rax
	.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, %rbx
	movl	$12, %esi
	callq	_get_bits
	cmpl	$4095, %eax                     ## imm = 0xFFF
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	_avpriv_mpeg4audio_sample_rates@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %r15
	cmpl	$0, (%rcx,%r15,4)
	je	LBB0_3
## %bb.4:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_get_bits
	movl	%eax, %r13d
	movq	_AV_AAC_ADTS_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_6
## %bb.5:
	movq	_AAC_AC3_PARSE_ERROR_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_7
LBB0_1:
	movq	_AAC_AC3_PARSE_ERROR_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_7
LBB0_3:
	movq	_AAC_AC3_PARSE_ERROR_SAMPLE_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	movl	$11, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, %ecx
	incl	%r12d
	movl	%r12d, (%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	incl	%ecx
	movl	%ecx, 12(%r14)
	movl	%r15d, 16(%r14)
	movq	_avpriv_mpeg4audio_sample_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edx
	movl	%edx, 20(%r14)
	shll	$10, %ecx
	movl	%ecx, 24(%r14)
	movl	%r13d, %eax
	imull	%edx, %eax
	shll	$3, %eax
	cltd
	idivl	%ecx
	movl	%eax, 28(%r14)
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AAC_AC3_PARSE_ERROR_SYNC,4,2   ## @AAC_AC3_PARSE_ERROR_SYNC
	.comm	_avpriv_mpeg4audio_sample_rates,8,3 ## @avpriv_mpeg4audio_sample_rates
	.comm	_AAC_AC3_PARSE_ERROR_SAMPLE_RATE,4,2 ## @AAC_AC3_PARSE_ERROR_SAMPLE_RATE
	.comm	_AV_AAC_ADTS_HEADER_SIZE,4,2    ## @AV_AAC_ADTS_HEADER_SIZE
	.comm	_AAC_AC3_PARSE_ERROR_FRAME_SIZE,4,2 ## @AAC_AC3_PARSE_ERROR_FRAME_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_adts_header_parse           ; -- Begin function ff_adts_header_parse
	.p2align	2
_ff_adts_header_parse:                  ; @ff_adts_header_parse
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	w1, #12
	bl	_get_bits
	cmp	w0, #4095
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	mov	w1, #2
	bl	_skip_bits
	mov	x0, x20
	bl	_get_bits1
	mov	x21, x0
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	mov	x22, x0
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
Lloh0:
	adrp	x26, _avpriv_mpeg4audio_sample_rates@GOTPAGE
Lloh1:
	ldr	x26, [x26, _avpriv_mpeg4audio_sample_rates@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w8, [x8, w0, sxtw #2]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x23, x0
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
	mov	x25, x0
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	mov	w1, #13
	bl	_get_bits
Lloh2:
	adrp	x8, _AV_AAC_ADTS_HEADER_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_AAC_ADTS_HEADER_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _AAC_AC3_PARSE_ERROR_FRAME_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AAC_AC3_PARSE_ERROR_FRAME_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _AAC_AC3_PARSE_ERROR_SYNC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AAC_AC3_PARSE_ERROR_SYNC@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _AAC_AC3_PARSE_ERROR_SAMPLE_RATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AAC_AC3_PARSE_ERROR_SAMPLE_RATE@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
	b	LBB0_7
LBB0_6:
	mov	x24, x0
	sxtw	x27, w23
	mov	x0, x20
	mov	w1, #11
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	add	w8, w22, #1
	stp	w8, w25, [x19]
	add	w8, w0, #1
	stp	w21, w8, [x19, #8]
	str	w23, [x19, #16]
	ldr	x9, [x26]
	ldr	w9, [x9, x27, lsl #2]
	lsl	w8, w8, #10
	stp	w9, w8, [x19, #20]
	mul	w9, w24, w9
	lsl	w9, w9, #3
	sdiv	w8, w9, w8
	str	w8, [x19, #28]
LBB0_7:
	mov	x0, x24
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AAC_AC3_PARSE_ERROR_SYNC,4,2   ; @AAC_AC3_PARSE_ERROR_SYNC
	.comm	_avpriv_mpeg4audio_sample_rates,8,3 ; @avpriv_mpeg4audio_sample_rates
	.comm	_AAC_AC3_PARSE_ERROR_SAMPLE_RATE,4,2 ; @AAC_AC3_PARSE_ERROR_SAMPLE_RATE
	.comm	_AV_AAC_ADTS_HEADER_SIZE,4,2    ; @AV_AAC_ADTS_HEADER_SIZE
	.comm	_AAC_AC3_PARSE_ERROR_FRAME_SIZE,4,2 ; @AAC_AC3_PARSE_ERROR_FRAME_SIZE
.subsections_via_symbols
