	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_mem_xalloc
_snd_gf1_mem_xalloc:                    ## @snd_gf1_mem_xalloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	16(%rbx), %rcx
	movq	%rcx, 16(%rax)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rax)
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.3:
	leaq	8(%r14), %rcx
	movq	(%rax), %rdi
	movq	%rdx, %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rsi)
	jg	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rsi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_4
LBB0_9:
	movq	$0, 8(%rax)
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.11:
	movq	%rcx, 16(%rax)
	movq	%rax, 8(%rcx)
	movq	%rax, (%r14)
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_5:
	movq	16(%rsi), %rdi
	movq	%rdi, 16(%rax)
	movq	%rsi, 8(%rax)
	movq	%rax, 16(%rsi)
	cmpq	%rdx, %rsi
	je	LBB0_7
## %bb.6:
	movq	16(%rax), %rcx
	addq	$8, %rcx
LBB0_7:
	movq	%rax, (%rcx)
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	$0, 16(%rax)
	movq	%rax, (%r14)
	movq	%rax, 8(%r14)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_snd_gf1_mem_xalloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_gf1_mem_xalloc
_snd_gf1_mem_xalloc:                    ; @snd_gf1_mem_xalloc
	.cfi_startproc
; %bb.0:
	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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_11
; %bb.1:
	ldr	q0, [x20]
	ldr	x8, [x20, #16]
	str	x8, [x0, #16]
	str	q0, [x0]
	mov	x8, x19
	ldr	x9, [x8, #8]!
	cbz	x9, LBB0_5
; %bb.2:
	ldr	x11, [x0]
	mov	x10, x9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x11
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x10, #8]
	cbnz	x10, LBB0_3
LBB0_5:
	str	xzr, [x0, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.6:
	str	x8, [x0, #16]
	str	x0, [x8, #8]
	str	x0, [x19]
	b	LBB0_11
LBB0_7:
	ldr	x11, [x10, #16]
	stp	x10, x11, [x0, #8]
	str	x0, [x10, #16]
	cmp	x10, x9
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x0, #16]
	add	x8, x8, #8
LBB0_9:
	str	x0, [x8]
	add	x0, x19, #16
	bl	_mutex_unlock
	mov	x0, #0
	b	LBB0_11
LBB0_10:
	str	xzr, [x0, #16]
	stp	x0, x0, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_snd_gf1_mem_xalloc
.subsections_via_symbols
