	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amr_decode_fix_avctx
_amr_decode_fix_avctx:                  ## @amr_decode_fix_avctx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	cmpl	$2, 12(%rdi)
	jl	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_1:
	movq	(%rdi), %rax
	movq	_AV_CODEC_ID_AMR_WB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$16000, %eax                    ## imm = 0x3E80
	movl	$8000, %ecx                     ## imm = 0x1F40
	cmovel	%eax, %ecx
	movl	%ecx, 8(%rdi)
	cmpl	$2, 12(%rdi)
	jge	LBB0_3
LBB0_4:
	movl	$1, 12(%rdi)
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movq	_AV_SAMPLE_FMT_S16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_AMR_WB,8,3         ## @AV_CODEC_ID_AMR_WB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multi-channel AMR"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_AV_SAMPLE_FMT_S16,4,2          ## @AV_SAMPLE_FMT_S16
	.no_dead_strip	_amr_decode_fix_avctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amr_decode_fix_avctx
_amr_decode_fix_avctx:                  ; @amr_decode_fix_avctx
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AV_CODEC_ID_AMR_WB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_AMR_WB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #8000
	mov	w9, #16000
	csel	w8, w9, w8, eq
	str	w8, [x0, #8]
LBB0_2:
	ldr	w8, [x0, #12]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_report_missing_feature
Lloh5:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_4:
	mov	w8, #0
	mov	w9, #1
Lloh8:
	adrp	x10, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	str	w10, [x0, #20]
Lloh11:
	adrp	x10, _AV_SAMPLE_FMT_S16@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AV_SAMPLE_FMT_S16@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	stp	w9, w10, [x0, #12]
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_AMR_WB,8,3         ; @AV_CODEC_ID_AMR_WB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multi-channel AMR"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_AV_SAMPLE_FMT_S16,4,2          ; @AV_SAMPLE_FMT_S16
	.no_dead_strip	_amr_decode_fix_avctx
.subsections_via_symbols
