	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k8temp_probe
_k8temp_probe:                          ## @k8temp_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	%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	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movq	_boot_cpu_data@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%rax), %eax
	cmpl	$4, %ebx
	jne	LBB0_3
## %bb.2:
	testl	%eax, %eax
	je	LBB0_13
LBB0_3:
	cmpl	$5, %ebx
	jne	LBB0_7
## %bb.4:
	cmpl	$1, %eax
	jle	LBB0_13
LBB0_7:
	cmpl	$64, %ebx
	jl	LBB0_9
## %bb.8:
	movl	$1, (%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
LBB0_9:
	movl	%ebx, %edi
	callq	_is_rev_g_desktop
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	$21000, 4(%r14)                 ## imm = 0x5208
LBB0_11:
	movq	_REG_TEMP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_byte
	movq	_SEL_PLACE@GOTPCREL(%rip), %rbx
	movq	_SEL_CORE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rbx), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_pci_write_config_byte
	movl	(%r15), %esi
	movq	%r12, %rdi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_byte
	movl	-44(%rbp), %eax
	movl	(%r13), %edx
	orl	(%rbx), %edx
	testl	%eax, %edx
	je	LBB0_16
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_14:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	orl	%eax, %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_pci_write_config_byte
	movl	(%r15), %esi
	leaq	8(%r14), %r13
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_pci_read_config_byte
	movl	8(%r14), %eax
	movq	_SEL_CORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, (%rbx)
	je	LBB0_20
## %bb.17:
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_pci_write_config_byte
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_dword
	movq	_SEL_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%edx, -44(%rbp)
	cmpb	$0, -46(%rbp)
	je	LBB0_19
## %bb.18:
	movl	(%r13), %eax
	jmp	LBB0_20
LBB0_19:
	movl	(%rbx), %eax
	notl	%eax
	andl	(%r13), %eax
	movl	%eax, (%r13)
LBB0_20:
	testl	%eax, %edx
	je	LBB0_23
## %bb.21:
	movl	(%rbx), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_pci_write_config_byte
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_dword
	cmpb	$0, -46(%rbp)
	jne	LBB0_23
## %bb.22:
	movq	_SEL_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r13)
LBB0_23:
	movq	%r14, %rdi
	addq	$12, %rdi
	callq	_mutex_init
	leaq	L_.str.2(%rip), %rsi
	movq	_k8temp_chip_info@GOTPCREL(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_devm_hwmon_device_register_with_info
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_boot_cpu_data,8,2              ## @boot_cpu_data
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Temperature readouts might be wrong - check erratum #141\n"

	.comm	_REG_TEMP,4,2                   ## @REG_TEMP
	.comm	_SEL_PLACE,4,2                  ## @SEL_PLACE
	.comm	_SEL_CORE,4,2                   ## @SEL_CORE
L_.str.1:                               ## @.str.1
	.asciz	"Configuration bit(s) stuck at 1!\n"

L_.str.2:                               ## @.str.2
	.asciz	"k8temp"

	.comm	_k8temp_chip_info,4,2           ## @k8temp_chip_info
	.no_dead_strip	_k8temp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function k8temp_probe
_k8temp_probe:                          ; @k8temp_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _boot_cpu_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _boot_cpu_data@GOTPAGEOFF]
	ldp	w21, w8, [x8]
	cmp	w21, #4
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_9
; %bb.2:
	cmp	w21, #5
	ccmp	w8, #1, #0, eq
	b.le	LBB0_9
; %bb.3:
	mov	x20, x0
	cmp	w21, #64
	b.lt	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_5:
	mov	x0, x21
	bl	_is_rev_g_desktop
	cbz	x0, LBB0_7
; %bb.6:
	mov	w8, #21000
	str	w8, [x20, #4]
LBB0_7:
Lloh7:
	adrp	x23, _REG_TEMP@GOTPAGE
Lloh8:
	ldr	x23, [x23, _REG_TEMP@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_byte
Lloh9:
	adrp	x24, _SEL_PLACE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SEL_PLACE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh11:
	adrp	x22, _SEL_CORE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _SEL_CORE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pci_write_config_byte
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	ldr	w10, [x22]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pci_write_config_byte
	ldr	w1, [x23]
	add	x21, x20, #8
	mov	x0, x19
	mov	x2, x21
	bl	_pci_read_config_byte
	ldr	w9, [x20, #8]
	ldr	w10, [x24]
	ldr	w8, [x22]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.14:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pci_write_config_byte
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w8, [x22]
	ldr	w9, [sp, #12]
	orr	w9, w9, w8
	str	w9, [sp, #12]
	ldrb	w9, [sp, #10]
	cbz	w9, LBB0_16
; %bb.15:
	ldr	w9, [x21]
	b	LBB0_17
LBB0_16:
	ldr	w9, [x24]
	ldr	w10, [x21]
	bic	w9, w10, w9
	str	w9, [x21]
LBB0_17:
	tst	w8, w9
	b.eq	LBB0_20
; %bb.18:
	ldr	w8, [x24]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pci_write_config_byte
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	ldrb	w8, [sp, #10]
	cbnz	w8, LBB0_20
; %bb.19:
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_20:
	add	x0, x20, #12
	bl	_mutex_init
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh21:
	adrp	x3, _k8temp_chip_info@GOTPAGE
Lloh22:
	ldr	x3, [x3, _k8temp_chip_info@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	mov	x4, #0
	bl	_devm_hwmon_device_register_with_info
	bl	_PTR_ERR_OR_ZERO
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_boot_cpu_data,8,2              ; @boot_cpu_data
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Temperature readouts might be wrong - check erratum #141\n"

	.comm	_REG_TEMP,4,2                   ; @REG_TEMP
	.comm	_SEL_PLACE,4,2                  ; @SEL_PLACE
	.comm	_SEL_CORE,4,2                   ; @SEL_CORE
l_.str.1:                               ; @.str.1
	.asciz	"Configuration bit(s) stuck at 1!\n"

l_.str.2:                               ; @.str.2
	.asciz	"k8temp"

	.comm	_k8temp_chip_info,4,2           ; @k8temp_chip_info
	.no_dead_strip	_k8temp_probe
.subsections_via_symbols
