	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_timers
_scan_timers:                           ## @scan_timers
	.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
	movl	$0, -64(%rbp)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)
	movq	_mfgpt_reset_timers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_reset_all_timers
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_soft_reset
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irqsave
	movq	_MFGPT_MAX_TIMERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	movq	_MFGPT_REG_SETUP@GOTPCREL(%rip), %r14
	leaq	-64(%rbp), %r12
	movq	_MFGPT_SETUP_SETUP@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	%ebx, %edi
	callq	___set_bit
	incl	%r15d
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	movq	_MFGPT_MAX_TIMERS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -64(%rbp)
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_cs5535_mfgpt_read
	testl	%eax, (%r13)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_mfgpt_reset_timers@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_10
	jmp	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mfgpt_reset_timers,4,2         ## @mfgpt_reset_timers
	.comm	_MFGPT_MAX_TIMERS,4,2           ## @MFGPT_MAX_TIMERS
	.comm	_MFGPT_REG_SETUP,4,2            ## @MFGPT_REG_SETUP
	.comm	_MFGPT_SETUP_SETUP,4,2          ## @MFGPT_SETUP_SETUP
	.no_dead_strip	_scan_timers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_timers
_scan_timers:                           ; @scan_timers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	str	wzr, [sp]
	str	x0, [sp, #8]
Lloh0:
	adrp	x22, _mfgpt_reset_timers@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mfgpt_reset_timers@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	bl	_reset_all_timers
	b	LBB0_4
LBB0_3:
	bl	_soft_reset
LBB0_4:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x23, _MFGPT_MAX_TIMERS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MFGPT_MAX_TIMERS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	w21, #0
	mov	w20, #0
Lloh4:
	adrp	x24, _MFGPT_REG_SETUP@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MFGPT_REG_SETUP@GOTPAGEOFF]
Lloh6:
	adrp	x25, _MFGPT_SETUP_SETUP@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MFGPT_SETUP_SETUP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	ldr	w8, [x23]
	cmp	w21, w8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [sp]
	ldr	w1, [x24]
	mov	x0, sp
	bl	_cs5535_mfgpt_read
	ldr	w8, [x25]
	and	w8, w8, w0
	ldr	w9, [x22]
	cmp	w8, #0
	ccmp	w9, #2, #4, ne
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	___set_bit
	add	w20, w20, #1
	b	LBB0_6
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mfgpt_reset_timers,4,2         ; @mfgpt_reset_timers
	.comm	_MFGPT_MAX_TIMERS,4,2           ; @MFGPT_MAX_TIMERS
	.comm	_MFGPT_REG_SETUP,4,2            ; @MFGPT_REG_SETUP
	.comm	_MFGPT_SETUP_SETUP,4,2          ; @MFGPT_SETUP_SETUP
	.no_dead_strip	_scan_timers
.subsections_via_symbols
