	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_perfEp                  ## -- Begin function nvbios_perfEp
	.p2align	4, 0x90
_nvbios_perfEp:                         ## @nvbios_perfEp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	16(%rbp), %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_nvbios_perf_entry
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$44, %edx
	callq	_memset
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_nvbios_rd08
	movq	%r12, %rdx
	movl	%eax, (%r12)
	movl	$0, %eax
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
LBB0_2:
	addl	$-18, %eax
	cmpl	$46, %eax
	ja	LBB0_15
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%rdx, %r14
	jmpq	*%rax
LBB0_4:
	leaq	1(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd32
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 4(%r14)
	leaq	5(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd32
                                        ## kill: def $eax killed $eax def $rax
	shll	$2, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 8(%r14)
	leaq	55(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movl	%eax, 12(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$57, (%rax)
	jl	LBB0_14
## %bb.5:
	movq	%r15, %rsi
	addq	$56, %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movl	%eax, 16(%r14)
	jmp	LBB0_14
LBB0_6:
	leaq	4(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movl	%eax, 12(%r14)
	leaq	5(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movl	%eax, 16(%r14)
	leaq	6(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$1000, %eax, %ebx               ## imm = 0x3E8
	movl	%ebx, 20(%r14)
	leaq	8(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movsbl	%al, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	addl	%ebx, %eax
	movl	%eax, 4(%r14)
	movq	(%r13), %rax
	movl	(%rax), %eax
	orl	$2, %eax
	movq	%r15, %rsi
	addq	$11, %rsi
	cmpl	$75, %eax
	je	LBB0_7
## %bb.9:
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$2000, %eax, %eax               ## imm = 0x7D0
	movl	%eax, 8(%r14)
	jmp	LBB0_14
LBB0_10:
	leaq	4(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movl	%eax, 12(%r14)
	leaq	5(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movl	%eax, 16(%r14)
	leaq	6(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 4(%r14)
	leaq	10(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 20(%r14)
	movq	%r15, %rsi
	addq	$12, %rsi
LBB0_7:
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 8(%r14)
	jmp	LBB0_14
LBB0_11:
	leaq	2(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd16
	movl	%eax, 24(%r14)
LBB0_12:
	leaq	6(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movl	%eax, 12(%r14)
	leaq	7(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movl	%eax, 16(%r14)
	leaq	8(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 4(%r14)
	leaq	10(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 20(%r14)
	leaq	12(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 8(%r14)
	leaq	16(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 28(%r14)
	movq	%r15, %rsi
	addq	$20, %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 32(%r14)
	jmp	LBB0_14
LBB0_13:
	leaq	2(%r15), %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
	movl	%eax, 16(%r14)
	movq	%r15, %rsi
	addq	$11, %rsi
	movq	%r13, %rdi
	callq	_nvbios_rd08
                                        ## kill: def $eax killed $eax def $rax
	andl	$3, %eax
	leaq	l_switch.table.nvbios_perfEp(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movl	$255, 36(%r14)
LBB0_14:
	movq	%r15, %rbx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_NVKM_PCIE_SPEED_5_0,4,2        ## @NVKM_PCIE_SPEED_5_0
	.comm	_NVKM_PCIE_SPEED_2_5,4,2        ## @NVKM_PCIE_SPEED_2_5
	.comm	_NVKM_PCIE_SPEED_8_0,4,2        ## @NVKM_PCIE_SPEED_8_0
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.nvbios_perfEp
l_switch.table.nvbios_perfEp:
	.quad	_NVKM_PCIE_SPEED_5_0
	.quad	_NVKM_PCIE_SPEED_2_5
	.quad	_NVKM_PCIE_SPEED_8_0
	.quad	_NVKM_PCIE_SPEED_2_5

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_perfEp                  ; -- Begin function nvbios_perfEp
	.p2align	2
_nvbios_perfEp:                         ; @nvbios_perfEp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x6
	mov	x22, x3
	mov	x23, x2
	mov	x21, x0
	bl	_nvbios_perf_entry
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #44
	bl	_memset
	mov	x0, x21
	mov	x1, x20
	bl	_nvbios_rd08
	mov	x8, x0
	mov	x0, #0
	str	w8, [x19]
	ldr	w8, [x23]
	cmp	x20, #0
	csel	w8, wzr, w8, eq
	sub	w8, w8, #18
	cmp	w8, #46
	b.hi	LBB0_12
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x1, x20, #1
	mov	x0, x21
	bl	_nvbios_rd32
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #1
	str	w8, [x19, #4]
	add	x1, x20, #5
	mov	x0, x21
	bl	_nvbios_rd32
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #2
	str	w8, [x19, #8]
	add	x1, x20, #55
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19, #12]
	ldr	w8, [x22]
	cmp	w8, #57
	b.lt	LBB0_11
; %bb.3:
	add	x1, x20, #56
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19, #16]
	b	LBB0_11
LBB0_4:
	add	x1, x20, #4
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19, #12]
	add	x1, x20, #5
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19, #16]
	add	x1, x20, #6
	mov	x0, x21
	bl	_nvbios_rd16
	mov	w22, #1000
	mul	w23, w0, w22
	str	w23, [x19, #20]
	add	x1, x20, #8
	mov	x0, x21
	bl	_nvbios_rd08
	sxtb	w8, w0
	madd	w8, w8, w22, w23
	str	w8, [x19, #4]
	ldr	x8, [x21]
	ldr	w8, [x8]
	orr	w8, w8, #0x2
	add	x1, x20, #11
	cmp	w8, #75
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_nvbios_rd16
	mov	w8, #2000
	mul	w8, w0, w8
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_6:
	add	x1, x20, #4
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19, #12]
	add	x1, x20, #5
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19, #16]
	add	x1, x20, #6
	mov	x0, x21
	bl	_nvbios_rd16
	mov	w22, #1000
	mul	w8, w0, w22
	str	w8, [x19, #4]
	add	x1, x20, #10
	mov	x0, x21
	bl	_nvbios_rd16
	mul	w8, w0, w22
	str	w8, [x19, #20]
	add	x1, x20, #12
LBB0_7:
	mov	x0, x21
	bl	_nvbios_rd16
	mul	w8, w0, w22
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_8:
	add	x1, x20, #2
	mov	x0, x21
	bl	_nvbios_rd16
	str	w0, [x19, #24]
LBB0_9:
	add	x1, x20, #6
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19, #12]
	add	x1, x20, #7
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19, #16]
	add	x1, x20, #8
	mov	x0, x21
	bl	_nvbios_rd16
	mov	w22, #1000
	mul	w8, w0, w22
	str	w8, [x19, #4]
	add	x1, x20, #10
	mov	x0, x21
	bl	_nvbios_rd16
	mul	w8, w0, w22
	str	w8, [x19, #20]
	add	x1, x20, #12
	mov	x0, x21
	bl	_nvbios_rd16
	mul	w8, w0, w22
	str	w8, [x19, #8]
	add	x1, x20, #16
	mov	x0, x21
	bl	_nvbios_rd16
	mul	w8, w0, w22
	str	w8, [x19, #28]
	add	x1, x20, #20
	mov	x0, x21
	bl	_nvbios_rd16
	mul	w8, w0, w22
	str	w8, [x19, #32]
	b	LBB0_11
LBB0_10:
	add	x1, x20, #2
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19, #16]
	add	x1, x20, #11
	mov	x0, x21
	bl	_nvbios_rd08
	and	w8, w0, #0x3
Lloh2:
	adrp	x9, l_switch.table.nvbios_perfEp@PAGE
Lloh3:
	add	x9, x9, l_switch.table.nvbios_perfEp@PAGEOFF
	ldr	x8, [x9, w8, uxtw #3]
	ldr	w8, [x8]
	mov	w9, #255
	stp	w9, w8, [x19, #36]
LBB0_11:
	mov	x0, x20
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_NVKM_PCIE_SPEED_5_0,4,2        ; @NVKM_PCIE_SPEED_5_0
	.comm	_NVKM_PCIE_SPEED_2_5,4,2        ; @NVKM_PCIE_SPEED_2_5
	.comm	_NVKM_PCIE_SPEED_8_0,4,2        ; @NVKM_PCIE_SPEED_8_0
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.nvbios_perfEp
l_switch.table.nvbios_perfEp:
	.quad	_NVKM_PCIE_SPEED_5_0
	.quad	_NVKM_PCIE_SPEED_2_5
	.quad	_NVKM_PCIE_SPEED_8_0
	.quad	_NVKM_PCIE_SPEED_2_5

.subsections_via_symbols
