	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rawmidi_free
_snd_rawmidi_free:                      ## @snd_rawmidi_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	callq	_snd_info_free_entry
	movq	$0, 24(%rbx)
	movq	_register_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_4:
	movq	_register_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_SNDRV_RAWMIDI_STREAM_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	callq	_snd_rawmidi_free_substreams
	movq	_SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	callq	_snd_rawmidi_free_substreams
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_7:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_register_mutex,4,2             ## @register_mutex
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,8,3 ## @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,8,3 ## @SNDRV_RAWMIDI_STREAM_OUTPUT
	.no_dead_strip	_snd_rawmidi_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_rawmidi_free
_snd_rawmidi_free:                      ; @snd_rawmidi_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	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	x0, [x0, #24]
	bl	_snd_info_free_entry
	str	xzr, [x19, #24]
Lloh0:
	adrp	x0, _register_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _register_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	blr	x8
LBB0_4:
Lloh2:
	adrp	x0, _register_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _register_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_snd_rawmidi_free_substreams
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_snd_rawmidi_free_substreams
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	blr	x8
LBB0_6:
	mov	x0, x19
	bl	_kfree
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_register_mutex,4,2             ; @register_mutex
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,8,3 ; @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,8,3 ; @SNDRV_RAWMIDI_STREAM_OUTPUT
	.no_dead_strip	_snd_rawmidi_free
.subsections_via_symbols
