	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpu_synth_close
_mpu_synth_close:                       ## @mpu_synth_close
	.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	_synth_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
	movq	_dev_conf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movslq	%eax, %rbx
	movl	%ebx, %edi
	movl	$21, %esi
	xorl	%edx, %edx
	callq	_mpu_cmd
	movl	%ebx, %edi
	movl	$138, %esi
	xorl	%edx, %edx
	callq	_mpu_cmd
	leaq	(%rbx,%rbx,2), %r15
	movq	$0, 16(%r14,%r15,8)
	movq	_midi_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	movq	_COPR_MIDI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*8(%rbx)
	movl	(%rbx), %edi
	callq	_module_put
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14,%r15,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_synth_devs,8,3                 ## @synth_devs
	.comm	_dev_conf,8,3                   ## @dev_conf
	.comm	_midi_devs,8,3                  ## @midi_devs
	.comm	_COPR_MIDI,4,2                  ## @COPR_MIDI
	.no_dead_strip	_mpu_synth_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpu_synth_close
_mpu_synth_close:                       ; @mpu_synth_close
	.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
Lloh0:
	adrp	x8, _synth_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _synth_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _dev_conf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dev_conf@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	sxtw	x21, w19
	mov	x0, x19
	mov	w1, #21
	mov	w2, #0
	bl	_mpu_cmd
	mov	x0, x19
	mov	w1, #138
	mov	w2, #0
	bl	_mpu_cmd
	mov	w8, #24
	smaddl	x8, w19, w8, x20
	str	xzr, [x8, #16]
Lloh6:
	adrp	x8, _midi_devs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _midi_devs@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8, w19, sxtw #3]
	ldr	x19, [x8]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x9, _COPR_MIDI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _COPR_MIDI@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	blr	x8
	ldr	w0, [x19]
	bl	_module_put
LBB0_2:
	mov	w8, #24
	madd	x8, x21, x8, x20
	stp	xzr, xzr, [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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_synth_devs,8,3                 ; @synth_devs
	.comm	_dev_conf,8,3                   ; @dev_conf
	.comm	_midi_devs,8,3                  ; @midi_devs
	.comm	_COPR_MIDI,4,2                  ; @COPR_MIDI
	.no_dead_strip	_mpu_synth_close
.subsections_via_symbols
