	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_pcm_playback_pointer
_snd_gf1_pcm_playback_pointer:          ## @snd_gf1_pcm_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	(%r15), %r14
	movq	8(%r14), %rbx
	movq	%rax, %rdi
	callq	_spin_lock
	movq	_SNDRV_GF1_PCM_PFLG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_gf1_select_voice
	movq	_SNDRV_GF1_VB_ADDRESS_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_gf1_read8
	movq	_SNDRV_GF1_VA_CURRENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andb	$4, %al
	movzbl	%al, %edx
	movq	%r12, %rdi
	callq	_snd_gf1_read_addr
	sarl	$4, %eax
	subl	4(%rbx), %eax
	movq	(%r15), %rcx
	cmpl	$2, (%rcx)
	setge	%cl
	shll	%cl, %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bytes_to_frames
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_PCM_PFLG_ACTIVE,4,2  ## @SNDRV_GF1_PCM_PFLG_ACTIVE
	.comm	_SNDRV_GF1_VB_ADDRESS_CONTROL,4,2 ## @SNDRV_GF1_VB_ADDRESS_CONTROL
	.comm	_SNDRV_GF1_VA_CURRENT,4,2       ## @SNDRV_GF1_VA_CURRENT
	.no_dead_strip	_snd_gf1_pcm_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_gf1_pcm_playback_pointer
_snd_gf1_pcm_playback_pointer:          ; @snd_gf1_pcm_playback_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
	ldr	x21, [x20]
	ldr	x22, [x21, #8]
	bl	_spin_lock
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _SNDRV_GF1_PCM_PFLG_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_GF1_PCM_PFLG_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_gf1_select_voice
Lloh3:
	adrp	x8, _SNDRV_GF1_VB_ADDRESS_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_GF1_VB_ADDRESS_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_gf1_read8
Lloh6:
	adrp	x8, _SNDRV_GF1_VA_CURRENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_GF1_VA_CURRENT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	and	w2, w0, #0x4
	mov	x0, x19
	bl	_snd_gf1_read_addr
	asr	w8, w0, #4
	ldr	w9, [x22, #4]
	sub	w8, w8, w9
	ldr	x9, [x20]
	ldr	w9, [x9]
	cmp	w9, #1
	cset	w9, gt
	lsl	w1, w8, w9
	mov	x0, x21
	bl	_bytes_to_frames
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	w20, #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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_PCM_PFLG_ACTIVE,4,2  ; @SNDRV_GF1_PCM_PFLG_ACTIVE
	.comm	_SNDRV_GF1_VB_ADDRESS_CONTROL,4,2 ; @SNDRV_GF1_VB_ADDRESS_CONTROL
	.comm	_SNDRV_GF1_VA_CURRENT,4,2       ; @SNDRV_GF1_VA_CURRENT
	.no_dead_strip	_snd_gf1_pcm_playback_pointer
.subsections_via_symbols
