	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_capture_efx_open
_snd_emu10k1_capture_efx_open:          ## @snd_emu10k1_capture_efx_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
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	xorl	%r13d, %r13d
	cmpq	$0, 40(%rax)
	movq	(%rbx), %r15
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 48(%rax)
	movq	_CAPTURE_EFX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	%rbx, 32(%r12)
	movq	_IPR_EFXBUFFULL@GOTPCREL(%rip), %rax
	movq	_IPR_EFXBUFHALFFULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	_INTE_EFXBUFENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_FXBA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_FXBS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_FXIDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%r12, 40(%rax)
	movq	_snd_emu10k1_pcm_free_substream@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_snd_emu10k1_capture_efx@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 16(%r15)
	movups	%xmm0, (%r15)
	movq	_SNDRV_PCM_RATE_48000@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 24(%r15)
	movabsq	$206158430256000, %rax          ## imm = 0xBB800000BB80
	movq	%rax, (%r15)
	movq	%r14, %rdi
	addq	$20, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	movq	32(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.3:
	movl	24(%r14), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$1, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_8
## %bb.6:
	movl	$48000, %eax                    ## imm = 0xBB80
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_17
LBB0_9:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r13b
	shll	$5, %r13d
	addl	$32, %r13d
	movq	$0, 8(%r15)
	movq	(%r14), %r8
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	addl	$2, %esi
	cmpl	%esi, %r13d
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %edi
	shrl	$5, %edi
	movl	(%r8,%rdi,4), %ebx
	movl	%esi, %eax
	andb	$30, %al
	movzbl	%al, %eax
	btl	%eax, %ebx
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%edx
	movl	%edx, 8(%r15)
	incl	%ecx
	movl	%ecx, 12(%r15)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r8,%rdi,4), %eax
	movl	%esi, %ebx
	orb	$1, %bl
	movzbl	%bl, %edi
	btl	%edi, %eax
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%edx
	movl	%edx, 8(%r15)
	incl	%ecx
	movl	%ecx, 12(%r15)
	jmp	LBB0_14
LBB0_15:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_4:
	movl	$44100, %eax                    ## imm = 0xAC44
	movq	_SNDRV_PCM_RATE_44100@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:
	movq	(%rbx), %rcx
	movq	%rcx, 24(%r15)
	movl	%eax, 4(%r15)
	movl	%eax, (%r15)
	movabsq	$68719476752, %rax              ## imm = 0x1000000010
	movq	%rax, 8(%r15)
LBB0_8:
	movq	_SNDRV_PCM_FMTBIT_S32_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	(%r14), %r8
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movl	(%r8), %eax
	movl	%eax, 4(%r12)
	movl	4(%r8), %eax
	movl	%eax, 8(%r12)
	callq	_spin_unlock_irq
	movq	_snd_emu10k1_pcm_efx_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%rbx, 8(%r14)
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hw_constraints_capture_period_sizes@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_list
LBB0_17:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CAPTURE_EFX,4,2                ## @CAPTURE_EFX
	.comm	_IPR_EFXBUFFULL,4,2             ## @IPR_EFXBUFFULL
	.comm	_IPR_EFXBUFHALFFULL,4,2         ## @IPR_EFXBUFHALFFULL
	.comm	_INTE_EFXBUFENABLE,4,2          ## @INTE_EFXBUFENABLE
	.comm	_FXBA,4,2                       ## @FXBA
	.comm	_FXBS,4,2                       ## @FXBS
	.comm	_FXIDX,4,2                      ## @FXIDX
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ## @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_capture_efx,32,3   ## @snd_emu10k1_capture_efx
	.comm	_SNDRV_PCM_RATE_48000,8,3       ## @SNDRV_PCM_RATE_48000
	.comm	_SNDRV_PCM_RATE_44100,8,3       ## @SNDRV_PCM_RATE_44100
	.comm	_SNDRV_PCM_FMTBIT_S32_LE,4,2    ## @SNDRV_PCM_FMTBIT_S32_LE
	.comm	_snd_emu10k1_pcm_efx_interrupt,4,2 ## @snd_emu10k1_pcm_efx_interrupt
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_hw_constraints_capture_period_sizes,4,2 ## @hw_constraints_capture_period_sizes
	.comm	_SNDRV_PCM_RATE_192000,8,3      ## @SNDRV_PCM_RATE_192000
	.comm	_SNDRV_PCM_RATE_96000,8,3       ## @SNDRV_PCM_RATE_96000
	.no_dead_strip	_snd_emu10k1_capture_efx_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_capture_efx_open
