	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ADPCM_StreamConvert
_ADPCM_StreamConvert:                   ## @ADPCM_StreamConvert
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	40(%rsi), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rsi), %rax
	movq	%rax, -40(%rbp)
	movl	(%rsi), %esi
	movq	_ACM_STREAMCONVERTF_BLOCKALIGN@GOTPCREL(%rip), %rax
	movq	_ACM_STREAMCONVERTF_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ACM_STREAMCONVERTF_START@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	orl	%eax, %ecx
	notl	%ecx
	testl	%ecx, %esi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movl	(%rbx), %esi
	movl	(%r12), %eax
LBB0_2:
	testl	%esi, %eax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ADPCM_Reset
LBB0_4:
	movl	24(%rbx), %ecx
	movl	28(%rbx), %esi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %r8
	movq	%r15, %rdi
	callq	*(%r14)
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	-40(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	_MMSYSERR_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACM_STREAMCONVERTF_BLOCKALIGN,4,2 ## @ACM_STREAMCONVERTF_BLOCKALIGN
	.comm	_ACM_STREAMCONVERTF_END,4,2     ## @ACM_STREAMCONVERTF_END
	.comm	_ACM_STREAMCONVERTF_START,4,2   ## @ACM_STREAMCONVERTF_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported fdwConvert (%08x), ignoring it\n"

	.comm	_MMSYSERR_NOERROR,4,2           ## @MMSYSERR_NOERROR
	.no_dead_strip	_ADPCM_StreamConvert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ADPCM_StreamConvert
_ADPCM_StreamConvert:                   ; @ADPCM_StreamConvert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldp	x9, x8, [x1, #32]
	stp	x9, x8, [sp]
	ldr	w1, [x1]
Lloh0:
	adrp	x8, _ACM_STREAMCONVERTF_BLOCKALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACM_STREAMCONVERTF_BLOCKALIGN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ACM_STREAMCONVERTF_END@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACM_STREAMCONVERTF_END@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, w8
Lloh6:
	adrp	x22, _ACM_STREAMCONVERTF_START@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ACM_STREAMCONVERTF_START@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w9, w9, w8
	bics	wzr, w1, w9
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	ldr	w1, [x19]
	ldr	w8, [x22]
LBB0_2:
	tst	w8, w1
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_ADPCM_Reset
LBB0_4:
	ldr	x8, [x21]
	ldp	w3, w1, [x19, #24]
	add	x2, sp, #8
	mov	x4, sp
	mov	x0, x20
	blr	x8
	ldp	x9, x8, [sp]
	stp	x9, x8, [x19, #8]
Lloh10:
	adrp	x8, _MMSYSERR_NOERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMSYSERR_NOERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ACM_STREAMCONVERTF_BLOCKALIGN,4,2 ; @ACM_STREAMCONVERTF_BLOCKALIGN
	.comm	_ACM_STREAMCONVERTF_END,4,2     ; @ACM_STREAMCONVERTF_END
	.comm	_ACM_STREAMCONVERTF_START,4,2   ; @ACM_STREAMCONVERTF_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported fdwConvert (%08x), ignoring it\n"

	.comm	_MMSYSERR_NOERROR,4,2           ; @MMSYSERR_NOERROR
	.no_dead_strip	_ADPCM_StreamConvert
.subsections_via_symbols
