	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_open_substream         ## -- Begin function snd_pcm_open_substream
	.p2align	4, 0x90
_snd_pcm_open_substream:                ## @snd_pcm_open_substream
	.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, %r14
	leaq	-24(%rbp), %rcx
	callq	_snd_pcm_attach_substream
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-24(%rbp), %rdi
	cmpl	$2, (%rdi)
	jl	LBB0_4
## %bb.3:
	movq	%rdi, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_4:
	callq	_snd_pcm_hw_constraints_init
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	-24(%rbp), %rdi
	movq	8(%rdi), %rax
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	-24(%rbp), %rdi
	movl	$1, 4(%rdi)
	callq	_snd_pcm_hw_constraints_complete
	testl	%eax, %eax
	js	LBB0_9
## %bb.13:
	movq	-24(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	callq	_snd_printd
LBB0_11:
	movq	-24(%rbp), %rdi
	callq	_snd_pcm_release_substream
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snd_pcm_hw_constraints_init failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"snd_pcm_hw_constraints_complete failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_open_substream         ; -- Begin function snd_pcm_open_substream
	.p2align	2
_snd_pcm_open_substream:                ; @snd_pcm_open_substream
	.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	x20, x3
	add	x3, sp, #8
	bl	_snd_pcm_attach_substream
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	mov	w19, #0
	str	x0, [x20]
	b	LBB0_13
LBB0_3:
	mov	x19, x0
	b	LBB0_13
LBB0_4:
	bl	_snd_pcm_hw_constraints_init
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	x0, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	blr	x8
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	x0, [sp, #8]
	mov	w8, #1
	str	w8, [x0, #4]
	bl	_snd_pcm_hw_constraints_complete
	tbnz	w0, #31, LBB0_10
; %bb.7:
	mov	w19, #0
	ldr	x8, [sp, #8]
	str	x8, [x20]
	b	LBB0_13
LBB0_8:
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x19, x0
	b	LBB0_12
LBB0_10:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_snd_printd
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_snd_pcm_release_substream
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snd_pcm_hw_constraints_init failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"snd_pcm_hw_constraints_complete failed\n"

.subsections_via_symbols
