	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ali_playback_pointer
_snd_ali_playback_pointer:              ## @snd_ali_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
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_spin_lock
	cmpl	$0, 4(%rbx)
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ebx
	movq	_ALI_GC_CIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_ALI_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_ALI_CSO_ALPHA_FMS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	callq	_ALI_REG
	movl	%eax, %edi
	callq	_inw
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_snd_ali_printk
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALI_GC_CIR,8,3                 ## @ALI_GC_CIR
	.comm	_ALI_CSO_ALPHA_FMS,8,3          ## @ALI_CSO_ALPHA_FMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"playback pointer returned cso=%xh.\n"

	.no_dead_strip	_snd_ali_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_ali_playback_pointer
_snd_ali_playback_pointer:              ; @snd_ali_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]
	ldr	x20, [x8]
	bl	_spin_lock
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w20, [x20]
Lloh0:
	adrp	x8, _ALI_GC_CIR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALI_GC_CIR@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_ALI_REG
	mov	x1, x0
	mov	x0, x20
	bl	_outb
Lloh3:
	adrp	x8, _ALI_CSO_ALPHA_FMS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALI_CSO_ALPHA_FMS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, #2
	mov	x0, x19
	bl	_ALI_REG
	bl	_inw
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_snd_ali_printk
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ALI_GC_CIR,8,3                 ; @ALI_GC_CIR
	.comm	_ALI_CSO_ALPHA_FMS,8,3          ; @ALI_CSO_ALPHA_FMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"playback pointer returned cso=%xh.\n"

	.no_dead_strip	_snd_ali_playback_pointer
.subsections_via_symbols