_snd_emu10k1_capture_efx_open:          ; @snd_emu10k1_capture_efx_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	ldr	x20, [x19]
	ldr	x8, [x0, #40]
	cmp	x8, #0
	mov	w8, #64
	mov	w9, #32
	csel	w24, w9, w8, eq
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	str	x21, [x0, #48]
Lloh3:
	adrp	x8, _CAPTURE_EFX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAPTURE_EFX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	str	x19, [x0, #32]
Lloh6:
	adrp	x8, _IPR_EFXBUFFULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPR_EFXBUFFULL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IPR_EFXBUFHALFFULL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPR_EFXBUFHALFFULL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _INTE_EFXBUFENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _INTE_EFXBUFENABLE@GOTPAGEOFF]
	str	w8, [x0]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _FXBA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FXBA@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #20]
Lloh18:
	adrp	x8, _FXBS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FXBS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _FXIDX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FXIDX@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _snd_emu10k1_pcm_free_substream@GOTPAGE
Lloh25:
	ldr	x9, [x9, _snd_emu10k1_pcm_free_substream@GOTPAGEOFF]
	str	x0, [x8, #40]
Lloh26:
	ldr	w9, [x9]
	str	w9, [x8, #32]
Lloh27:
	adrp	x8, _snd_emu10k1_capture_efx@GOTPAGE
Lloh28:
	ldr	x8, [x8, _snd_emu10k1_capture_efx@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	stp	q0, q1, [x20]
Lloh29:
	adrp	x8, _SNDRV_PCM_RATE_48000@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SNDRV_PCM_RATE_48000@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	mov	w8, #48000
	dup.2s	v0, w8
	str	d0, [x20]
	add	x23, x21, #20
	mov	x0, x23
	bl	_spin_lock_irq
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_10
; %bb.3:
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.4:
	mov	w8, #48000
Lloh32:
	adrp	x9, _SNDRV_PCM_RATE_48000@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SNDRV_PCM_RATE_48000@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_6:
	mov	w9, #0
	movi.2d	v0, #0000000000000000
	str	d0, [x20, #8]
	ldr	x8, [x21]
	movi.2s	v1, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w9, w9, #1
	cmp	w24, w9
	b.eq	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w10, w9, #5
	ldr	w10, [x8, w10, uxtw #2]
	lsr	w10, w10, w9
	tbz	w10, #0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add.2s	v0, v0, v1
	str	d0, [x20, #8]
	b	LBB0_7
LBB0_10:
	mov	w8, #44100
Lloh37:
	adrp	x9, _SNDRV_PCM_RATE_44100@GOTPAGE
Lloh38:
	ldr	x9, [x9, _SNDRV_PCM_RATE_44100@GOTPAGEOFF]
LBB0_11:
	ldr	x9, [x9]
	str	x9, [x20, #24]
	stp	w8, w8, [x20]
	movi.2s	v0, #16
	str	d0, [x20, #8]
LBB0_12:
Lloh39:
	adrp	x8, _SNDRV_PCM_FMTBIT_S32_LE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SNDRV_PCM_FMTBIT_S32_LE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	x8, [x21]
LBB0_13:
	ldr	w9, [x8]
	str	w9, [x22, #4]
	ldr	w8, [x8, #4]
	str	w8, [x22, #8]
	mov	x0, x23
	bl	_spin_unlock_irq
Lloh42:
	adrp	x8, _snd_emu10k1_pcm_efx_interrupt@GOTPAGE
Lloh43:
	ldr	x8, [x8, _snd_emu10k1_pcm_efx_interrupt@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	str	x19, [x21, #8]
Lloh45:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
Lloh48:
	adrp	x3, _hw_constraints_capture_period_sizes@GOTPAGE
Lloh49:
	ldr	x3, [x3, _hw_constraints_capture_period_sizes@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CAPTURE_EFX,4,2                ; @CAPTURE_EFX
	.comm	_IPR_EFXBUFFULL,4,2             ; @IPR_EFXBUFFULL
	.comm	_IPR_EFXBUFHALFFULL,4,2         ; @IPR_EFXBUFHALFFULL
	.comm	_INTE_EFXBUFENABLE,4,2          ; @INTE_EFXBUFENABLE
	.comm	_FXBA,4,2                       ; @FXBA
	.comm	_FXBS,4,2                       ; @FXBS
	.comm	_FXIDX,4,2                      ; @FXIDX
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ; @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_capture_efx,32,3   ; @snd_emu10k1_capture_efx
	.comm	_SNDRV_PCM_RATE_48000,8,3       ; @SNDRV_PCM_RATE_48000
	.comm	_SNDRV_PCM_RATE_44100,8,3       ; @SNDRV_PCM_RATE_44100
	.comm	_SNDRV_PCM_FMTBIT_S32_LE,4,2    ; @SNDRV_PCM_FMTBIT_S32_LE
	.comm	_snd_emu10k1_pcm_efx_interrupt,4,2 ; @snd_emu10k1_pcm_efx_interrupt
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_hw_constraints_capture_period_sizes,4,2 ; @hw_constraints_capture_period_sizes
	.comm	_SNDRV_PCM_RATE_192000,8,3      ; @SNDRV_PCM_RATE_192000
	.comm	_SNDRV_PCM_RATE_96000,8,3       ; @SNDRV_PCM_RATE_96000
	.no_dead_strip	_snd_emu10k1_capture_efx_open
.subsections_via_symbols
