	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es18xx_playback_pointer
_snd_es18xx_playback_pointer:           ## @snd_es18xx_playback_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
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	cmpq	$0, (%rbx)
	je	LBB0_3
LBB0_1:
	movq	_DAC1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_8
## %bb.2:
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	callq	_snd_dma_pointer
	addq	$12, %r14
	jmp	LBB0_6
LBB0_3:
	movq	_ES18XX_PCM2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.4:
	movq	_DAC2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_8
## %bb.5:
	movl	24(%r14), %esi
	movl	28(%r14), %edi
	callq	_snd_dma_pointer
	addq	$8, %r14
LBB0_6:
	movb	(%r14), %cl
	sarl	%cl, %eax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ES18XX_PCM2,4,2                ## @ES18XX_PCM2
	.comm	_DAC2,4,2                       ## @DAC2
	.comm	_DAC1,4,2                       ## @DAC1
	.no_dead_strip	_snd_es18xx_playback_pointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es18xx_playback_pointer
_snd_es18xx_playback_pointer:           ; @snd_es18xx_playback_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
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_3
LBB0_1:
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _DAC1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DAC1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
	ldp	w1, w0, [x19, #16]
	bl	_snd_dma_pointer
	add	x8, x19, #12
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _ES18XX_PCM2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ES18XX_PCM2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.4:
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _DAC2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DAC2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldp	w1, w0, [x19, #24]
	bl	_snd_dma_pointer
	add	x8, x19, #8
LBB0_6:
	ldr	w8, [x8]
	asr	w0, w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ES18XX_PCM2,4,2                ; @ES18XX_PCM2
	.comm	_DAC2,4,2                       ; @DAC2
	.comm	_DAC1,4,2                       ; @DAC1
	.no_dead_strip	_snd_es18xx_playback_pointer
.subsections_via_symbols
