	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function speedstep_activate
_speedstep_activate:                    ## @speedstep_activate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, -20(%rbp)
	movq	_speedstep_chipset_dev@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	leaq	-20(%rbp), %rdx
	movl	$160, %esi
	callq	_pci_read_config_word
	movl	-20(%rbp), %eax
	xorl	%ebx, %ebx
	testb	$8, %al
	jne	LBB0_4
## %bb.3:
	orl	$8, %eax
	movl	%eax, -20(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movl	(%r14), %edi
	movl	-20(%rbp), %edx
	movl	$160, %esi
	callq	_pci_write_config_word
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_speedstep_chipset_dev,4,2      ## @speedstep_chipset_dev
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"activating SpeedStep (TM) registers\n"

	.no_dead_strip	_speedstep_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function speedstep_activate
_speedstep_activate:                    ; @speedstep_activate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	wzr, [sp, #12]
Lloh0:
	adrp	x19, _speedstep_chipset_dev@GOTPAGE
Lloh1:
	ldr	x19, [x19, _speedstep_chipset_dev@GOTPAGEOFF]
	ldr	w0, [x19]
	cbz	w0, LBB0_4
; %bb.1:
	add	x2, sp, #12
	mov	w1, #160
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	tbnz	w8, #3, LBB0_3
; %bb.2:
	orr	w8, w8, #0x8
	str	w8, [sp, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w0, [x19]
	ldr	w2, [sp, #12]
	mov	w1, #160
	bl	_pci_write_config_word
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_speedstep_chipset_dev,4,2      ; @speedstep_chipset_dev
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"activating SpeedStep (TM) registers\n"

	.no_dead_strip	_speedstep_activate
.subsections_via_symbols
