	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usb_caiaq_pcm_pointer
_snd_usb_caiaq_pcm_pointer:             ## @snd_usb_caiaq_pcm_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, %rbx
	movslq	(%rdi), %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock
	cmpq	$0, 32(%r14)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 24(%r14)
	je	LBB0_3
LBB0_2:
	movq	_SNDRV_PCM_POS_XRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rbx), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movl	16(%rbx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	16(%r14), %rax
	jmp	LBB0_6
LBB0_5:
	movq	8(%r14), %rax
LBB0_6:
	movl	(%rax,%r15,4), %esi
	callq	_bytes_to_frames
	movl	%eax, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_POS_XRUN,4,2         ## @SNDRV_PCM_POS_XRUN
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_snd_usb_caiaq_pcm_pointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_usb_caiaq_pcm_pointer
_snd_usb_caiaq_pcm_pointer:             ; @snd_usb_caiaq_pcm_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
	ldrsw	x21, [x0]
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	bl	_spin_lock
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _SNDRV_PCM_POS_XRUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_POS_XRUN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
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
LBB0_4:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
LBB0_7:
	ldr	w1, [x8, x21, lsl #2]
	bl	_bytes_to_frames
	mov	x20, x0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_POS_XRUN,4,2         ; @SNDRV_PCM_POS_XRUN
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_snd_usb_caiaq_pcm_pointer
.subsections_via_symbols
