	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_vth
_set_vth:                               ## @set_vth
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_RSTV0910_P2_NNOSDATAT1@GOTPCREL(%rip), %rax
	movq	8(%rdi), %rsi
	addq	(%rax), %rsi
	leaq	-48(%rbp), %rdx
	movl	$2, %ecx
	callq	_read_regs
	movl	%eax, %r14d
	movl	-48(%rbp), %ebx
	shll	$8, %ebx
	orl	-44(%rbp), %ebx
	leaq	_set_vth.vthlookup_table(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_table_lookup
	movq	(%r15), %rcx
	movq	(%rcx), %rdx
	cmpq	%rax, %rdx
	jg	LBB0_1
## %bb.2:
	cmpq	%rax, 8(%rcx)
	jg	LBB0_3
LBB0_4:
	cmpq	%rax, 16(%rcx)
	jg	LBB0_5
LBB0_6:
	cmpq	%rax, 24(%rcx)
	jg	LBB0_7
LBB0_8:
	cmpq	%rax, 32(%rcx)
	jg	LBB0_9
LBB0_10:
	cmpq	%rax, 40(%rcx)
	jle	LBB0_12
LBB0_11:
	movq	%rax, 40(%rcx)
LBB0_12:
	movq	_RSTV0910_P2_VTH12@GOTPCREL(%rip), %rbx
	movq	8(%r15), %rsi
	addq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_write_reg
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	leaq	(%rax,%rdx), %rsi
	incq	%rsi
	movq	8(%rcx), %rdx
	movq	%r15, %rdi
	callq	_write_reg
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	leaq	(%rax,%rdx), %rsi
	addq	$2, %rsi
	movq	16(%rcx), %rdx
	movq	%r15, %rdi
	callq	_write_reg
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	leaq	(%rax,%rdx), %rsi
	addq	$3, %rsi
	movq	24(%rcx), %rdx
	movq	%r15, %rdi
	callq	_write_reg
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	leaq	(%rax,%rdx), %rsi
	addq	$4, %rsi
	movq	32(%rcx), %rdx
	movq	%r15, %rdi
	callq	_write_reg
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	leaq	(%rax,%rdx), %rsi
	addq	$5, %rsi
	movq	40(%rcx), %rdx
	movq	%r15, %rdi
	callq	_write_reg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, (%rcx)
	movq	%rax, %rdx
	cmpq	%rax, 8(%rcx)
	jle	LBB0_4
LBB0_3:
	movq	%rax, 8(%rcx)
	cmpq	%rax, 16(%rcx)
	jle	LBB0_6
LBB0_5:
	movq	%rax, 16(%rcx)
	cmpq	%rax, 24(%rcx)
	jle	LBB0_8
LBB0_7:
	movq	%rax, 24(%rcx)
	cmpq	%rax, 32(%rcx)
	jle	LBB0_10
LBB0_9:
	movq	%rax, 32(%rcx)
	cmpq	%rax, 40(%rcx)
	jg	LBB0_11
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @set_vth.vthlookup_table
_set_vth.vthlookup_table:
	.long	250                             ## 0xfa
	.long	8780                            ## 0x224c
	.long	100                             ## 0x64
	.long	7405                            ## 0x1ced
	.long	40                              ## 0x28
	.long	6330                            ## 0x18ba
	.long	12                              ## 0xc
	.long	5224                            ## 0x1468
	.long	5                               ## 0x5
	.long	4236                            ## 0x108c

	.comm	_RSTV0910_P2_NNOSDATAT1,8,3     ## @RSTV0910_P2_NNOSDATAT1
	.comm	_RSTV0910_P2_VTH12,8,3          ## @RSTV0910_P2_VTH12
	.no_dead_strip	_set_vth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_vth
_set_vth:                               ; @set_vth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _RSTV0910_P2_NNOSDATAT1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSTV0910_P2_NNOSDATAT1@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	add	x1, x9, x8
	mov	x2, sp
	mov	w3, #2
	bl	_read_regs
	mov	x20, x0
	ldp	w8, w9, [sp]
	orr	w21, w9, w8, lsl #8
Lloh6:
	adrp	x22, _set_vth.vthlookup_table@PAGE
Lloh7:
	add	x22, x22, _set_vth.vthlookup_table@PAGEOFF
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_table_lookup
	ldr	x8, [x19]
	ldr	x2, [x8]
	cmp	x2, x0
	b.le	LBB0_2
; %bb.1:
	str	x0, [x8]
	mov	x2, x0
LBB0_2:
	ldr	x9, [x8, #8]
	cmp	x9, x0
	b.le	LBB0_4
; %bb.3:
	str	x0, [x8, #8]
LBB0_4:
	ldr	x9, [x8, #16]
	cmp	x9, x0
	b.le	LBB0_6
; %bb.5:
	str	x0, [x8, #16]
LBB0_6:
	ldr	x9, [x8, #24]
	cmp	x9, x0
	b.le	LBB0_8
; %bb.7:
	str	x0, [x8, #24]
LBB0_8:
	ldr	x9, [x8, #32]
	cmp	x9, x0
	b.le	LBB0_10
; %bb.9:
	str	x0, [x8, #32]
LBB0_10:
	ldr	x9, [x8, #40]
	cmp	x9, x0
	b.le	LBB0_12
; %bb.11:
	str	x0, [x8, #40]
LBB0_12:
Lloh8:
	adrp	x21, _RSTV0910_P2_VTH12@GOTPAGE
Lloh9:
	ldr	x21, [x21, _RSTV0910_P2_VTH12@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	add	x1, x9, x8
	mov	x0, x19
	bl	_write_reg
	ldr	x8, [x21]
	ldp	x10, x9, [x19]
	add	x8, x8, x9
	add	x1, x8, #1
	ldr	x2, [x10, #8]
	mov	x0, x19
	bl	_write_reg
	ldr	x8, [x21]
	ldp	x10, x9, [x19]
	add	x8, x8, x9
	add	x1, x8, #2
	ldr	x2, [x10, #16]
	mov	x0, x19
	bl	_write_reg
	ldr	x8, [x21]
	ldp	x10, x9, [x19]
	add	x8, x8, x9
	add	x1, x8, #3
	ldr	x2, [x10, #24]
	mov	x0, x19
	bl	_write_reg
	ldr	x8, [x21]
	ldp	x10, x9, [x19]
	add	x8, x8, x9
	add	x1, x8, #4
	ldr	x2, [x10, #32]
	mov	x0, x19
	bl	_write_reg
	ldr	x8, [x21]
	ldp	x10, x9, [x19]
	add	x8, x8, x9
	add	x1, x8, #5
	ldr	x2, [x10, #40]
	mov	x0, x19
	bl	_write_reg
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @set_vth.vthlookup_table
_set_vth.vthlookup_table:
	.long	250                             ; 0xfa
	.long	8780                            ; 0x224c
	.long	100                             ; 0x64
	.long	7405                            ; 0x1ced
	.long	40                              ; 0x28
	.long	6330                            ; 0x18ba
	.long	12                              ; 0xc
	.long	5224                            ; 0x1468
	.long	5                               ; 0x5
	.long	4236                            ; 0x108c

	.comm	_RSTV0910_P2_NNOSDATAT1,8,3     ; @RSTV0910_P2_NNOSDATAT1
	.comm	_RSTV0910_P2_VTH12,8,3          ; @RSTV0910_P2_VTH12
	.no_dead_strip	_set_vth
.subsections_via_symbols
