	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1x_pcm_prepare_capture
_snd_emu10k1x_pcm_prepare_capture:      ## @snd_emu10k1x_pcm_prepare_capture
	.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, %r14
	movq	(%rbx), %rbx
	movq	_CAPTURE_DMA_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1x_ptr_write
	movq	_CAPTURE_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_frames_to_bytes
	shll	$16, %eax
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_snd_emu10k1x_ptr_write
	movq	_CAPTURE_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1x_ptr_write
	movq	_CAPTURE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1x_ptr_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAPTURE_DMA_ADDR,4,2           ## @CAPTURE_DMA_ADDR
	.comm	_CAPTURE_BUFFER_SIZE,4,2        ## @CAPTURE_BUFFER_SIZE
	.comm	_CAPTURE_POINTER,4,2            ## @CAPTURE_POINTER
	.comm	_CAPTURE_UNKNOWN,4,2            ## @CAPTURE_UNKNOWN
	.no_dead_strip	_snd_emu10k1x_pcm_prepare_capture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1x_pcm_prepare_capture
_snd_emu10k1x_pcm_prepare_capture:      ; @snd_emu10k1x_pcm_prepare_capture
	.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	x20, x0
	ldr	x19, [x19]
Lloh0:
	adrp	x8, _CAPTURE_DMA_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAPTURE_DMA_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19]
	mov	w2, #0
	bl	_snd_emu10k1x_ptr_write
Lloh3:
	adrp	x8, _CAPTURE_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAPTURE_BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_frames_to_bytes
	lsl	w3, w0, #16
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_snd_emu10k1x_ptr_write
Lloh6:
	adrp	x8, _CAPTURE_POINTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAPTURE_POINTER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_snd_emu10k1x_ptr_write
Lloh9:
	adrp	x8, _CAPTURE_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAPTURE_UNKNOWN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_snd_emu10k1x_ptr_write
	mov	w0, #0
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAPTURE_DMA_ADDR,4,2           ; @CAPTURE_DMA_ADDR
	.comm	_CAPTURE_BUFFER_SIZE,4,2        ; @CAPTURE_BUFFER_SIZE
	.comm	_CAPTURE_POINTER,4,2            ; @CAPTURE_POINTER
	.comm	_CAPTURE_UNKNOWN,4,2            ; @CAPTURE_UNKNOWN
	.no_dead_strip	_snd_emu10k1x_pcm_prepare_capture
.subsections_via_symbols
