	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a23_timer_timecounter_setup
_a23_timer_timecounter_setup:           ## @a23_timer_timecounter_setup
	.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, %r14
	xorl	%edi, %edi
	callq	_TIMER_CTRL_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_timer_read_4
	movq	_TIMER_CTRL_PRESCALAR_MASK@GOTPCREL(%rip), %rcx
	movq	_TIMER_CTRL_MODE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	(%rcx), %ebx
	movq	_TIMER_CTRL_CLKSRC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$1, %edi
	callq	_TIMER_CTRL_PRESCALAR
	movq	_TIMER_CTRL_OSC24M@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, %ebx
	xorl	%edi, %edi
	callq	_TIMER_CTRL_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_timer_write_4
	xorl	%edi, %edi
	callq	_TIMER_INTV_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_timer_write_4
	xorl	%edi, %edi
	callq	_TIMER_INTV_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_timer_read_4
	xorl	%edi, %edi
	callq	_TIMER_CTRL_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_timer_read_4
	movl	%eax, %ebx
	movq	_TIMER_CTRL_AUTORELOAD@GOTPCREL(%rip), %rax
	movq	_TIMER_CTRL_START@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	xorl	%edi, %edi
	callq	_TIMER_CTRL_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_timer_write_4
	xorl	%edi, %edi
	callq	_TIMER_CURV_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_timer_read_4
	movq	_a23_timer_timecounter@GOTPCREL(%rip), %rdi
	movq	%r14, 8(%rdi)
	movl	(%r14), %eax
	movl	%eax, (%rdi)
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tc_init                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMER_CTRL_PRESCALAR_MASK,4,2  ## @TIMER_CTRL_PRESCALAR_MASK
	.comm	_TIMER_CTRL_MODE_MASK,4,2       ## @TIMER_CTRL_MODE_MASK
	.comm	_TIMER_CTRL_CLKSRC_MASK,4,2     ## @TIMER_CTRL_CLKSRC_MASK
	.comm	_TIMER_CTRL_OSC24M,4,2          ## @TIMER_CTRL_OSC24M
	.comm	_TIMER_CTRL_AUTORELOAD,4,2      ## @TIMER_CTRL_AUTORELOAD
	.comm	_TIMER_CTRL_START,4,2           ## @TIMER_CTRL_START
	.comm	_a23_timer_timecounter,16,3     ## @a23_timer_timecounter
	.no_dead_strip	_a23_timer_timecounter_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a23_timer_timecounter_setup
_a23_timer_timecounter_setup:           ; @a23_timer_timecounter_setup
	.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
	mov	x19, x0
	mov	w0, #0
	bl	_TIMER_CTRL_REG
	mov	x1, x0
	mov	x0, x19
	bl	_timer_read_4
Lloh0:
	adrp	x8, _TIMER_CTRL_PRESCALAR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIMER_CTRL_PRESCALAR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TIMER_CTRL_MODE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TIMER_CTRL_MODE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _TIMER_CTRL_CLKSRC_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TIMER_CTRL_CLKSRC_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w8, w9
	bic	w20, w0, w8
	mov	w0, #1
	bl	_TIMER_CTRL_PRESCALAR
Lloh9:
	adrp	x8, _TIMER_CTRL_OSC24M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TIMER_CTRL_OSC24M@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w0
	orr	w20, w8, w20
	mov	w0, #0
	bl	_TIMER_CTRL_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_timer_write_4
	mov	w0, #0
	bl	_TIMER_INTV_REG
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1
	bl	_timer_write_4
	mov	w0, #0
	bl	_TIMER_INTV_REG
	mov	x1, x0
	mov	x0, x19
	bl	_timer_read_4
	mov	w0, #0
	bl	_TIMER_CTRL_REG
	mov	x1, x0
	mov	x0, x19
	bl	_timer_read_4
Lloh12:
	adrp	x8, _TIMER_CTRL_AUTORELOAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TIMER_CTRL_AUTORELOAD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _TIMER_CTRL_START@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TIMER_CTRL_START@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w20, w8, w9
	mov	w0, #0
	bl	_TIMER_CTRL_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_timer_write_4
	mov	w0, #0
	bl	_TIMER_CURV_REG
	mov	x1, x0
	mov	x0, x19
	bl	_timer_read_4
Lloh18:
	adrp	x0, _a23_timer_timecounter@GOTPAGE
Lloh19:
	ldr	x0, [x0, _a23_timer_timecounter@GOTPAGEOFF]
	str	x19, [x0, #8]
	ldr	w8, [x19]
	str	w8, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tc_init
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMER_CTRL_PRESCALAR_MASK,4,2  ; @TIMER_CTRL_PRESCALAR_MASK
	.comm	_TIMER_CTRL_MODE_MASK,4,2       ; @TIMER_CTRL_MODE_MASK
	.comm	_TIMER_CTRL_CLKSRC_MASK,4,2     ; @TIMER_CTRL_CLKSRC_MASK
	.comm	_TIMER_CTRL_OSC24M,4,2          ; @TIMER_CTRL_OSC24M
	.comm	_TIMER_CTRL_AUTORELOAD,4,2      ; @TIMER_CTRL_AUTORELOAD
	.comm	_TIMER_CTRL_START,4,2           ; @TIMER_CTRL_START
	.comm	_a23_timer_timecounter,16,3     ; @a23_timer_timecounter
	.no_dead_strip	_a23_timer_timecounter_setup
.subsections_via_symbols
