	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_mem_init               ## -- Begin function snd_gf1_mem_init
	.p2align	4, 0x90
_snd_gf1_mem_init:                      ## @snd_gf1_mem_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$44, %rdi
	callq	_mutex_init
	movq	$0, 32(%rbx)
	movl	$0, 40(%rbx)
	cmpl	$0, 24(%rbx)
	je	LBB0_1
## %bb.2:
	leaq	32(%rbx), %r14
	leaq	-56(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_SNDRV_GF1_MEM_OWNER_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	$0, -40(%rbp)
	movl	$1024, -56(%rbp)                ## imm = 0x400
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_kstrdup
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_snd_gf1_mem_xalloc
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	8(%rbx), %rax
	movq	%rax, -40(%rbp)
	movl	$4, -56(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_kstrdup
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_snd_gf1_mem_xalloc
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_MEM_OWNER_DRIVER,4,2 ## @SNDRV_GF1_MEM_OWNER_DRIVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"InterWave LFOs"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Voice default (NULL's)"

	.comm	_snd_gf1_mem_info_read,4,2      ## @snd_gf1_mem_info_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_mem_init               ; -- Begin function snd_gf1_mem_init
	.p2align	2
_snd_gf1_mem_init:                      ; @snd_gf1_mem_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	add	x0, x0, #44
	bl	_mutex_init
	mov	x19, x20
	str	xzr, [x19, #32]!
	str	wzr, [x19, #8]
	ldur	w8, [x19, #-8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _SNDRV_GF1_MEM_OWNER_DRIVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_GF1_MEM_OWNER_DRIVER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [sp, #16]
	mov	w8, #1024
	str	w8, [sp]
	ldr	w1, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kstrdup
	str	x0, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	bl	_snd_gf1_mem_xalloc
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x8, [x20, #8]
	str	x8, [sp, #16]
	mov	w8, #4
	str	w8, [sp]
	ldr	w1, [x21]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kstrdup
	str	x0, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	bl	_snd_gf1_mem_xalloc
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_MEM_OWNER_DRIVER,4,2 ; @SNDRV_GF1_MEM_OWNER_DRIVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"InterWave LFOs"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Voice default (NULL's)"

	.comm	_snd_gf1_mem_info_read,4,2      ; @snd_gf1_mem_info_read
.subsections_via_symbols
