	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_capture_open
_snd_emu10k1_capture_open:              ## @snd_emu10k1_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	%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_AC97ADC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	%rbx, 24(%rax)
	movq	_IPR_ADCBUFFULL@GOTPCREL(%rip), %rcx
	movq	_IPR_ADCBUFHALFFULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movq	_INTE_ADCBUFENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_ADCBA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_ADCBS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	cmpq	$0, 16(%r15)
	jne	LBB0_3
## %bb.4:
	movq	_ADCIDX@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_ADCIDX@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	%rax, 8(%r14)
	movq	_snd_emu10k1_pcm_free_substream@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_snd_emu10k1_capture@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_snd_emu10k1_pcm_ac97adc_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
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hw_constraints_capture_rates@GOTPCREL(%rip), %rcx
	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_AC97ADC,4,2            ## @CAPTURE_AC97ADC
	.comm	_IPR_ADCBUFFULL,4,2             ## @IPR_ADCBUFFULL
	.comm	_IPR_ADCBUFHALFFULL,4,2         ## @IPR_ADCBUFHALFFULL
	.comm	_INTE_ADCBUFENABLE,4,2          ## @INTE_ADCBUFENABLE
	.comm	_ADCBA,4,2                      ## @ADCBA
	.comm	_ADCBS,4,2                      ## @ADCBS
	.comm	_A_ADCIDX,4,2                   ## @A_ADCIDX
	.comm	_ADCIDX,4,2                     ## @ADCIDX
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ## @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_capture,4,2        ## @snd_emu10k1_capture
	.comm	_snd_emu10k1_pcm_ac97adc_interrupt,4,2 ## @snd_emu10k1_pcm_ac97adc_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_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hw_constraints_capture_rates,4,2 ## @hw_constraints_capture_rates
	.no_dead_strip	_snd_emu10k1_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_emu10k1_capture_open
_snd_emu10k1_capture_open:              ; @snd_emu10k1_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	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	ldr	x19, [x20]
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_AC97ADC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAPTURE_AC97ADC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	str	x20, [x0, #24]
Lloh6:
	adrp	x8, _IPR_ADCBUFFULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPR_ADCBUFFULL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _IPR_ADCBUFHALFFULL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IPR_ADCBUFHALFFULL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh12:
	adrp	x8, _INTE_ADCBUFENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTE_ADCBUFENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh15:
	adrp	x8, _ADCBA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADCBA@GOTPAGEOFF]
Lloh17:
	adrp	x9, _ADCBS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ADCBS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh21:
	adrp	x8, _A_ADCIDX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _A_ADCIDX@GOTPAGEOFF]
	ldr	x9, [x21, #16]
Lloh23:
	adrp	x10, _ADCIDX@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ADCIDX@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
	str	w8, [x0, #4]
	str	x0, [x19, #8]
Lloh25:
	adrp	x8, _snd_emu10k1_pcm_free_substream@GOTPAGE
Lloh26:
	ldr	x8, [x8, _snd_emu10k1_pcm_free_substream@GOTPAGEOFF]
Lloh27:
	adrp	x9, _snd_emu10k1_capture@GOTPAGE
Lloh28:
	ldr	x9, [x9, _snd_emu10k1_capture@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
Lloh31:
	adrp	x8, _snd_emu10k1_pcm_ac97adc_interrupt@GOTPAGE
Lloh32:
	ldr	x8, [x8, _snd_emu10k1_pcm_ac97adc_interrupt@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	str	x20, [x21]
Lloh34:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x3, _hw_constraints_capture_period_sizes@GOTPAGE
Lloh38:
	ldr	x3, [x3, _hw_constraints_capture_period_sizes@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
Lloh39:
	adrp	x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x3, _hw_constraints_capture_rates@GOTPAGE
Lloh43:
	ldr	x3, [x3, _hw_constraints_capture_rates@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	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	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CAPTURE_AC97ADC,4,2            ; @CAPTURE_AC97ADC
	.comm	_IPR_ADCBUFFULL,4,2             ; @IPR_ADCBUFFULL
	.comm	_IPR_ADCBUFHALFFULL,4,2         ; @IPR_ADCBUFHALFFULL
	.comm	_INTE_ADCBUFENABLE,4,2          ; @INTE_ADCBUFENABLE
	.comm	_ADCBA,4,2                      ; @ADCBA
	.comm	_ADCBS,4,2                      ; @ADCBS
	.comm	_A_ADCIDX,4,2                   ; @A_ADCIDX
	.comm	_ADCIDX,4,2                     ; @ADCIDX
	.comm	_snd_emu10k1_pcm_free_substream,4,2 ; @snd_emu10k1_pcm_free_substream
	.comm	_snd_emu10k1_capture,4,2        ; @snd_emu10k1_capture
	.comm	_snd_emu10k1_pcm_ac97adc_interrupt,4,2 ; @snd_emu10k1_pcm_ac97adc_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_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hw_constraints_capture_rates,4,2 ; @hw_constraints_capture_rates
	.no_dead_strip	_snd_emu10k1_capture_open
.subsections_via_symbols
