	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_register              ## -- Begin function snd_emux_register
	.p2align	4, 0x90
_snd_emux_register:                     ## @snd_emux_register
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$0, 72(%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setle	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:
	testq	%r14, %r14
	sete	%al
	testq	%r12, %r12
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, 64(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_kstrdup
	movl	%eax, 56(%rbx)
	movq	(%rbx), %rdi
	movl	(%r13), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, -48(%rbp)
	cmpq	$0, 40(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_sf_sample_new@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
LBB0_11:
	cmpq	$0, 32(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_sf_sample_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
LBB0_13:
	cmpq	$0, 24(%rbx)
	je	LBB0_15
## %bb.14:
	movq	_sf_sample_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
LBB0_15:
	movl	16(%rbx), %esi
	leaq	-64(%rbp), %rdi
	callq	_snd_sf_new
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.16:
	movq	%rbx, %rdi
	callq	_snd_emux_init_hwdep
	testl	%eax, %eax
	js	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_snd_emux_init_voices
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_snd_emux_init_seq
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_snd_emux_init_virmidi
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sf_sample_new,4,2              ## @sf_sample_new
	.comm	_sf_sample_free,4,2             ## @sf_sample_free
	.comm	_sf_sample_reset,4,2            ## @sf_sample_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_register              ; -- Begin function snd_emux_register
	.p2align	2
_snd_emux_register:                     ; @snd_emux_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #72]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #1
	cset	w0, lt
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_4
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_4
LBB0_3:
	cmp	x19, #0
	ccmp	x22, #0, #4, ne
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	str	x19, [x20, #64]
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_kstrdup
	str	w0, [x20, #56]
	ldr	x0, [x20]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x20, #48]
	cbz	x0, LBB0_17
; %bb.8:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x20, [sp, #24]
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_10
; %bb.9:
Lloh4:
	adrp	x8, _sf_sample_new@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sf_sample_new@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #16]
LBB0_10:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_12
; %bb.11:
Lloh7:
	adrp	x8, _sf_sample_free@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sf_sample_free@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_12:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_14
; %bb.13:
Lloh10:
	adrp	x8, _sf_sample_reset@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sf_sample_reset@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_14:
	ldr	w1, [x20, #16]
	add	x0, sp, #8
	bl	_snd_sf_new
	str	x0, [x20, #8]
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_snd_emux_init_hwdep
	tbnz	w0, #31, LBB0_6
; %bb.16:
	mov	x0, x20
	bl	_snd_emux_init_voices
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_snd_emux_init_seq
	mov	x0, x20
	mov	x1, x19
	bl	_snd_emux_init_virmidi
	mov	w0, #0
	b	LBB0_6
LBB0_17:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sf_sample_new,4,2              ; @sf_sample_new
	.comm	_sf_sample_free,4,2             ; @sf_sample_free
	.comm	_sf_sample_reset,4,2            ; @sf_sample_reset
.subsections_via_symbols
