	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tweak_runavg_range
_tweak_runavg_range:                    ## @tweak_runavg_range
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_affected_device@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_pci_match_id
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	movl	4(%rbx), %r14d
	callq	_PCI_SLOT
	movl	%eax, %edi
	movl	$5, %esi
	callq	_PCI_DEVFN
	movq	_REG_TDP_RUNNING_AVERAGE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-28(%rbp), %rcx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pci_bus_read_config_dword
	movl	-28(%rbp), %eax
	movl	%eax, %ecx
	andl	$15, %ecx
	cmpl	$14, %ecx
	jne	LBB0_3
## %bb.2:
	andl	$-16, %eax
	orl	$9, %eax
	movl	%eax, -28(%rbp)
	movl	(%rbx), %edi
	movl	4(%rbx), %ebx
	callq	_PCI_SLOT
	movl	%eax, %edi
	movl	$5, %esi
	callq	_PCI_DEVFN
	movl	(%r15), %edx
	movl	-28(%rbp), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pci_bus_write_config_dword
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_affected_device,4,2            ## @affected_device
	.comm	_REG_TDP_RUNNING_AVERAGE,4,2    ## @REG_TDP_RUNNING_AVERAGE
	.no_dead_strip	_tweak_runavg_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tweak_runavg_range
_tweak_runavg_range:                    ; @tweak_runavg_range
	.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, _affected_device@GOTPAGE
Lloh1:
	ldr	x8, [x8, _affected_device@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_pci_match_id
	cbz	w0, LBB0_3
; %bb.1:
	ldp	w0, w20, [x19]
	bl	_PCI_SLOT
	mov	w1, #5
	bl	_PCI_DEVFN
	mov	x1, x0
Lloh3:
	adrp	x21, _REG_TDP_RUNNING_AVERAGE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _REG_TDP_RUNNING_AVERAGE@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x20
	bl	_pci_bus_read_config_dword
	ldr	w8, [sp, #12]
	and	w9, w8, #0xf
	cmp	w9, #14
	b.ne	LBB0_3
; %bb.2:
	mov	w9, #9
	bfxil	w8, w9, #0, #4
	str	w8, [sp, #12]
	ldp	w0, w20, [x19]
	bl	_PCI_SLOT
	mov	w1, #5
	bl	_PCI_DEVFN
	mov	x1, x0
	ldr	w2, [x21]
	ldr	w3, [sp, #12]
	mov	x0, x20
	bl	_pci_bus_write_config_dword
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_affected_device,4,2            ; @affected_device
	.comm	_REG_TDP_RUNNING_AVERAGE,4,2    ; @REG_TDP_RUNNING_AVERAGE
	.no_dead_strip	_tweak_runavg_range
.subsections_via_symbols
