	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ADPCM_GetFormatIndex
_ADPCM_GetFormatIndex:                  ## @ADPCM_GetFormatIndex
	.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
	movq	%rdi, %r15
	movl	(%rdi), %ecx
	movl	$-1, %eax
	cmpl	$128, %ecx
	je	LBB0_1
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_21
## %bb.3:
	movq	_ADPCM_Formats@GOTPCREL(%rip), %r14
	jmp	LBB0_4
LBB0_1:
	movq	_PCM_Formats@GOTPCREL(%rip), %r14
LBB0_4:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	movq	(%r14), %rcx
	movq	8(%r15), %rdx
	movl	%eax, %esi
	addq	$16, %rcx
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rdi
	addq	$24, %rcx
	cmpq	%rdi, %rsi
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-16(%rcx), %rdx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r15), %rbx
	cmpq	-8(%rcx), %rbx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r15), %rbx
	cmpq	(%rcx), %rbx
	jne	LBB0_9
## %bb.20:
	movl	%edi, %eax
	jmp	LBB0_21
LBB0_10:
	movl	(%r15), %ecx
	cmpl	$129, %ecx
	je	LBB0_16
## %bb.11:
	cmpl	$128, %ecx
	jne	LBB0_19
## %bb.12:
	movq	8(%r15), %rcx
	leaq	-1(%rcx), %rdx
	cmpq	$1, %rdx
	ja	LBB0_19
## %bb.13:
	movslq	32(%r15), %rdx
	addq	%rcx, %rcx
	movq	16(%r15), %rsi
	imulq	%rcx, %rsi
	cmpq	%rdx, %rsi
	jne	LBB0_19
## %bb.14:
	movslq	36(%r15), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_19
## %bb.15:
	cmpq	$16, 24(%r15)
	jne	LBB0_19
	jmp	LBB0_21
LBB0_16:
	movq	8(%r15), %rcx
	decq	%rcx
	cmpq	$1, %rcx
	ja	LBB0_19
## %bb.17:
	cmpq	$4, 24(%r15)
	jne	LBB0_19
## %bb.18:
	cmpl	$2, 40(%r15)
	je	LBB0_21
LBB0_19:
	movl	$-1, %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCM_Formats,8,3                ## @PCM_Formats
	.comm	_ADPCM_Formats,8,3              ## @ADPCM_Formats
	.no_dead_strip	_ADPCM_GetFormatIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ADPCM_GetFormatIndex
_ADPCM_GetFormatIndex:                  ; @ADPCM_GetFormatIndex
	.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	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_20
; %bb.2:
Lloh0:
	adrp	x20, _ADPCM_Formats@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ADPCM_Formats@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x20, _PCM_Formats@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PCM_Formats@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x8, #0
	ldr	x11, [x20]
	ldr	x9, [x19, #8]
	mov	w10, w0
	add	x11, x11, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	add	x11, x11, #24
	cmp	x10, x8
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x11, #-8]
	cmp	x9, x12
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x12, [x19, #16]
	ldr	x13, [x11]
	cmp	x12, x13
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x12, [x19, #24]
	ldr	x13, [x11, #8]
	cmp	x12, x13
	b.ne	LBB0_6
; %bb.10:
	mov	x0, x8
	b	LBB0_21
LBB0_11:
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.12:
	cmp	w8, #128
	b.ne	LBB0_20
; %bb.13:
	ldr	x8, [x19, #8]
	sub	x9, x8, #1
	cmp	x9, #1
	b.hi	LBB0_20
; %bb.14:
	ldrsw	x9, [x19, #32]
	ldr	x10, [x19, #16]
	lsl	x8, x8, #1
	mul	x10, x8, x10
	cmp	x10, x9
	b.ne	LBB0_20
; %bb.15:
	ldrsw	x9, [x19, #36]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.16:
	ldr	x8, [x19, #24]
	cmp	x8, #16
	b.ne	LBB0_20
	b	LBB0_21
LBB0_17:
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	cmp	x8, #1
	b.hi	LBB0_20
; %bb.18:
	ldr	x8, [x19, #24]
	cmp	x8, #4
	b.ne	LBB0_20
; %bb.19:
	ldr	w8, [x19, #40]
	cmp	w8, #2
	b.eq	LBB0_21
LBB0_20:
	mov	w0, #-1
LBB0_21:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PCM_Formats,8,3                ; @PCM_Formats
	.comm	_ADPCM_Formats,8,3              ; @ADPCM_Formats
	.no_dead_strip	_ADPCM_GetFormatIndex
.subsections_via_symbols
