	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libgsm_decode_frame
_libgsm_decode_frame:                   ## @libgsm_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), %eax
	cmpl	(%rdi), %eax
	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), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	8(%r15), %r13
	movq	8(%rcx), %r12
	movl	4(%r15), %eax
	movl	%eax, (%rsi)
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %eax
	movq	_GSM_FRAME_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	movq	8(%rbx), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_gsm_decode
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_GSM_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %r12
	movq	_GSM_FRAME_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leaq	(%rbx,%rcx,4), %rbx
	incl	%r14d
	movl	4(%r15), %eax
	cltd
	idivl	%ecx
	cmpl	%eax, %r14d
	jl	LBB0_5
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_6:
	movl	$-1, %eax
LBB0_9:
	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	_GSM_FRAME_SIZE,4,2             ## @GSM_FRAME_SIZE
	.comm	_GSM_BLOCK_SIZE,4,2             ## @GSM_BLOCK_SIZE
	.no_dead_strip	_libgsm_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libgsm_decode_frame
_libgsm_decode_frame:                   ; @libgsm_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x3]
	ldr	w9, [x0]
	cmp	w8, w9
	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	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_2:
	mov	x20, x2
	mov	x22, x1
	ldr	x23, [x19, #8]
	ldr	x21, [x3, #8]
	ldr	w8, [x19, #4]
	str	w8, [x1]
	mov	x0, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w8, [x19, #4]
Lloh8:
	adrp	x24, _GSM_FRAME_SIZE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GSM_FRAME_SIZE@GOTPAGEOFF]
	ldr	w9, [x24]
	sdiv	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w25, #0
	ldr	x8, [x22, #8]
	ldr	x22, [x8]
Lloh10:
	adrp	x26, _GSM_BLOCK_SIZE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _GSM_BLOCK_SIZE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	mov	x2, x22
	bl	_gsm_decode
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x26]
	add	x21, x21, x8, lsl #2
	ldrsw	x8, [x24]
	add	x22, x22, x8, lsl #2
	add	w25, w25, #1
	ldr	w9, [x19, #4]
	sdiv	w8, w9, w8
	cmp	w25, w8
	b.lt	LBB0_5
LBB0_7:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.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	_GSM_FRAME_SIZE,4,2             ; @GSM_FRAME_SIZE
	.comm	_GSM_BLOCK_SIZE,4,2             ; @GSM_BLOCK_SIZE
	.no_dead_strip	_libgsm_decode_frame
.subsections_via_symbols
