	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rawmidi_runtime_create
_snd_rawmidi_runtime_create:            ## @snd_rawmidi_runtime_create
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	64(%rax), %rdi
	callq	_spin_lock_init
	leaq	60(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	(%r14), %rax
	movq	_SNDRV_RAWMIDI_STREAM_INPUT@GOTPCREL(%rip), %r13
	movq	%rbx, %rdi
	addq	$56, %rdi
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.4:
	movq	_snd_rawmidi_input_event_tasklet@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_snd_rawmidi_output_trigger_tasklet@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_tasklet_init
	movq	$0, 48(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%rbx)
	movl	$1, (%rbx)
	movq	(%r14), %rax
	xorl	%r15d, %r15d
	cmpq	(%r13), %rax
	movl	$0, %eax
	cmovneq	%rdi, %rax
	movq	%rax, 40(%rbx)
	movl	(%r12), %esi
	callq	_kmalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%rbx, 8(%r14)
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,8,3 ## @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_snd_rawmidi_input_event_tasklet,4,2 ## @snd_rawmidi_input_event_tasklet
	.comm	_snd_rawmidi_output_trigger_tasklet,4,2 ## @snd_rawmidi_output_trigger_tasklet
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_snd_rawmidi_runtime_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_rawmidi_runtime_create
_snd_rawmidi_runtime_create:            ; @snd_rawmidi_runtime_create
	.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
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x0, x0, #64
	bl	_spin_lock_init
	add	x0, x20, #60
	bl	_init_waitqueue_head
	ldr	x8, [x19]
Lloh2:
	adrp	x22, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh4:
	adrp	x10, _snd_rawmidi_input_event_tasklet@GOTPAGE
Lloh5:
	ldr	x10, [x10, _snd_rawmidi_input_event_tasklet@GOTPAGEOFF]
	add	x0, x20, #56
Lloh6:
	adrp	x11, _snd_rawmidi_output_trigger_tasklet@GOTPAGE
Lloh7:
	ldr	x11, [x11, _snd_rawmidi_output_trigger_tasklet@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	str	x0, [x20, #24]
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	csel	x8, xzr, x0, eq
	stp	x8, xzr, [x20, #40]
	ldr	w1, [x21]
	bl	_kmalloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #0
	stp	xzr, xzr, [x20, #8]
	str	x20, [x19, #8]
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_kfree
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,8,3 ; @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_snd_rawmidi_input_event_tasklet,4,2 ; @snd_rawmidi_input_event_tasklet
	.comm	_snd_rawmidi_output_trigger_tasklet,4,2 ; @snd_rawmidi_output_trigger_tasklet
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_snd_rawmidi_runtime_create
.subsections_via_symbols
