	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_ads_create
_smu_ads_create:                        ## @smu_ads_create
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.2:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_22
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
LBB0_12:
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_14
LBB0_17:
	leaq	L_.str.13(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_22
## %bb.18:
	leaq	L_.str.14(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:
	movq	_smu_slotspow_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	leaq	L_.str.15(%rip), %rax
	movq	%rax, (%r12)
	movq	_slotspow@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_15
## %bb.20:
	leaq	L_.str.16(%rip), %rdi
	movq	_SMU_SDB_SLOTSPOW_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_5:
	movq	_smu_cputemp_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%r12)
	movq	_cpudiode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_15
## %bb.6:
	leaq	L_.str.5(%rip), %rdi
	movq	_SMU_SDB_CPUDIODE_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_9:
	movq	_smu_cpuamp_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	leaq	L_.str.8(%rip), %rax
	jmp	LBB0_10
LBB0_14:
	movq	_smu_cpuvolt_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	leaq	L_.str.12(%rip), %rax
LBB0_10:
	movq	%rax, (%r12)
	movq	_cpuvcp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
LBB0_15:
	leaq	L_.str.17(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_22
## %bb.16:
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%r12, %rdi
	callq	_wf_register_sensor
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_24
LBB0_11:
	leaq	L_.str.9(%rip), %rdi
	movq	_SMU_SDB_CPUVCP_ID@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %esi
	callq	_DBG
LBB0_22:
	movq	%r12, %rdi
	callq	_kfree
LBB0_23:
	xorl	%r12d, %r12d
LBB0_24:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device_type"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"CPU T-Diode"

	.comm	_smu_cputemp_ops,4,2            ## @smu_cputemp_ops
L_.str.4:                               ## @.str.4
	.asciz	"cpu-temp"

	.comm	_cpudiode,8,3                   ## @cpudiode
L_.str.5:                               ## @.str.5
	.asciz	"wf: cpudiode partition (%02x) not found\n"

	.comm	_SMU_SDB_CPUDIODE_ID,4,2        ## @SMU_SDB_CPUDIODE_ID
L_.str.6:                               ## @.str.6
	.asciz	"current-sensor"

L_.str.7:                               ## @.str.7
	.asciz	"CPU Current"

	.comm	_smu_cpuamp_ops,4,2             ## @smu_cpuamp_ops
L_.str.8:                               ## @.str.8
	.asciz	"cpu-current"

	.comm	_cpuvcp,8,3                     ## @cpuvcp
L_.str.9:                               ## @.str.9
	.asciz	"wf: cpuvcp partition (%02x) not found\n"

	.comm	_SMU_SDB_CPUVCP_ID,4,2          ## @SMU_SDB_CPUVCP_ID
L_.str.10:                              ## @.str.10
	.asciz	"voltage-sensor"

L_.str.11:                              ## @.str.11
	.asciz	"CPU Voltage"

	.comm	_smu_cpuvolt_ops,4,2            ## @smu_cpuvolt_ops
L_.str.12:                              ## @.str.12
	.asciz	"cpu-voltage"

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

L_.str.14:                              ## @.str.14
	.asciz	"Slots Power"

	.comm	_smu_slotspow_ops,4,2           ## @smu_slotspow_ops
L_.str.15:                              ## @.str.15
	.asciz	"slots-power"

	.comm	_slotspow,8,3                   ## @slotspow
L_.str.16:                              ## @.str.16
	.asciz	"wf: slotspow partition (%02x) not found\n"

	.comm	_SMU_SDB_SLOTSPOW_ID,4,2        ## @SMU_SDB_SLOTSPOW_ID
L_.str.17:                              ## @.str.17
	.asciz	"reg"

	.no_dead_strip	_smu_ads_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_ads_create
_smu_ads_create:                        ; @smu_ads_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_23
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	_of_get_property
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	_of_get_property
	cbz	x22, LBB0_22
; %bb.2:
	mov	x21, x0
	cbz	x0, LBB0_22
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbnz	w0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_13
LBB0_5:
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbnz	w0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x1, l_.str.7@PAGE
Lloh14:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_15
LBB0_7:
Lloh15:
	adrp	x1, l_.str.10@PAGE
Lloh16:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbnz	w0, LBB0_9
; %bb.8:
Lloh17:
	adrp	x1, l_.str.11@PAGE
Lloh18:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_16
LBB0_9:
Lloh19:
	adrp	x1, l_.str.13@PAGE
Lloh20:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbnz	w0, LBB0_22
; %bb.10:
Lloh21:
	adrp	x1, l_.str.14@PAGE
Lloh22:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbnz	w0, LBB0_22
; %bb.11:
Lloh23:
	adrp	x8, _smu_slotspow_ops@GOTPAGE
Lloh24:
	ldr	x8, [x8, _smu_slotspow_ops@GOTPAGEOFF]
Lloh25:
	adrp	x9, l_.str.15@PAGE
Lloh26:
	add	x9, x9, l_.str.15@PAGEOFF
	stp	x9, x8, [x19]
Lloh27:
	adrp	x8, _slotspow@GOTPAGE
Lloh28:
	ldr	x8, [x8, _slotspow@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbnz	x8, LBB0_18
; %bb.12:
Lloh30:
	adrp	x0, l_.str.16@PAGE
Lloh31:
	add	x0, x0, l_.str.16@PAGEOFF
Lloh32:
	adrp	x8, _SMU_SDB_SLOTSPOW_ID@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SMU_SDB_SLOTSPOW_ID@GOTPAGEOFF]
	b	LBB0_21
LBB0_13:
Lloh34:
	adrp	x8, _smu_cputemp_ops@GOTPAGE
Lloh35:
	ldr	x8, [x8, _smu_cputemp_ops@GOTPAGEOFF]
Lloh36:
	adrp	x9, l_.str.4@PAGE
Lloh37:
	add	x9, x9, l_.str.4@PAGEOFF
	stp	x9, x8, [x19]
Lloh38:
	adrp	x8, _cpudiode@GOTPAGE
Lloh39:
	ldr	x8, [x8, _cpudiode@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	cbnz	x8, LBB0_18
; %bb.14:
Lloh41:
	adrp	x0, l_.str.5@PAGE
Lloh42:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh43:
	adrp	x8, _SMU_SDB_CPUDIODE_ID@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SMU_SDB_CPUDIODE_ID@GOTPAGEOFF]
	b	LBB0_21
LBB0_15:
Lloh45:
	adrp	x8, _smu_cpuamp_ops@GOTPAGE
Lloh46:
	ldr	x8, [x8, _smu_cpuamp_ops@GOTPAGEOFF]
Lloh47:
	adrp	x9, l_.str.8@PAGE
Lloh48:
	add	x9, x9, l_.str.8@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh49:
	adrp	x8, _smu_cpuvolt_ops@GOTPAGE
Lloh50:
	ldr	x8, [x8, _smu_cpuvolt_ops@GOTPAGEOFF]
Lloh51:
	adrp	x9, l_.str.12@PAGE
Lloh52:
	add	x9, x9, l_.str.12@PAGEOFF
LBB0_17:
	stp	x9, x8, [x19]
Lloh53:
	adrp	x8, _cpuvcp@GOTPAGE
Lloh54:
	ldr	x8, [x8, _cpuvcp@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
LBB0_18:
Lloh56:
	adrp	x1, l_.str.17@PAGE
Lloh57:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_22
; %bb.19:
	ldr	w8, [x0]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_wf_register_sensor
	cbnz	x0, LBB0_22
	b	LBB0_23
LBB0_20:
Lloh58:
	adrp	x0, l_.str.9@PAGE
Lloh59:
	add	x0, x0, l_.str.9@PAGEOFF
Lloh60:
	adrp	x8, _SMU_SDB_CPUVCP_ID@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SMU_SDB_CPUVCP_ID@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	bl	_DBG
LBB0_22:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device_type"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"CPU T-Diode"

	.comm	_smu_cputemp_ops,4,2            ; @smu_cputemp_ops
l_.str.4:                               ; @.str.4
	.asciz	"cpu-temp"

	.comm	_cpudiode,8,3                   ; @cpudiode
l_.str.5:                               ; @.str.5
	.asciz	"wf: cpudiode partition (%02x) not found\n"

	.comm	_SMU_SDB_CPUDIODE_ID,4,2        ; @SMU_SDB_CPUDIODE_ID
l_.str.6:                               ; @.str.6
	.asciz	"current-sensor"

l_.str.7:                               ; @.str.7
	.asciz	"CPU Current"

	.comm	_smu_cpuamp_ops,4,2             ; @smu_cpuamp_ops
l_.str.8:                               ; @.str.8
	.asciz	"cpu-current"

	.comm	_cpuvcp,8,3                     ; @cpuvcp
l_.str.9:                               ; @.str.9
	.asciz	"wf: cpuvcp partition (%02x) not found\n"

	.comm	_SMU_SDB_CPUVCP_ID,4,2          ; @SMU_SDB_CPUVCP_ID
l_.str.10:                              ; @.str.10
	.asciz	"voltage-sensor"

l_.str.11:                              ; @.str.11
	.asciz	"CPU Voltage"

	.comm	_smu_cpuvolt_ops,4,2            ; @smu_cpuvolt_ops
l_.str.12:                              ; @.str.12
	.asciz	"cpu-voltage"

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

l_.str.14:                              ; @.str.14
	.asciz	"Slots Power"

	.comm	_smu_slotspow_ops,4,2           ; @smu_slotspow_ops
l_.str.15:                              ; @.str.15
	.asciz	"slots-power"

	.comm	_slotspow,8,3                   ; @slotspow
l_.str.16:                              ; @.str.16
	.asciz	"wf: slotspow partition (%02x) not found\n"

	.comm	_SMU_SDB_SLOTSPOW_ID,4,2        ; @SMU_SDB_SLOTSPOW_ID
l_.str.17:                              ; @.str.17
	.asciz	"reg"

	.no_dead_strip	_smu_ads_create
.subsections_via_symbols
