	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw5864_timer_isr
_tw5864_timer_isr:                      ## @tw5864_timer_isr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_TW5864_PCI_INTR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TW5864_TIMER_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tw_writel
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r14d
	je	LBB0_1
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_TW5864_INPUTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.2:
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	incl	%r14d
	movq	_TW5864_INPUTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	4(%rsi), %eax
	addl	%r14d, %eax
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	movq	16(%rsi), %r15
	movslq	%edx, %rax
	leaq	(%rax,%rax,4), %r13
	leaq	(%r15,%r13,4), %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 16(%r15,%r13,4)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	(%r15,%r13,4), %rbx
	movq	_TW5864_SENIF_ORG_FRM_PTR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	addl	%edx, %edx
	movl	$3, %esi
	callq	_tw_mask_shift_readl
	cmpl	%eax, 4(%r15,%r13,4)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r15,%r13,4), %edi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_TW5864_ENC_BUF_PTR_REC1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	addl	%edx, %edx
	movl	4(%rbx), %ecx
	addl	$3, %ecx
	movl	$3, %esi
	callq	_tw_mask_shift_writel
	movq	%rbx, %rdi
	callq	_tw5864_input_deadline_update
	jmp	LBB0_7
LBB0_9:
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_tw5864_input_deadline_update
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rcx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cltd
	movq	_TW5864_INPUTS@GOTPCREL(%rip), %rsi
	idivl	(%rsi)
	movl	%edx, 4(%rcx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tw5864_request_encoded_frame   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TW5864_PCI_INTR_STATUS,4,2     ## @TW5864_PCI_INTR_STATUS
	.comm	_TW5864_TIMER_INTR,4,2          ## @TW5864_TIMER_INTR
	.comm	_TW5864_INPUTS,4,2              ## @TW5864_INPUTS
	.comm	_TW5864_SENIF_ORG_FRM_PTR1,4,2  ## @TW5864_SENIF_ORG_FRM_PTR1
	.comm	_TW5864_ENC_BUF_PTR_REC1,4,2    ## @TW5864_ENC_BUF_PTR_REC1
	.no_dead_strip	_tw5864_timer_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw5864_timer_isr
_tw5864_timer_isr:                      ; @tw5864_timer_isr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _TW5864_PCI_INTR_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TW5864_PCI_INTR_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _TW5864_TIMER_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TW5864_TIMER_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_tw_writel
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w21, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	cbz	w21, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x23, _TW5864_INPUTS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _TW5864_INPUTS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.3:
	mov	w24, #0
	mov	w25, #20
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #4]
	add	w9, w24, w9
	sdiv	w10, w9, w8
	msub	w26, w10, w8, w9
	ldr	x27, [x19, #16]
	smaddl	x21, w26, w25, x27
	add	x22, x21, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x28, w26
Lloh8:
	adrp	x8, _TW5864_SENIF_ORG_FRM_PTR1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TW5864_SENIF_ORG_FRM_PTR1@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x21]
	lsl	w2, w8, #1
	mov	w1, #3
	bl	_tw_mask_shift_readl
	madd	x26, x28, x25, x27
	ldr	w8, [x26, #4]!
	cmp	w8, w0
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x28, x25, x27
	ldr	w0, [x8, #12]
	bl	_time_is_after_jiffies
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x8, _TW5864_ENC_BUF_PTR_REC1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TW5864_ENC_BUF_PTR_REC1@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w8, [x21]
	lsl	w2, w8, #1
	ldr	w8, [x26]
	add	w3, w8, #3
	mov	w1, #3
	bl	_tw_mask_shift_writel
	mov	x0, x21
	bl	_tw5864_input_deadline_update
	b	LBB0_4
LBB0_9:
	str	w0, [x26]
	mov	x0, x21
	bl	_tw5864_input_deadline_update
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x19]
	add	w8, w28, #1
	ldr	w9, [x23]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_tw5864_request_encoded_frame
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TW5864_PCI_INTR_STATUS,4,2     ; @TW5864_PCI_INTR_STATUS
	.comm	_TW5864_TIMER_INTR,4,2          ; @TW5864_TIMER_INTR
	.comm	_TW5864_INPUTS,4,2              ; @TW5864_INPUTS
	.comm	_TW5864_SENIF_ORG_FRM_PTR1,4,2  ; @TW5864_SENIF_ORG_FRM_PTR1
	.comm	_TW5864_ENC_BUF_PTR_REC1,4,2    ; @TW5864_ENC_BUF_PTR_REC1
	.no_dead_strip	_tw5864_timer_isr
.subsections_via_symbols
