	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loopback_pos_update
_loopback_pos_update:                   ## @loopback_pos_update
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %r12
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	4(%rbx), %r13d
	xorl	(%rbx), %r13d
	movl	(%r14), %eax
	btl	%eax, %r13d
	jae	LBB0_1
## %bb.2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %r14
	subq	(%r12), %r14
	movq	%r12, %rcx
	movq	%rax, (%r12)
	jmp	LBB0_3
LBB0_1:
	movq	%r12, %rcx
	xorl	%r14d, %r14d
LBB0_3:
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r13d
	jae	LBB0_4
## %bb.5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rbx
	subq	(%r15), %rbx
	movq	%rax, (%r15)
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rcx, %r12
	movq	%r14, %rax
	orq	%rbx, %rax
	je	LBB0_18
## %bb.7:
	movq	%r14, %rsi
	subq	%rbx, %rsi
	jbe	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_bytepos_delta
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bytepos_finish
	movq	%rbx, %r14
	jmp	LBB0_11
LBB0_9:
	jae	LBB0_11
## %bb.10:
	subq	%r14, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bytepos_delta
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_clear_capture_buf
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bytepos_finish
	movq	%r14, %rbx
LBB0_11:
	movq	%r14, %rax
	orq	%rbx, %rax
	je	LBB0_18
## %bb.12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bytepos_delta
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bytepos_delta
	movl	%r14d, %ecx
	subl	%eax, %ecx
	jae	LBB0_14
## %bb.13:
	movl	%eax, %ecx
	subl	%r14d, %ecx
	movq	%r15, %rdx
	movl	%eax, %r14d
	jmp	LBB0_16
LBB0_14:
	jbe	LBB0_17
## %bb.15:
	movq	%r12, %rdx
LBB0_16:
	movl	%ecx, 8(%rdx)
LBB0_17:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_copy_play_buf
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_bytepos_finish
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bytepos_finish
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_loopback_pos_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loopback_pos_update
_loopback_pos_update:                   ; @loopback_pos_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x23, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x22, [x8, x9, lsl #3]
Lloh2:
	adrp	x24, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x21, [x8, x9, lsl #3]
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldp	w8, w9, [x20]
	eor	w20, w9, w8
	ldr	w8, [x23]
	lsr	w9, w20, w8
Lloh4:
	adrp	x8, _jiffies@GOTPAGE
Lloh5:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	tbz	w9, #0, LBB0_2
; %bb.1:
	ldr	x9, [x8]
	ldr	x10, [x22]
	sub	x23, x9, x10
	str	x9, [x22]
	b	LBB0_3
LBB0_2:
	mov	x23, #0
LBB0_3:
	ldr	w9, [x24]
	lsr	w9, w20, w9
	tbz	w9, #0, LBB0_5
; %bb.4:
	ldr	x8, [x8]
	ldr	x9, [x21]
	sub	x24, x8, x9
	str	x8, [x21]
	orr	x8, x23, x24
	cbnz	x8, LBB0_6
	b	LBB0_17
LBB0_5:
	mov	x24, #0
	orr	x8, x23, x24
	cbz	x8, LBB0_17
LBB0_6:
	subs	x1, x23, x24
	b.ls	LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_bytepos_delta
	mov	x1, x0
	mov	x0, x22
	bl	_bytepos_finish
	mov	x23, x24
	b	LBB0_10
LBB0_8:
	b.hs	LBB0_10
; %bb.9:
	sub	x1, x24, x23
	mov	x0, x21
	bl	_bytepos_delta
	mov	x24, x0
	mov	x0, x21
	mov	x1, x24
	bl	_clear_capture_buf
	mov	x0, x21
	mov	x1, x24
	bl	_bytepos_finish
	mov	x24, x23
LBB0_10:
	orr	x8, x23, x24
	cbz	x8, LBB0_17
; %bb.11:
	mov	x0, x22
	mov	x1, x23
	bl	_bytepos_delta
	mov	x23, x0
	mov	x0, x21
	mov	x1, x24
	bl	_bytepos_delta
	subs	w8, w23, w0
	b.hs	LBB0_13
; %bb.12:
	sub	w8, w0, w23
	mov	x9, x21
	mov	x23, x0
	b	LBB0_15
LBB0_13:
	b.ls	LBB0_16
; %bb.14:
	mov	x9, x22
LBB0_15:
	str	w8, [x9, #8]
LBB0_16:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_copy_play_buf
	mov	x0, x22
	mov	x1, x23
	bl	_bytepos_finish
	mov	x0, x21
	mov	x1, x23
	bl	_bytepos_finish
LBB0_17:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_loopback_pos_update
.subsections_via_symbols
