	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smist_probe
_smist_probe:                           ## @smist_probe
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_resource_disabled
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_2:
	movq	%r15, %rdi
	callq	_device_get_softc
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_device_get_parent
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	$-1, %edx
	callq	_device_find_child
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_device_is_attached
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_CPUFREQ_DRV_TYPE
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_CPUFREQ_FLAG_INFO_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_1
LBB0_6:
	movq	%r15, %rdi
	callq	_device_get_parent
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	movl	$-1, %edx
	callq	_device_find_child
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rdi
	callq	_device_is_attached
	testq	%rax, %rax
	jne	LBB0_1
LBB0_8:
	leaq	-32(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	callq	_int15_gsic_call
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movl	-32(%rbp), %edx
	movl	-44(%rbp), %ecx
	movl	-28(%rbp), %r8d
	movl	-40(%rbp), %r9d
	movl	-36(%rbp), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_10:
	cmpl	$-1, -32(%rbp)
	je	LBB0_14
## %bb.11:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movl	-40(%rbp), %eax
	movl	%eax, 4(%r14)
	movl	-28(%rbp), %eax
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	movl	$130, -28(%rbp)
	movl	$130, %eax
LBB0_13:
	movl	$-256, %ecx
	andl	-32(%rbp), %ecx
	movzbl	%al, %eax
	orl	%ecx, %eax
	movl	%eax, 8(%r14)
	movl	-36(%rbp), %eax
	jmp	LBB0_15
LBB0_14:
	movabsq	$768799146162, %rax             ## imm = 0xB3000000B2
	movq	%rax, (%r14)
	movl	$1196640642, 8(%r14)            ## imm = 0x47534982
	xorl	%eax, %eax
LBB0_15:
	movl	%eax, 12(%r14)
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_device_set_desc
	movl	$-1500, %eax                    ## imm = 0xFA24
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smist"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"acpi_perf"

	.comm	_CPUFREQ_FLAG_INFO_ONLY,4,2     ## @CPUFREQ_FLAG_INFO_ONLY
L_.str.2:                               ## @.str.2
	.asciz	"ichss"

	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.3:                               ## @.str.3
	.asciz	"sig %.8x smi_cmd %.4x command %.2x smi_data %.4x flags %.8x\n"

L_.str.4:                               ## @.str.4
	.asciz	"GSIC returned cmd 0x80, should be 0x82\n"

L_.str.5:                               ## @.str.5
	.asciz	"SpeedStep SMI"

	.no_dead_strip	_smist_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function smist_probe
lCPI0_0:
	.long	178                             ; 0xb2
	.long	179                             ; 0xb3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_smist_probe:                           ; @smist_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_resource_disabled
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_2:
	mov	x0, x19
	bl	_device_get_softc
	mov	x20, x0
	mov	x0, x19
	bl	_device_get_parent
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #-1
	bl	_device_find_child
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	bl	_device_is_attached
	cbz	x0, LBB0_6
; %bb.4:
	add	x1, sp, #40
	mov	x0, x21
	bl	_CPUFREQ_DRV_TYPE
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #40]
Lloh7:
	adrp	x9, _CPUFREQ_FLAG_INFO_ONLY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CPUFREQ_FLAG_INFO_ONLY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
LBB0_6:
	mov	x0, x19
	bl	_device_get_parent
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #-1
	bl	_device_find_child
	cbz	x0, LBB0_8
; %bb.7:
	bl	_device_is_attached
	cbnz	x0, LBB0_1
LBB0_8:
	sub	x0, x29, #36
	sub	x1, x29, #40
	sub	x2, x29, #44
	add	x3, sp, #48
	add	x4, sp, #44
	bl	_int15_gsic_call
Lloh12:
	adrp	x8, _bootverbose@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	ldp	w9, w8, [x29, #-40]
	ldur	w10, [x29, #-44]
	ldp	w12, w11, [sp, #44]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_10:
	ldur	w8, [x29, #-36]
	cmn	w8, #1
	b.eq	LBB0_14
; %bb.11:
	ldur	w8, [x29, #-40]
	str	w8, [x20]
	ldr	w8, [sp, #48]
	str	w8, [x20, #4]
	ldur	w8, [x29, #-44]
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.12:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	w8, #130
	stur	w8, [x29, #-44]
LBB0_13:
	ldur	w9, [x29, #-36]
	bfxil	w9, w8, #0, #8
	str	w9, [x20, #8]
	ldr	w8, [sp, #44]
	b	LBB0_15
LBB0_14:
	mov	w8, #0
Lloh19:
	adrp	x9, lCPI0_0@PAGE
Lloh20:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	mov	w9, #18818
	movk	w9, #18259, lsl #16
	str	w9, [x20, #8]
LBB0_15:
	str	w8, [x20, #12]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_device_set_desc
	mov	w0, #-1500
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smist"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"acpi_perf"

	.comm	_CPUFREQ_FLAG_INFO_ONLY,4,2     ; @CPUFREQ_FLAG_INFO_ONLY
l_.str.2:                               ; @.str.2
	.asciz	"ichss"

	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.3:                               ; @.str.3
	.asciz	"sig %.8x smi_cmd %.4x command %.2x smi_data %.4x flags %.8x\n"

l_.str.4:                               ; @.str.4
	.asciz	"GSIC returned cmd 0x80, should be 0x82\n"

l_.str.5:                               ; @.str.5
	.asciz	"SpeedStep SMI"

	.no_dead_strip	_smist_probe
.subsections_via_symbols
