	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsp_buffer_alloc
_dsp_buffer_alloc:                      ## @dsp_buffer_alloc
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	movq	(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	cmpl	%r14d, (%rcx)
	jg	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_dsp_buffer_free
LBB0_3:
	movl	%r14d, %edi
	callq	_vmalloc
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r14d, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocating buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dsp_buffer_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsp_buffer_alloc
_dsp_buffer_alloc:                      ; @dsp_buffer_alloc
	.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	x19, x1
	mov	x20, x0
	bl	_snd_pcm_substream_chip
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	x0, x20
	bl	_dsp_buffer_free
LBB0_4:
	mov	x0, x19
	bl	_vmalloc
	ldr	x8, [x20]
	str	x0, [x8, #8]
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #0
	str	w19, [x8]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocating buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dsp_buffer_alloc
.subsections_via_symbols
