	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ensoniq_playback2_pointer
_snd_ensoniq_playback2_pointer:         ## @snd_ensoniq_playback2_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_spin_lock
	movq	_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ES_REG
	movl	%eax, %edi
	callq	_inl
	movq	_ES_DAC2_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_ES_PAGE_DAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ES_MEM_PAGEO
	movl	%eax, %ebx
	movq	_MEM_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ES_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outl
	movq	_DAC2_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ES_REG
	movl	%eax, %edi
	callq	_inl
	movl	%eax, %edi
	callq	_ES_REG_FCURR_COUNTI
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_bytes_to_frames
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTROL,4,2                    ## @CONTROL
	.comm	_ES_DAC2_EN,4,2                 ## @ES_DAC2_EN
	.comm	_ES_PAGE_DAC,4,2                ## @ES_PAGE_DAC
	.comm	_MEM_PAGE,4,2                   ## @MEM_PAGE
	.comm	_DAC2_SIZE,4,2                  ## @DAC2_SIZE
	.no_dead_strip	_snd_ensoniq_playback2_pointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ensoniq_playback2_pointer
_snd_ensoniq_playback2_pointer:         ; @snd_ensoniq_playback2_pointer
	.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	x19, x0
	bl	_spin_lock
Lloh0:
	adrp	x8, _CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ES_REG
	bl	_inl
Lloh3:
	adrp	x8, _ES_DAC2_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ES_DAC2_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ES_PAGE_DAC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ES_PAGE_DAC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_ES_MEM_PAGEO
	mov	x21, x0
Lloh9:
	adrp	x8, _MEM_PAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEM_PAGE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ES_REG
	mov	x1, x0
	mov	x0, x21
	bl	_outl
Lloh12:
	adrp	x8, _DAC2_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DAC2_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ES_REG
	bl	_inl
	bl	_ES_REG_FCURR_COUNTI
	mov	x1, x0
	ldr	w0, [x20]
	bl	_bytes_to_frames
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTROL,4,2                    ; @CONTROL
	.comm	_ES_DAC2_EN,4,2                 ; @ES_DAC2_EN
	.comm	_ES_PAGE_DAC,4,2                ; @ES_PAGE_DAC
	.comm	_MEM_PAGE,4,2                   ; @MEM_PAGE
	.comm	_DAC2_SIZE,4,2                  ; @DAC2_SIZE
	.no_dead_strip	_snd_ensoniq_playback2_pointer
.subsections_via_symbols
