	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsm_read_header
_gsm_read_header:                       ## @gsm_read_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rcx
	movl	%eax, 20(%rcx)
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movl	$1, (%rcx)
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movl	(%r14), %eax
	movl	%eax, 4(%rcx)
	movq	_GSM_BLOCK_SIZE@GOTPCREL(%rip), %rdx
	imull	(%rdx), %eax
	shll	$3, %eax
	movq	_GSM_BLOCK_SAMPLES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cltd
	idivl	%ebx
	movl	%eax, 8(%rcx)
	movq	_GSM_SAMPLE_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$64, %esi
	movl	%ebx, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_GSM_BLOCK_SIZE,4,2             ## @GSM_BLOCK_SIZE
	.comm	_GSM_BLOCK_SAMPLES,4,2          ## @GSM_BLOCK_SAMPLES
	.comm	_GSM_SAMPLE_RATE,4,2            ## @GSM_SAMPLE_RATE
	.no_dead_strip	_gsm_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsm_read_header
_gsm_read_header:                       ; @gsm_read_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
	ldr	x10, [x19]
	ldr	w10, [x10]
	stp	w10, w8, [x9, #16]
	mov	w8, #1
Lloh3:
	adrp	x10, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
	ldr	w11, [x20]
	stp	w8, w11, [x9]
Lloh5:
	ldr	w8, [x10]
Lloh6:
	adrp	x10, _GSM_BLOCK_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GSM_BLOCK_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mul	w10, w11, w10
	lsl	w10, w10, #3
Lloh9:
	adrp	x11, _GSM_BLOCK_SAMPLES@GOTPAGE
Lloh10:
	ldr	x11, [x11, _GSM_BLOCK_SAMPLES@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x11]
	sdiv	w10, w10, w2
	stp	w10, w8, [x9, #8]
Lloh12:
	adrp	x8, _GSM_SAMPLE_RATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSM_SAMPLE_RATE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	w1, #64
	bl	_avpriv_set_pts_info
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_GSM_BLOCK_SIZE,4,2             ; @GSM_BLOCK_SIZE
	.comm	_GSM_BLOCK_SAMPLES,4,2          ; @GSM_BLOCK_SAMPLES
	.comm	_GSM_SAMPLE_RATE,4,2            ; @GSM_SAMPLE_RATE
	.no_dead_strip	_gsm_read_header
.subsections_via_symbols
