	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_power
_show_power:                            ## @show_power
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_to_pci_dev
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movl	(%r12), %edi
	movl	4(%r12), %ebx
	callq	_PCI_SLOT
	movl	%eax, %edi
	movl	$5, %esi
	callq	_PCI_DEVFN
	movq	_REG_TDP_RUNNING_AVERAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-44(%rbp), %r13
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r13, %rcx
	callq	_pci_bus_read_config_dword
	movl	-44(%rbp), %edi
	shrl	$4, %edi
	andl	$4194303, %edi                  ## imm = 0x3FFFFF
	movl	$21, %esi
	callq	_sign_extend32
	movl	%eax, %r14d
	movl	-44(%rbp), %ebx
	andl	$15, %ebx
	movl	(%r12), %edi
	movl	4(%r12), %r12d
	callq	_PCI_SLOT
	movl	%eax, %edi
	movl	$5, %esi
	callq	_PCI_DEVFN
	movq	_REG_TDP_LIMIT3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%r13, %rcx
	callq	_pci_bus_read_config_dword
	movswl	-42(%rbp), %eax
	addl	(%r15), %eax
	leal	1(%rbx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	subl	%r14d, %eax
	imull	4(%r15), %eax
	imull	$15625, %eax, %edx              ## imm = 0x3D09
	addb	$11, %bl
	movl	%ebx, %ecx
	sarl	%cl, %edx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sprintf
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_TDP_RUNNING_AVERAGE,4,2    ## @REG_TDP_RUNNING_AVERAGE
	.comm	_REG_TDP_LIMIT3,4,2             ## @REG_TDP_LIMIT3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u\n"

	.no_dead_strip	_show_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_power
_show_power:                            ; @show_power
	.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, x2
	mov	x20, x0
	bl	_to_pci_dev
	mov	x21, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	ldp	w0, w22, [x21]
	bl	_PCI_SLOT
	mov	w1, #5
	bl	_PCI_DEVFN
	mov	x1, x0
Lloh0:
	adrp	x8, _REG_TDP_RUNNING_AVERAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_TDP_RUNNING_AVERAGE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x22
	bl	_pci_bus_read_config_dword
	ldr	w8, [sp, #12]
	ubfx	w0, w8, #4, #22
	mov	w1, #21
	bl	_sign_extend32
	mov	x22, x0
	ldr	w8, [sp, #12]
	and	w24, w8, #0xf
	add	w25, w24, #1
	ldp	w0, w23, [x21]
	bl	_PCI_SLOT
	mov	w1, #5
	bl	_PCI_DEVFN
	mov	x1, x0
Lloh3:
	adrp	x8, _REG_TDP_LIMIT3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_TDP_LIMIT3@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x23
	bl	_pci_bus_read_config_dword
	ldrsh	w8, [sp, #14]
	ldp	w9, w10, [x20]
	add	w8, w8, w9
	lsl	w8, w8, w25
	sub	w8, w8, w22
	mul	w8, w10, w8
	mov	w9, #15625
	mul	w8, w8, w9
	add	w9, w24, #11
	asr	w2, w8, w9
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_TDP_RUNNING_AVERAGE,4,2    ; @REG_TDP_RUNNING_AVERAGE
	.comm	_REG_TDP_LIMIT3,4,2             ; @REG_TDP_LIMIT3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u\n"

	.no_dead_strip	_show_power
.subsections_via_symbols
