	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_open
_snd_pcm_open:                          ## @snd_pcm_open
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	movq	%r14, %rsi
	callq	_snd_card_file_add
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_init_waitqueue_entry
	leaq	12(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_add_wait_queue
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	leaq	-64(%rbp), %rcx
	callq	_snd_pcm_open_file
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%r13, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	callq	_schedule
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_7
## %bb.14:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_3:
	movl	%eax, %r12d
	jmp	LBB0_19
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_16:
	leaq	-44(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_remove_wait_queue
	movq	%r13, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	jns	LBB0_19
## %bb.17:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_module_put
LBB0_18:
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_snd_card_file_remove
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_current,4,2                    ## @current
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_snd_pcm_open
.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
_snd_pcm_open:                          ; @snd_pcm_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x1, LBB0_10
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x1]
	mov	x1, x19
	bl	_snd_card_file_add
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_12
; %bb.3:
Lloh0:
	adrp	x25, _current@GOTPAGE
Lloh1:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x0, sp, #4
	bl	_init_waitqueue_entry
	add	x22, x20, #12
	add	x1, sp, #4
	mov	x0, x22
	bl	_add_wait_queue
	add	x23, x20, #8
	mov	x0, x23
	bl	_mutex_lock
Lloh2:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
Lloh4:
	adrp	x27, _O_NONBLOCK@GOTPAGE
Lloh5:
	ldr	x27, [x27, _O_NONBLOCK@GOTPAGEOFF]
Lloh6:
	adrp	x28, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_snd_pcm_open_file
	mov	x24, x0
	tbz	w0, #31, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	cmn	w24, w8
	b.ne	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	bl	_set_current_state
	mov	x0, x23
	bl	_mutex_unlock
	bl	_schedule
	mov	x0, x23
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	bl	_signal_pending
	cbz	x0, LBB0_4
; %bb.9:
Lloh8:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_11:
	mov	x24, x0
	b	LBB0_19
LBB0_12:
Lloh13:
	adrp	x8, _EFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_18
LBB0_13:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_16:
	add	x1, sp, #4
	mov	x0, x22
	bl	_remove_wait_queue
	mov	x0, x23
	bl	_mutex_unlock
	tbz	w24, #31, LBB0_19
; %bb.17:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_module_put
LBB0_18:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_snd_card_file_remove
LBB0_19:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_current,4,2                    ; @current
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_snd_pcm_open
.subsections_via_symbols
