	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smusat_attach
_smusat_attach:                         ## @smusat_attach
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_device_get_softc
	movq	%rax, %r15
	movl	$0, (%rax)
	movq	$0, 16(%rax)
	movl	%r13d, %edi
	callq	_ofw_bus_get_node
	movl	%eax, %edi
	callq	_OF_child
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	(%r15)
	movq	%rax, %rdi
	callq	_OF_peer
	testq	%rax, %rax
	jne	LBB0_1
LBB0_3:
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	imull	$56, %eax, %edi
	movq	_M_SMUSAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, 8(%r15)
	movl	$0, (%r15)
	movl	%r13d, %edi
	callq	_device_get_sysctl_ctx
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	callq	_device_get_sysctl_tree
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	callq	_ofw_bus_get_node
	movl	%eax, %edi
	callq	_OF_child
	testq	%rax, %rax
	je	LBB0_23
## %bb.6:
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %r14
	movl	%r13d, -188(%rbp)               ## 4-byte Spill
	movq	%r15, -184(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$56, %rbx
	movq	-184(%rbp), %r15                ## 8-byte Reload
	incl	(%r15)
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.1(%rip), %r14
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_OF_peer
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_23
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	%r13d, 48(%rbx)
	movb	$0, (%rbx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_OF_getprop
	movb	(%rbx), %al
	cmpb	$48, %al
	jl	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addb	$-48, %al
	movb	%al, (%rbx)
	leaq	16(%rbx), %rdx
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rdx, -216(%rbp)                ## 8-byte Spill
	movl	$4, %ecx
	callq	_OF_getprop
	movq	24(%rbx), %rdx
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$8, %ecx
	callq	_OF_getprop
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-80(%rbp), %r15
	movq	%r15, %rdx
	movl	$32, %ecx
	callq	_OF_getprop
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	movq	_SMU_CURRENT_SENSOR@GOTPCREL(%rip), %rcx
	leaq	L_.str.6(%rip), %r14
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	movq	_SMU_TEMP_SENSOR@GOTPCREL(%rip), %rcx
	leaq	L_.str.8(%rip), %r14
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	movq	_SMU_VOLTAGE_SENSOR@GOTPCREL(%rip), %rcx
	leaq	L_.str.10(%rip), %r14
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcmp
	movq	_SMU_POWER_SENSOR@GOTPCREL(%rip), %rcx
	leaq	L_.str.12(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_21
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rcx), %rax
	movq	%rax, 8(%rbx)
	movq	24(%rbx), %rdi
	callq	_strlen
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-184(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%r13
	movq	24(%rbx), %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %r13
	jge	LBB0_18
LBB0_15:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rbx), %rax
	movsbl	(%rax,%r13), %edi
	callq	_tolower
	movb	%al, -128(%rbp,%r13)
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movb	$95, -128(%rbp,%r13)
	jmp	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-184(%rbp), %r15                ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %eax
	movb	$0, -128(%rbp,%rax)
	movq	24(%rbx), %rdx
	leaq	-176(%rbp), %rdi
	leaq	L_.str.13(%rip), %rsi
	movq	%r14, %rcx
	callq	_sprintf
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	callq	_SYSCTL_CHILDREN
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_CTLTYPE_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_CTLFLAG_MPSAFE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r15), %r10d
	movq	_smusat_sensor_sysctl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	8(%rbx), %rcx
	movq	_SMU_TEMP_SENSOR@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	leaq	L_.str.15(%rip), %r14
	leaq	L_.str.14(%rip), %rcx
	cmoveq	%rcx, %r14
	movq	-208(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %esi
	leaq	-128(%rbp), %rcx
	movl	-188(%rbp), %r9d                ## 4-byte Reload
	movl	%r9d, %r13d
	leaq	-176(%rbp), %rax
	pushq	%rax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movabsq	$15595026255007, %rax           ## imm = 0xE2F00000C9F
	movq	%rax, 32(%rbx)
	movq	_smusat_sensor_read@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	-216(%rbp), %rdi                ## 8-byte Reload
	callq	_pmac_thermal_sensor_register
	jmp	LBB0_20
LBB0_23:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	callq	_device_printf
	movl	$-1, %eax
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_26
## %bb.25:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: No sensors detected!\n"

	.comm	_M_SMUSAT,4,2                   ## @M_SMUSAT
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
L_.str.1:                               ## @.str.1
	.asciz	"reg"

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

L_.str.3:                               ## @.str.3
	.asciz	"location"

L_.str.4:                               ## @.str.4
	.asciz	"device_type"

L_.str.5:                               ## @.str.5
	.asciz	"current-sensor"

	.comm	_SMU_CURRENT_SENSOR,8,3         ## @SMU_CURRENT_SENSOR
L_.str.6:                               ## @.str.6
	.asciz	"mA"

L_.str.7:                               ## @.str.7
	.asciz	"temp-sensor"

	.comm	_SMU_TEMP_SENSOR,8,3            ## @SMU_TEMP_SENSOR
L_.str.8:                               ## @.str.8
	.asciz	"C"

L_.str.9:                               ## @.str.9
	.asciz	"voltage-sensor"

	.comm	_SMU_VOLTAGE_SENSOR,8,3         ## @SMU_VOLTAGE_SENSOR
L_.str.10:                              ## @.str.10
	.asciz	"mV"

L_.str.11:                              ## @.str.11
	.asciz	"power-sensor"

	.comm	_SMU_POWER_SENSOR,8,3           ## @SMU_POWER_SENSOR
L_.str.12:                              ## @.str.12
	.asciz	"mW"

L_.str.13:                              ## @.str.13
	.asciz	"%s (%s)"

	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
	.comm	_CTLTYPE_INT,4,2                ## @CTLTYPE_INT
	.comm	_CTLFLAG_RD,4,2                 ## @CTLFLAG_RD
	.comm	_CTLFLAG_MPSAFE,4,2             ## @CTLFLAG_MPSAFE
	.comm	_smusat_sensor_sysctl,4,2       ## @smusat_sensor_sysctl
L_.str.14:                              ## @.str.14
	.asciz	"IK"

L_.str.15:                              ## @.str.15
	.asciz	"I"

	.comm	_smusat_sensor_read,8,3         ## @smusat_sensor_read
	.no_dead_strip	_smusat_attach
.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 smusat_attach
lCPI0_0:
	.long	3231                            ; 0xc9f
	.long	3631                            ; 0xe2f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_smusat_attach:                         ; @smusat_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	d9, d8, [sp, #160]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
	bl	_device_get_softc
	mov	x20, x0
	str	wzr, [x0]
	str	xzr, [x0, #16]
	mov	x0, x19
	bl	_ofw_bus_get_node
	bl	_OF_child
	cbz	x0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	bl	_OF_peer
	cbnz	x0, LBB0_1
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_24
; %bb.3:
	mov	w9, #56
	mul	w0, w8, w9
Lloh3:
	adrp	x8, _M_SMUSAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_SMUSAT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	mov	x21, x0
	str	x0, [x20, #8]
	str	wzr, [x20]
	mov	x0, x19
	bl	_device_get_sysctl_ctx
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_device_get_sysctl_tree
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_ofw_bus_get_node
	bl	_OF_child
	cbz	x0, LBB0_25
; %bb.4:
	mov	x24, x0
Lloh12:
	adrp	x25, l_.str.1@PAGE
Lloh13:
	add	x25, x25, l_.str.1@PAGEOFF
	add	x26, sp, #72
	mov	w22, #95
Lloh14:
	adrp	x23, _SMU_TEMP_SENSOR@GOTPAGE
Lloh15:
	ldr	x23, [x23, _SMU_TEMP_SENSOR@GOTPAGEOFF]
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #56
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh18:
	adrp	x25, l_.str.1@PAGE
Lloh19:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_OF_peer
	mov	x24, x0
	cbz	x0, LBB0_25
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	str	w19, [x21, #48]
	strb	wzr, [x21]
	mov	x0, x24
	mov	x1, x25
	mov	x2, x21
	mov	w3, #1
	bl	_OF_getprop
	ldrsb	w8, [x21]
	subs	w8, w8, #48
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w8, [x21]
	add	x27, x21, #16
	mov	x0, x24
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x27
	mov	w3, #4
	bl	_OF_getprop
	ldr	x2, [x21, #24]
	mov	x0, x24
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w3, #8
	bl	_OF_getprop
	add	x2, sp, #112
	mov	x0, x24
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w3, #32
	bl	_OF_getprop
	add	x0, sp, #112
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #112
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #112
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #112
Lloh32:
	adrp	x1, l_.str.11@PAGE
Lloh33:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh34:
	adrp	x8, _SMU_POWER_SENSOR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SMU_POWER_SENSOR@GOTPAGEOFF]
Lloh36:
	adrp	x28, l_.str.12@PAGE
Lloh37:
	add	x28, x28, l_.str.12@PAGEOFF
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh38:
	adrp	x8, _SMU_CURRENT_SENSOR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SMU_CURRENT_SENSOR@GOTPAGEOFF]
Lloh40:
	adrp	x28, l_.str.6@PAGE
Lloh41:
	add	x28, x28, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x23
Lloh42:
	adrp	x28, l_.str.8@PAGE
Lloh43:
	add	x28, x28, l_.str.8@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh44:
	adrp	x8, _SMU_VOLTAGE_SENSOR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SMU_VOLTAGE_SENSOR@GOTPAGEOFF]
Lloh46:
	adrp	x28, l_.str.10@PAGE
Lloh47:
	add	x28, x28, l_.str.10@PAGEOFF
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x8]
	str	x8, [x21, #8]
	ldr	x0, [x21, #24]
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x25, x25, #1
	ldr	x0, [x21, #24]
	bl	_strlen
	cmp	x25, w0, sxtw
	b.ge	LBB0_22
LBB0_19:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #24]
	ldrsb	w0, [x8, x25]
	bl	_tolower
	strb	w0, [x26, x25]
	bl	_isspace
	cbz	x0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	strb	w22, [x26, x25]
	b	LBB0_18
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, #0
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	wzr, [x26, w25, uxtw]
	ldr	x2, [x21, #24]
	add	x0, sp, #32
Lloh48:
	adrp	x1, l_.str.13@PAGE
Lloh49:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x3, x28
	bl	_sprintf
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
Lloh50:
	adrp	x8, _OID_AUTO@GOTPAGE
Lloh51:
	ldr	x8, [x8, _OID_AUTO@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
Lloh53:
	adrp	x8, _CTLTYPE_INT@GOTPAGE
Lloh54:
	ldr	x8, [x8, _CTLTYPE_INT@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
Lloh56:
	adrp	x9, _CTLFLAG_RD@GOTPAGE
Lloh57:
	ldr	x9, [x9, _CTLFLAG_RD@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh59:
	adrp	x9, _CTLFLAG_MPSAFE@GOTPAGE
Lloh60:
	ldr	x9, [x9, _CTLFLAG_MPSAFE@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w4, w8, w9
	ldr	w6, [x20]
Lloh62:
	adrp	x8, _smusat_sensor_sysctl@GOTPAGE
Lloh63:
	ldr	x8, [x8, _smusat_sensor_sysctl@GOTPAGEOFF]
Lloh64:
	ldr	w7, [x8]
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	cmp	x8, x9
Lloh65:
	adrp	x8, l_.str.15@PAGE
Lloh66:
	add	x8, x8, l_.str.15@PAGEOFF
Lloh67:
	adrp	x9, l_.str.14@PAGE
Lloh68:
	add	x9, x9, l_.str.14@PAGEOFF
	csel	x8, x9, x8, eq
	add	x9, sp, #32
	stp	x8, x9, [sp]
	add	x3, sp, #72
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x5, x19
	bl	_SYSCTL_ADD_PROC
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	str	d8, [x21, #32]
Lloh69:
	adrp	x8, _smusat_sensor_read@GOTPAGE
Lloh70:
	ldr	x8, [x8, _smusat_sensor_read@GOTPAGEOFF]
Lloh71:
	ldr	x8, [x8]
	str	x8, [x21, #40]
	mov	x0, x27
	bl	_pmac_thermal_sensor_register
	b	LBB0_5
LBB0_24:
Lloh72:
	adrp	x1, l_.str@PAGE
Lloh73:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	w0, #-1
LBB0_25:
	ldur	x8, [x29, #-112]
Lloh74:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh75:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #160]              ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: No sensors detected!\n"

	.comm	_M_SMUSAT,4,2                   ; @M_SMUSAT
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
l_.str.1:                               ; @.str.1
	.asciz	"reg"

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

l_.str.3:                               ; @.str.3
	.asciz	"location"

l_.str.4:                               ; @.str.4
	.asciz	"device_type"

l_.str.5:                               ; @.str.5
	.asciz	"current-sensor"

	.comm	_SMU_CURRENT_SENSOR,8,3         ; @SMU_CURRENT_SENSOR
l_.str.6:                               ; @.str.6
	.asciz	"mA"

l_.str.7:                               ; @.str.7
	.asciz	"temp-sensor"

	.comm	_SMU_TEMP_SENSOR,8,3            ; @SMU_TEMP_SENSOR
l_.str.8:                               ; @.str.8
	.asciz	"C"

l_.str.9:                               ; @.str.9
	.asciz	"voltage-sensor"

	.comm	_SMU_VOLTAGE_SENSOR,8,3         ; @SMU_VOLTAGE_SENSOR
l_.str.10:                              ; @.str.10
	.asciz	"mV"

l_.str.11:                              ; @.str.11
	.asciz	"power-sensor"

	.comm	_SMU_POWER_SENSOR,8,3           ; @SMU_POWER_SENSOR
l_.str.12:                              ; @.str.12
	.asciz	"mW"

l_.str.13:                              ; @.str.13
	.asciz	"%s (%s)"

	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
	.comm	_CTLTYPE_INT,4,2                ; @CTLTYPE_INT
	.comm	_CTLFLAG_RD,4,2                 ; @CTLFLAG_RD
	.comm	_CTLFLAG_MPSAFE,4,2             ; @CTLFLAG_MPSAFE
	.comm	_smusat_sensor_sysctl,4,2       ; @smusat_sensor_sysctl
l_.str.14:                              ; @.str.14
	.asciz	"IK"

l_.str.15:                              ; @.str.15
	.asciz	"I"

	.comm	_smusat_sensor_read,8,3         ; @smusat_sensor_read
	.no_dead_strip	_smusat_attach
.subsections_via_symbols
