	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_tct
_set_tct:                               ## @set_tct
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movslq	(%rsi), %rax
	movq	_SAR_SRAM_TCT_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rbx
	imulq	%rax, %rbx
	addq	8(%rdi), %rbx
	movl	4(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %esi
	movq	16(%r12), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_OPRINTK
	movq	_TCT_CBR@GOTPCREL(%rip), %rax
	movq	16(%r12), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_write_sram
	leaq	1(%rbx), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	leaq	2(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	leaq	3(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	leaq	4(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	leaq	5(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	leaq	6(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	addq	$7, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_write_sram
	jmp	LBB0_5
LBB0_3:
	movl	(%r14), %esi
	movq	16(%r12), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_OPRINTK
	movq	_TCT_UBR@GOTPCREL(%rip), %rax
	movq	16(%r12), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_write_sram
	leaq	1(%rbx), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	leaq	2(%rbx), %rsi
	movq	_TCT_TSIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_write_sram
	leaq	3(%rbx), %rsi
	movq	_TCT_HALT@GOTPCREL(%rip), %rax
	movq	_TCT_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_write_sram
	leaq	4(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	leaq	5(%rbx), %rsi
	movl	8(%r12), %edx
	movq	%r14, %rdi
	callq	_write_sram
	leaq	6(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	addq	$7, %rbx
	movq	_TCT_FLAG_UBR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_write_sram
	jmp	LBB0_5
LBB0_4:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAR_SRAM_TCT_SIZE,4,2          ## @SAR_SRAM_TCT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: writing TCT at 0x%lx, SCD 0x%lx.\n"

	.comm	_TCT_CBR,4,2                    ## @TCT_CBR
	.comm	_TCT_UBR,4,2                    ## @TCT_UBR
	.comm	_TCT_TSIF,4,2                   ## @TCT_TSIF
	.comm	_TCT_HALT,4,2                   ## @TCT_HALT
	.comm	_TCT_IDLE,4,2                   ## @TCT_IDLE
	.comm	_TCT_FLAG_UBR,4,2               ## @TCT_FLAG_UBR
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_set_tct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_tct
_set_tct:                               ; @set_tct
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SAR_SRAM_TCT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAR_SRAM_TCT_SIZE@GOTPAGEOFF]
	ldr	x9, [x0, #8]
Lloh2:
	ldrsw	x10, [x8]
	ldp	w11, w8, [x1]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	madd	x20, x10, x11, x9
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #130
	b.ne	LBB0_5
; %bb.2:
	ldr	w1, [x19]
	ldr	x8, [x21, #16]
	ldr	w3, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_OPRINTK
Lloh5:
	adrp	x8, _TCT_CBR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCT_CBR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x1, x20
	bl	_write_sram
	add	x1, x20, #1
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	add	x1, x20, #2
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	add	x1, x20, #3
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	add	x1, x20, #4
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	add	x1, x20, #5
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	add	x1, x20, #6
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	add	x1, x20, #7
	mov	x0, x19
	mov	w2, #0
	b	LBB0_4
LBB0_3:
	ldr	w1, [x19]
	ldr	x8, [x21, #16]
	ldr	w3, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_OPRINTK
Lloh10:
	adrp	x8, _TCT_UBR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TCT_UBR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x1, x20
	bl	_write_sram
	add	x1, x20, #1
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	add	x1, x20, #2
Lloh13:
	adrp	x8, _TCT_TSIF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TCT_TSIF@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_sram
Lloh16:
	adrp	x8, _TCT_HALT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TCT_HALT@GOTPAGEOFF]
	add	x1, x20, #3
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _TCT_IDLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TCT_IDLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_write_sram
	add	x1, x20, #4
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	add	x1, x20, #5
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_write_sram
	add	x1, x20, #6
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	add	x1, x20, #7
Lloh22:
	adrp	x8, _TCT_FLAG_UBR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TCT_FLAG_UBR@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
LBB0_4:
	bl	_write_sram
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_SAR_SRAM_TCT_SIZE,4,2          ; @SAR_SRAM_TCT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: writing TCT at 0x%lx, SCD 0x%lx.\n"

	.comm	_TCT_CBR,4,2                    ; @TCT_CBR
	.comm	_TCT_UBR,4,2                    ; @TCT_UBR
	.comm	_TCT_TSIF,4,2                   ; @TCT_TSIF
	.comm	_TCT_HALT,4,2                   ; @TCT_HALT
	.comm	_TCT_IDLE,4,2                   ; @TCT_IDLE
	.comm	_TCT_FLAG_UBR,4,2               ; @TCT_FLAG_UBR
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_set_tct
.subsections_via_symbols
