	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ADPCM_FormatDetails
_ADPCM_FormatDetails:                   ## @ADPCM_FormatDetails
	.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, %rbx
	cmpl	$130, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$131, %esi
	jne	LBB0_8
## %bb.2:
	movq	32(%rbx), %rdi
	callq	_ADPCM_GetFormatIndex
	cmpl	$-1, %eax
	jne	LBB0_11
	jmp	LBB0_14
LBB0_4:
	movl	(%rbx), %esi
	movq	32(%rbx), %rax
	movl	%esi, (%rax)
	cmpl	$129, %esi
	je	LBB0_9
## %bb.5:
	cmpl	$128, %esi
	jne	LBB0_12
## %bb.6:
	movq	8(%rbx), %r15
	movq	_PCM_Formats@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r15
	jae	LBB0_14
## %bb.7:
	movq	(%r14), %rax
	movq	8(%rbx), %rcx
	movq	32(%rbx), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	%esi, 4(%rdx)
	movl	4(%rax,%rcx,4), %edi
	movl	%edi, 8(%rdx)
	movl	8(%rax,%rcx,4), %eax
	movl	%eax, 12(%rdx)
	imull	%esi, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 16(%rdx)
	imull	%edi, %ecx
	movl	%ecx, 20(%rdx)
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_MMSYSERR_NOTSUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	8(%rbx), %r15
	movq	_ADPCM_Formats@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r15
	jae	LBB0_14
## %bb.10:
	movq	(%r14), %rax
	movq	8(%rbx), %rcx
	movq	32(%rbx), %rdi
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %edx
	movl	%edx, 4(%rdi)
	movl	4(%rax,%rcx,4), %edx
	movl	%edx, 8(%rdi)
	movl	8(%rax,%rcx,4), %eax
	movl	%eax, 12(%rdi)
	callq	_init_wfx_ima_adpcm
LBB0_11:
	movq	_ACMDRIVERDETAILS_SUPPORTF_CODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	movq	_MMSYSERR_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_ACMERR_NOTPOSSIBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_MMSYSERR_INVALPARAM@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACMERR_NOTPOSSIBLE,4,2         ## @ACMERR_NOTPOSSIBLE
	.comm	_PCM_Formats,8,3                ## @PCM_Formats
	.comm	_ADPCM_Formats,8,3              ## @ADPCM_Formats
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported tag %08x\n"

	.comm	_MMSYSERR_INVALPARAM,4,2        ## @MMSYSERR_INVALPARAM
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported query %08x\n"

	.comm	_MMSYSERR_NOTSUPPORTED,4,2      ## @MMSYSERR_NOTSUPPORTED
	.comm	_ACMDRIVERDETAILS_SUPPORTF_CODEC,4,2 ## @ACMDRIVERDETAILS_SUPPORTF_CODEC
	.comm	_MMSYSERR_NOERROR,4,2           ## @MMSYSERR_NOERROR
	.no_dead_strip	_ADPCM_FormatDetails
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ADPCM_FormatDetails
_ADPCM_FormatDetails:                   ; @ADPCM_FormatDetails
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cmp	w1, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #131
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [x19, #32]
	bl	_ADPCM_GetFormatIndex
	cmn	w0, #1
	b.ne	LBB0_10
	b	LBB0_11
LBB0_3:
	ldr	w1, [x19]
	ldr	x8, [x19, #32]
	str	w1, [x8]
	cmp	w1, #129
	b.eq	LBB0_8
; %bb.4:
	cmp	w1, #128
	b.ne	LBB0_12
; %bb.5:
	ldr	x21, [x19, #8]
Lloh0:
	adrp	x20, _PCM_Formats@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCM_Formats@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_11
; %bb.6:
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldp	w9, w10, [x8]
	ldr	w8, [x8, #8]
	mul	w11, w8, w9
	add	w12, w11, #7
	cmp	w11, #0
	csel	w11, w12, w11, lt
	ldr	x12, [x19, #32]
	stp	w9, w10, [x12, #4]
	asr	w9, w11, #3
	stp	w8, w9, [x12, #12]
	mul	w8, w9, w10
	str	w8, [x12, #20]
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh4:
	adrp	x8, _MMSYSERR_NOTSUPPORTED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMSYSERR_NOTSUPPORTED@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	ldr	x21, [x19, #8]
Lloh6:
	adrp	x20, _ADPCM_Formats@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ADPCM_Formats@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_11
; %bb.9:
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	x0, [x19, #32]
	ldr	d0, [x8]
	stur	d0, [x0, #4]
	ldr	w8, [x8, #8]
	str	w8, [x0, #12]
	bl	_init_wfx_ima_adpcm
LBB0_10:
Lloh8:
	adrp	x8, _ACMDRIVERDETAILS_SUPPORTF_CODEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACMDRIVERDETAILS_SUPPORTF_CODEC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	str	xzr, [x8]
Lloh11:
	adrp	x8, _MMSYSERR_NOERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMSYSERR_NOERROR@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh13:
	adrp	x8, _ACMERR_NOTPOSSIBLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ACMERR_NOTPOSSIBLE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh17:
	adrp	x8, _MMSYSERR_INVALPARAM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMSYSERR_INVALPARAM@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ACMERR_NOTPOSSIBLE,4,2         ; @ACMERR_NOTPOSSIBLE
	.comm	_PCM_Formats,8,3                ; @PCM_Formats
	.comm	_ADPCM_Formats,8,3              ; @ADPCM_Formats
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported tag %08x\n"

	.comm	_MMSYSERR_INVALPARAM,4,2        ; @MMSYSERR_INVALPARAM
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported query %08x\n"

	.comm	_MMSYSERR_NOTSUPPORTED,4,2      ; @MMSYSERR_NOTSUPPORTED
	.comm	_ACMDRIVERDETAILS_SUPPORTF_CODEC,4,2 ; @ACMDRIVERDETAILS_SUPPORTF_CODEC
	.comm	_MMSYSERR_NOERROR,4,2           ; @MMSYSERR_NOERROR
	.no_dead_strip	_ADPCM_FormatDetails
.subsections_via_symbols
