	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ct_pcm_capture_open
_ct_pcm_capture_open:                   ## @ct_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
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	$0, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	_ct_atc_pcm_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r15, 8(%r12)
	movq	_ct_atc_pcm_free_substream@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_ct_pcm_capture_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	4(%r14), %eax
	imull	(%r14), %eax
	movl	%eax, (%r12)
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_pcm_hw_constraint_integer
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_snd_pcm_hw_constraint_minmax
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movl	8(%r14), %edi
	movq	%r15, %rsi
	callq	_ct_timer_instance_new
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ct_atc_pcm_interrupt,4,2       ## @ct_atc_pcm_interrupt
	.comm	_ct_atc_pcm_free_substream,4,2  ## @ct_atc_pcm_free_substream
	.comm	_ct_pcm_capture_hw,4,2          ## @ct_pcm_capture_hw
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.no_dead_strip	_ct_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 ct_pcm_capture_open
_ct_pcm_capture_open:                   ; @ct_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	x22, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x21, [x22]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	stp	x22, xzr, [x0, #8]
Lloh3:
	adrp	x8, _ct_atc_pcm_interrupt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ct_atc_pcm_interrupt@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	str	x0, [x21, #8]
Lloh6:
	adrp	x8, _ct_atc_pcm_free_substream@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ct_atc_pcm_free_substream@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ct_pcm_capture_hw@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ct_pcm_capture_hw@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
	ldp	w8, w9, [x20]
	mul	w8, w9, w8
	str	w8, [x21]
Lloh12:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_snd_pcm_hw_constraint_integer
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh15:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #1024
	bl	_snd_pcm_hw_constraint_minmax
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_ct_timer_instance_new
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.4:
	mov	w22, #0
	b	LBB0_7
LBB0_5:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_6:
	mov	x22, x0
	mov	x0, x19
	bl	_kfree
LBB0_7:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ct_atc_pcm_interrupt,4,2       ; @ct_atc_pcm_interrupt
	.comm	_ct_atc_pcm_free_substream,4,2  ; @ct_atc_pcm_free_substream
	.comm	_ct_pcm_capture_hw,4,2          ; @ct_pcm_capture_hw
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.no_dead_strip	_ct_pcm_capture_open
.subsections_via_symbols
