	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aica_period_elapsed
_aica_period_elapsed:                   ## @aica_period_elapsed
	.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), %rax
	movq	8(%rdi), %r14
	movq	(%rax), %rbx
	movq	_AICA_CONTROL_CHANNEL_SAMPLE_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_readl
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_frames_to_bytes
	movq	_AICA_PERIOD_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	cmpl	(%rbx), %eax
	jne	LBB0_1
## %bb.6:
	addq	$12, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_1:
	cmpl	$2, (%r14)
	jl	LBB0_3
## %bb.2:
	movl	%eax, (%rbx)
LBB0_3:
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, 4(%rbx)
LBB0_5:
	movq	_aica_queue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AICA_CONTROL_CHANNEL_SAMPLE_NUMBER,4,2 ## @AICA_CONTROL_CHANNEL_SAMPLE_NUMBER
	.comm	_AICA_PERIOD_SIZE,4,2           ## @AICA_PERIOD_SIZE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_aica_queue,4,2                 ## @aica_queue
	.no_dead_strip	_aica_period_elapsed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aica_period_elapsed
_aica_period_elapsed:                   ; @aica_period_elapsed
	.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
	ldp	x8, x19, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _AICA_CONTROL_CHANNEL_SAMPLE_NUMBER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AICA_CONTROL_CHANNEL_SAMPLE_NUMBER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_readl
	mov	x1, x0
	mov	x0, x19
	bl	_frames_to_bytes
Lloh3:
	adrp	x8, _AICA_PERIOD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AICA_PERIOD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w8, w0, w8
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	add	x0, x20, #12
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_timer
LBB0_2:
	ldr	w9, [x19]
	cmp	w9, #2
	b.lt	LBB0_4
; %bb.3:
	str	w8, [x20]
LBB0_4:
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_6:
Lloh9:
	adrp	x8, _aica_queue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _aica_queue@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x20, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_queue_work
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AICA_CONTROL_CHANNEL_SAMPLE_NUMBER,4,2 ; @AICA_CONTROL_CHANNEL_SAMPLE_NUMBER
	.comm	_AICA_PERIOD_SIZE,4,2           ; @AICA_PERIOD_SIZE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_aica_queue,4,2                 ; @aica_queue
	.no_dead_strip	_aica_period_elapsed
.subsections_via_symbols
