	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_open_file
_snd_pcm_open_file:                     ## @snd_pcm_open_file
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %rbx
	movq	%rdi, %r14
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	leaq	-24(%rbp), %rcx
	movq	%rsi, %rdi
	movl	%edx, %esi
	movq	%r14, %rdx
	callq	_snd_pcm_open_substream
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	-24(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rcx
	movq	%rdi, (%rax)
	movq	-24(%rbp), %rax
	cmpl	$1, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	%rcx, 8(%rax)
	movq	_pcm_release_private@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rax)
LBB0_7:
	xorl	%eax, %eax
	movq	%rcx, (%r14)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	%rcx, (%rbx)
	jmp	LBB0_9
LBB0_4:
	callq	_snd_pcm_release_substream
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pcm_release_private,4,2        ## @pcm_release_private
	.no_dead_strip	_snd_pcm_open_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_open_file
_snd_pcm_open_file:                     ; @snd_pcm_open_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x20, x0
	cbz	x3, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
	add	x3, sp, #8
	mov	x0, x1
	mov	x1, x2
	mov	x2, x20
	bl	_snd_pcm_open_substream
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	ldr	x8, [sp, #8]
	cbz	x0, LBB0_9
; %bb.4:
	str	x8, [x0]
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_6
; %bb.5:
	str	x0, [x8, #8]
Lloh3:
	adrp	x9, _pcm_release_private@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pcm_release_private@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x8, #4]
LBB0_6:
	str	x0, [x20]
	mov	w8, #0
	cbz	x19, LBB0_10
; %bb.7:
	str	x0, [x19]
	b	LBB0_10
LBB0_8:
	mov	x8, x0
	b	LBB0_10
LBB0_9:
	mov	x0, x8
	bl	_snd_pcm_release_substream
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_10:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pcm_release_private,4,2        ; @pcm_release_private
	.no_dead_strip	_snd_pcm_open_file
.subsections_via_symbols
