	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_set_audio_codec
_flv_set_audio_codec:                   ## @flv_set_audio_codec
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	leal	-128(%rbx), %eax
	cmpl	$10, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	cmpl	$8, (%r14)
	jne	LBB0_4
## %bb.9:
	movq	_AV_CODEC_ID_PCM_U8@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	movq	_AV_CODEC_ID_ADPCM_SWF@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_6:
	movq	_FLV_AUDIO_CODECID_OFFSET@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	movl	%ebx, %edx
	sarl	%cl, %edx
	leaq	L_.str(%rip), %rsi
	callq	_avpriv_request_sample
	movb	(%r15), %cl
	sarl	%cl, %ebx
	movl	%ebx, 8(%r14)
	jmp	LBB0_17
LBB0_2:
	movq	_AV_CODEC_ID_SPEEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movl	$16000, 4(%r14)                 ## imm = 0x3E80
	jmp	LBB0_17
LBB0_7:
	movl	$8000, 4(%r14)                  ## imm = 0x1F40
	movq	_AV_CODEC_ID_PCM_MULAW@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	movl	$8000, 4(%r14)                  ## imm = 0x1F40
	movq	_AV_CODEC_ID_PCM_ALAW@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movl	$8000, 4(%r14)                  ## imm = 0x1F40
	movq	_AV_CODEC_ID_NELLYMOSER@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	movl	$16000, 4(%r14)                 ## imm = 0x3E80
LBB0_13:
	movq	_AV_CODEC_ID_NELLYMOSER@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_AV_CODEC_ID_MP3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_AVSTREAM_PARSE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	jmp	LBB0_17
LBB0_15:
	movq	_AV_CODEC_ID_AAC@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_4:
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_5
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_AV_CODEC_ID_PCM_U8,8,3         ## @AV_CODEC_ID_PCM_U8
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_AAC,8,3            ## @AV_CODEC_ID_AAC
	.comm	_AV_CODEC_ID_ADPCM_SWF,8,3      ## @AV_CODEC_ID_ADPCM_SWF
	.comm	_AV_CODEC_ID_SPEEX,8,3          ## @AV_CODEC_ID_SPEEX
	.comm	_AV_CODEC_ID_MP3,8,3            ## @AV_CODEC_ID_MP3
	.comm	_AVSTREAM_PARSE_FULL,4,2        ## @AVSTREAM_PARSE_FULL
	.comm	_AV_CODEC_ID_NELLYMOSER,8,3     ## @AV_CODEC_ID_NELLYMOSER
	.comm	_AV_CODEC_ID_PCM_MULAW,8,3      ## @AV_CODEC_ID_PCM_MULAW
	.comm	_AV_CODEC_ID_PCM_ALAW,8,3       ## @AV_CODEC_ID_PCM_ALAW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Audio codec (%x)"

	.comm	_FLV_AUDIO_CODECID_OFFSET,4,2   ## @FLV_AUDIO_CODECID_OFFSET
	.comm	_AV_CODEC_ID_PCM_S16BE,8,3      ## @AV_CODEC_ID_PCM_S16BE
	.no_dead_strip	_flv_set_audio_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flv_set_audio_codec
_flv_set_audio_codec:                   ; @flv_set_audio_codec
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	sub	w8, w3, #128
	cmp	w8, #10
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _AV_CODEC_ID_PCM_U8@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_U8@GOTPAGEOFF]
Lloh4:
	adrp	x10, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
	cmp	w8, #8
	csel	x8, x9, x10, eq
	b	LBB0_14
LBB0_3:
	mov	x20, x3
Lloh6:
	adrp	x21, _FLV_AUDIO_CODECID_OFFSET@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FLV_AUDIO_CODECID_OFFSET@GOTPAGEOFF]
	ldr	w8, [x21]
	asr	w2, w3, w8
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_request_sample
	ldr	w8, [x21]
	asr	w8, w20, w8
	str	w8, [x19, #8]
	b	LBB0_15
LBB0_4:
Lloh10:
	adrp	x8, _AV_CODEC_ID_SPEEX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_CODEC_ID_SPEEX@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	w8, #16000
	str	w8, [x19, #4]
	b	LBB0_15
LBB0_5:
	mov	w8, #8000
	str	w8, [x19, #4]
Lloh13:
	adrp	x8, _AV_CODEC_ID_PCM_MULAW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_MULAW@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
	mov	w8, #8000
	str	w8, [x19, #4]
Lloh15:
	adrp	x8, _AV_CODEC_ID_PCM_ALAW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_ALAW@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	mov	w8, #8000
	b	LBB0_9
LBB0_8:
	mov	w8, #16000
LBB0_9:
	str	w8, [x19, #4]
LBB0_10:
Lloh17:
	adrp	x8, _AV_CODEC_ID_NELLYMOSER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_CODEC_ID_NELLYMOSER@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh19:
	adrp	x8, _AV_CODEC_ID_MP3@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_CODEC_ID_MP3@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh22:
	adrp	x8, _AVSTREAM_PARSE_FULL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AVSTREAM_PARSE_FULL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x1]
	b	LBB0_15
LBB0_12:
Lloh25:
	adrp	x8, _AV_CODEC_ID_ADPCM_SWF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_CODEC_ID_ADPCM_SWF@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh27:
	adrp	x8, _AV_CODEC_ID_AAC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_CODEC_ID_AAC@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_AV_CODEC_ID_PCM_U8,8,3         ; @AV_CODEC_ID_PCM_U8
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_AAC,8,3            ; @AV_CODEC_ID_AAC
	.comm	_AV_CODEC_ID_ADPCM_SWF,8,3      ; @AV_CODEC_ID_ADPCM_SWF
	.comm	_AV_CODEC_ID_SPEEX,8,3          ; @AV_CODEC_ID_SPEEX
	.comm	_AV_CODEC_ID_MP3,8,3            ; @AV_CODEC_ID_MP3
	.comm	_AVSTREAM_PARSE_FULL,4,2        ; @AVSTREAM_PARSE_FULL
	.comm	_AV_CODEC_ID_NELLYMOSER,8,3     ; @AV_CODEC_ID_NELLYMOSER
	.comm	_AV_CODEC_ID_PCM_MULAW,8,3      ; @AV_CODEC_ID_PCM_MULAW
	.comm	_AV_CODEC_ID_PCM_ALAW,8,3       ; @AV_CODEC_ID_PCM_ALAW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Audio codec (%x)"

	.comm	_FLV_AUDIO_CODECID_OFFSET,4,2   ; @FLV_AUDIO_CODECID_OFFSET
	.comm	_AV_CODEC_ID_PCM_S16BE,8,3      ; @AV_CODEC_ID_PCM_S16BE
	.no_dead_strip	_flv_set_audio_codec
.subsections_via_symbols
