	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es1938_capture_pointer
_snd_es1938_capture_pointer:            ## @snd_es1938_capture_pointer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	_DMAADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SLDM_REG
	movl	%eax, %edi
	callq	_inl
	movq	%rax, %rbx
	movq	_DMACOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SLDM_REG
	movl	%eax, %edi
	callq	_inw
	movq	8(%r14), %rcx
	movslq	(%r14), %rdx
	addq	%rcx, %rdx
	addl	%ebx, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	testl	$-4, %esi
	jne	LBB0_3
## %bb.1:
	cmpq	%rcx, %rbx
	jb	LBB0_3
## %bb.2:
	cmpq	%rdx, %rbx
	jae	LBB0_3
## %bb.4:
	movq	%rbx, 16(%r14)
	jmp	LBB0_5
LBB0_3:
	movq	16(%r14), %rbx
LBB0_5:
	subq	%rcx, %rbx
	movb	24(%r14), %cl
	shrq	%cl, %rbx
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAADDR,4,2                    ## @DMAADDR
	.comm	_DMACOUNT,4,2                   ## @DMACOUNT
	.no_dead_strip	_snd_es1938_capture_pointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es1938_capture_pointer
_snd_es1938_capture_pointer:            ; @snd_es1938_capture_pointer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_snd_pcm_substream_chip
	mov	x19, x0
Lloh0:
	adrp	x8, _DMAADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMAADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_SLDM_REG
	bl	_inl
	mov	x20, x0
Lloh3:
	adrp	x8, _DMACOUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMACOUNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SLDM_REG
	bl	_inw
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x9, x8, x9
	add	w10, w0, w20
	sub	w10, w9, w10
	and	x10, x10, #0xfffffffc
	cmp	x10, #0
	ccmp	x20, x8, #0, eq
	ccmp	x20, x9, #2, hs
	b.lo	LBB0_2
; %bb.1:
	ldr	x20, [x19, #16]
	b	LBB0_3
LBB0_2:
	str	x20, [x19, #16]
LBB0_3:
	sub	x8, x20, x8
	ldr	x9, [x19, #24]
	lsr	x0, x8, x9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAADDR,4,2                    ; @DMAADDR
	.comm	_DMACOUNT,4,2                   ; @DMACOUNT
	.no_dead_strip	_snd_es1938_capture_pointer
.subsections_via_symbols
