	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_mem_proc_init          ## -- Begin function snd_gf1_mem_proc_init
	.p2align	4, 0x90
_snd_gf1_mem_proc_init:                 ## @snd_gf1_mem_proc_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	addq	$16, %r12
	cmpq	$4, %rbx
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	cmpq	$0, (%rax,%r12)
	jle	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	movq	%r13, 24(%rax)
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movl	24(%r13), %edi
	movq	%r15, %rsi
	leaq	-72(%rbp), %rdx
	callq	_snd_card_proc_new
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SNDRV_INFO_CONTENT_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	movq	%rax, 32(%rcx)
	movq	%r14, 24(%rcx)
	movq	_snd_gf1_mem_proc_free@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rcx)
	movq	_snd_gf1_mem_proc_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rcx)
	movq	16(%r13), %rax
	movl	8(%rax,%r12), %edx
	movl	%edx, (%r14)
	movq	(%rax,%r12), %rax
	movq	%rax, (%rcx)
	movq	%rax, 8(%r14)
	jmp	LBB0_6
LBB0_7:
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	addl	$4194304, %r12d                 ## imm = 0x400000
	cmpl	$4, %ebx
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	btl	%ebx, %eax
	jae	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r14
	movl	$1, 16(%rax)
	movq	%r13, 24(%rax)
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movl	24(%r13), %edi
	movq	%r15, %rsi
	leaq	-72(%rbp), %rdx
	callq	_snd_card_proc_new
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_SNDRV_INFO_CONTENT_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	movq	%rax, 32(%rcx)
	movq	%r14, 24(%rcx)
	movq	_snd_gf1_mem_proc_free@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rcx)
	movq	_snd_gf1_mem_proc_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rcx)
	movl	%r12d, (%r14)
	movq	8(%r13), %rax
	movq	%rax, (%rcx)
	movq	%rax, 8(%r14)
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gus-ram-%i"

	.comm	_SNDRV_INFO_CONTENT_DATA,8,3    ## @SNDRV_INFO_CONTENT_DATA
	.comm	_snd_gf1_mem_proc_free,8,3      ## @snd_gf1_mem_proc_free
	.comm	_snd_gf1_mem_proc_ops,4,2       ## @snd_gf1_mem_proc_ops
L_.str.1:                               ## @.str.1
	.asciz	"gus-rom-%i"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_mem_proc_init          ; -- Begin function snd_gf1_mem_proc_init
	.p2align	2
_snd_gf1_mem_proc_init:                 ; @snd_gf1_mem_proc_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	x27, #0
	mov	x20, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
Lloh7:
	adrp	x24, _SNDRV_INFO_CONTENT_DATA@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SNDRV_INFO_CONTENT_DATA@GOTPAGEOFF]
Lloh9:
	adrp	x25, _snd_gf1_mem_proc_free@GOTPAGE
Lloh10:
	ldr	x25, [x25, _snd_gf1_mem_proc_free@GOTPAGEOFF]
Lloh11:
	adrp	x26, _snd_gf1_mem_proc_ops@GOTPAGE
Lloh12:
	ldr	x26, [x26, _snd_gf1_mem_proc_ops@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	add	x27, x27, #16
	cmp	x20, #4
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x27]
	cmp	x8, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	str	x19, [x0, #24]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_sprintf
	ldr	w0, [x19, #24]
	add	x1, sp, #8
	mov	x2, sp
	bl	_snd_card_proc_new
	cbnz	w0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldr	x9, [sp]
	stp	x22, x8, [x9, #24]
	ldr	x8, [x25]
	stp	x26, x8, [x9, #8]
	ldr	x8, [x19, #16]
	add	x8, x8, x27
	ldr	w10, [x8, #8]
	str	w10, [x22]
	ldr	x8, [x8]
	str	x8, [x9]
	str	x8, [x22, #8]
	b	LBB0_1
LBB0_6:
	mov	w27, #0
	mov	w20, #0
	mov	w28, #1
Lloh13:
	adrp	x21, l_.str.1@PAGE
Lloh14:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w20, #1
	add	w27, w27, #1024, lsl #12        ; =4194304
	cmp	w20, #4
	b.eq	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	lsr	w8, w8, w20
	tbz	w8, #0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x23]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, x0
	str	w28, [x0, #16]
	str	x19, [x0, #24]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_sprintf
	ldr	w0, [x19, #24]
	add	x1, sp, #8
	mov	x2, sp
	bl	_snd_card_proc_new
	cbnz	w0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24]
	ldr	x9, [sp]
	stp	x22, x8, [x9, #24]
	ldr	x8, [x25]
	stp	x26, x8, [x9, #8]
	str	w27, [x22]
	ldr	x8, [x19, #8]
	str	x8, [x9]
	str	x8, [x22, #8]
	b	LBB0_7
LBB0_12:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gus-ram-%i"

	.comm	_SNDRV_INFO_CONTENT_DATA,8,3    ; @SNDRV_INFO_CONTENT_DATA
	.comm	_snd_gf1_mem_proc_free,8,3      ; @snd_gf1_mem_proc_free
	.comm	_snd_gf1_mem_proc_ops,4,2       ; @snd_gf1_mem_proc_ops
l_.str.1:                               ; @.str.1
	.asciz	"gus-rom-%i"

.subsections_via_symbols
