	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cobalt_pcm_capture_open
_snd_cobalt_pcm_capture_open:           ## @snd_cobalt_pcm_capture_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	16(%rax), %r14
	movq	_snd_cobalt_hdmi_capture@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_pcm_hw_constraint_integer
	movq	%rbx, 8(%r12)
	movq	%r14, (%r15)
	movl	(%r12), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r12)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	4(%r14), %rdi
	movq	_alsa_fnc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	%r14, %rdx
	callq	_vb2_thread_start
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	decl	(%r12)
	movl	%eax, %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_cobalt_hdmi_capture,4,2    ## @snd_cobalt_hdmi_capture
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_alsa_fnc,4,2                   ## @alsa_fnc
	.no_dead_strip	_snd_cobalt_pcm_capture_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cobalt_pcm_capture_open
_snd_cobalt_pcm_capture_open:           ; @snd_cobalt_pcm_capture_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x0
	ldr	x22, [x0]
	bl	_snd_pcm_substream_chip
	mov	x19, x0
Lloh0:
	adrp	x8, _snd_cobalt_hdmi_capture@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_cobalt_hdmi_capture@GOTPAGEOFF]
	ldr	x20, [x0, #16]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #8]
Lloh3:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_snd_pcm_hw_constraint_integer
	str	x21, [x19, #8]
	str	x20, [x22]
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _alsa_fnc@GOTPAGE
Lloh7:
	ldr	x8, [x8, _alsa_fnc@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	ldr	w3, [x0], #4
	mov	x2, x20
	bl	_vb2_thread_start
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_cobalt_hdmi_capture,4,2    ; @snd_cobalt_hdmi_capture
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_alsa_fnc,4,2                   ; @alsa_fnc
	.no_dead_strip	_snd_cobalt_pcm_capture_open
.subsections_via_symbols
