	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsm_decode_frame
_gsm_decode_frame:                      ## @gsm_decode_frame
	.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	%rdi, %r15
	movl	(%rcx), %r13d
	cmpl	(%rdi), %r13d
	jge	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	8(%rcx), %r12
	movl	8(%r15), %eax
	movl	%eax, 8(%rsi)
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movl	4(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.5:
	shll	$3, %r13d
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_init_get_bits
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	callq	_get_bits
	cmpl	$13, %eax
	je	LBB0_7
## %bb.6:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_7:
	movq	_GSM_13000@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_gsm_decode_block
	testl	%eax, %eax
	jns	LBB0_10
	jmp	LBB0_12
LBB0_8:
	movq	_GSM_MS_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	(%r15), %eax
	cltq
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rax
	shrq	$63, %rax
	shrq	$32, %rcx
	addl	%eax, %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ff_msgsm_decode_block
	testl	%eax, %eax
	js	LBB0_12
LBB0_10:
	movl	$1, (%r14)
LBB0_11:
	movl	(%r15), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Missing GSM magic!\n"

	.comm	_GSM_13000,4,2                  ## @GSM_13000
	.comm	_GSM_MS_BLOCK_SIZE,4,2          ## @GSM_MS_BLOCK_SIZE
	.no_dead_strip	_gsm_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsm_decode_frame
_gsm_decode_frame:                      ; @gsm_decode_frame
	.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
	ldr	w23, [x3]
	ldr	w8, [x0]
	cmp	w23, w8
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh5:
	adrp	x19, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x19, [x19, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x3, #8]
	ldr	w8, [x19, #8]
	str	w8, [x1, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	x8, [x21]
	ldr	x21, [x8]
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.5:
	lsl	w2, w23, #3
	add	x0, sp, #12
	mov	x1, x22
	bl	_init_get_bits
	add	x0, sp, #12
	mov	w1, #4
	bl	_get_bits
	cmp	w0, #13
	b.eq	LBB0_7
; %bb.6:
Lloh7:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_7:
Lloh12:
	adrp	x8, _GSM_13000@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSM_13000@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_gsm_decode_block
	tbz	w0, #31, LBB0_9
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x8, _GSM_MS_BLOCK_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GSM_MS_BLOCK_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	sub	w8, w8, w9
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w3, w8, w9
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_ff_msgsm_decode_block
	tbnz	w0, #31, LBB0_11
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
LBB0_10:
	ldr	w0, [x19]
LBB0_11:
	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	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Missing GSM magic!\n"

	.comm	_GSM_13000,4,2                  ; @GSM_13000
	.comm	_GSM_MS_BLOCK_SIZE,4,2          ; @GSM_MS_BLOCK_SIZE
	.no_dead_strip	_gsm_decode_frame
.subsections_via_symbols
