	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_capture_mic_open
_snd_emu10k1_capture_mic_open:          ## @snd_emu10k1_capture_mic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, 40(%rax)
	movq	_CAPTURE_AC97MIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	%rbx, 24(%rax)
	movq	_IPR_MICBUFFULL@GOTPCREL(%rip), %rcx
	movq	_IPR_MICBUFHALFFULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movq	_INTE_MICBUFENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_MICBA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_MICBS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	cmpq	$0, 16(%r15)
	jne	LBB0_3
## %bb.4:
	movq	_MICIDX@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_A_MICIDX@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	_snd_emu10k1_pcm_free_substream@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	_snd_emu10k1_capture@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, (%r14)
	movq	_SNDRV_PCM_RATE_8000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movabsq	$34359738376000, %rax           ## imm = 0x1F4000001F40
	movq	%rax, (%r14)
	movl	$1, 8(%r14)
	movq	_snd_emu10k1_pcm_ac97mic_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%rbx, (%r15)
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hw_constraints_capture_period_sizes@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_list
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	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_AC97MIC,4,2            ## @CAPTURE_AC97MIC
	.comm	_IPR_MICBUFFULL,4,2             ## @IPR_MICBUFFULL
	.comm	_IPR_MICBUFHALFFULL,4,2         ## @IPR_MICBUFHALFFULL
	.comm	_INTE_MICBUFENABLE,4,2          ## @INTE_MICBUFENABLE
	.comm	_MICBA,4,2                      ## @MICBA
	.comm	_MICBS,4,2                      ## @MICBS
	.comm	_A_MICIDX,4,2                   ## @A_MICIDX
	.comm	_MICIDX,4,2                     ## @MICIDX
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ## @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_capture,16,2       ## @snd_emu10k1_capture
	.comm	_SNDRV_PCM_RATE_8000,4,2        ## @SNDRV_PCM_RATE_8000
	.comm	_snd_emu10k1_pcm_ac97mic_interrupt,4,2 ## @snd_emu10k1_pcm_ac97mic_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
	.no_dead_strip	_snd_emu10k1_capture_mic_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_mic_open
_snd_emu10k1_capture_mic_open:          ; @snd_emu10k1_capture_mic_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	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	ldr	x20, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	str	x21, [x0, #40]
Lloh3:
	adrp	x8, _CAPTURE_AC97MIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAPTURE_AC97MIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	str	x19, [x0, #24]
Lloh6:
	adrp	x8, _IPR_MICBUFFULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPR_MICBUFFULL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IPR_MICBUFHALFFULL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPR_MICBUFHALFFULL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _INTE_MICBUFENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _INTE_MICBUFENABLE@GOTPAGEOFF]
	str	w8, [x0]
Lloh14:
	ldr	w8, [x9]
	str	w8, [x0, #16]
Lloh15:
	adrp	x8, _MICBA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MICBA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _MICBS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MICBS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	ldr	x8, [x21, #16]
Lloh21:
	adrp	x9, _A_MICIDX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _A_MICIDX@GOTPAGEOFF]
Lloh23:
	adrp	x10, _MICIDX@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MICIDX@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	x8, [x19]
	str	x0, [x8, #24]
Lloh25:
	adrp	x9, _snd_emu10k1_pcm_free_substream@GOTPAGE
Lloh26:
	ldr	x9, [x9, _snd_emu10k1_pcm_free_substream@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	str	w9, [x8, #16]
Lloh28:
	adrp	x8, _snd_emu10k1_capture@GOTPAGE
Lloh29:
	ldr	x8, [x8, _snd_emu10k1_capture@GOTPAGEOFF]
Lloh30:
	ldr	q0, [x8]
	str	q0, [x20]
Lloh31:
	adrp	x8, _SNDRV_PCM_RATE_8000@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SNDRV_PCM_RATE_8000@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	mov	w9, #8000
	dup.2s	v0, w9
	str	d0, [x20]
	mov	w9, #1
	stp	w9, w8, [x20, #8]
Lloh34:
	adrp	x8, _snd_emu10k1_pcm_ac97mic_interrupt@GOTPAGE
Lloh35:
	ldr	x8, [x8, _snd_emu10k1_pcm_ac97mic_interrupt@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	str	x19, [x21]
Lloh37:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x3, _hw_constraints_capture_period_sizes@GOTPAGE
Lloh41:
	ldr	x3, [x3, _hw_constraints_capture_period_sizes@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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 AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CAPTURE_AC97MIC,4,2            ; @CAPTURE_AC97MIC
	.comm	_IPR_MICBUFFULL,4,2             ; @IPR_MICBUFFULL
	.comm	_IPR_MICBUFHALFFULL,4,2         ; @IPR_MICBUFHALFFULL
	.comm	_INTE_MICBUFENABLE,4,2          ; @INTE_MICBUFENABLE
	.comm	_MICBA,4,2                      ; @MICBA
	.comm	_MICBS,4,2                      ; @MICBS
	.comm	_A_MICIDX,4,2                   ; @A_MICIDX
	.comm	_MICIDX,4,2                     ; @MICIDX
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ; @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_capture,16,2       ; @snd_emu10k1_capture
	.comm	_SNDRV_PCM_RATE_8000,4,2        ; @SNDRV_PCM_RATE_8000
	.comm	_snd_emu10k1_pcm_ac97mic_interrupt,4,2 ; @snd_emu10k1_pcm_ac97mic_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
	.no_dead_strip	_snd_emu10k1_capture_mic_open
.subsections_via_symbols
