	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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_22
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_node_is_type
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_node_is_type
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
LBB0_11:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_node_is_type
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
LBB0_16:
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_node_is_type
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_21
## %bb.18:
	movq	_smu_slotspow_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str.14(%rip), %rax
	movq	%rax, (%rbx)
	movq	_slotspow@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.19:
	leaq	L_.str.15(%rip), %rdi
	movq	_SMU_SDB_SLOTSPOW_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_4:
	movq	_smu_cputemp_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%rbx)
	movq	_cpudiode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	movq	_SMU_SDB_CPUDIODE_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_8:
	movq	_smu_cpuamp_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str.7(%rip), %rax
	jmp	LBB0_9
LBB0_13:
	movq	_smu_cpuvolt_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str.11(%rip), %rax
LBB0_9:
	movq	%rax, (%rbx)
	movq	_cpuvcp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
LBB0_14:
	leaq	L_.str.16(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_wf_register_sensor
	testq	%rax, %rax
	jne	LBB0_21
	jmp	LBB0_23
LBB0_10:
	leaq	L_.str.8(%rip), %rdi
	movq	_SMU_SDB_CPUVCP_ID@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %esi
	callq	_DBG
LBB0_21:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	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	"location"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	.comm	_SMU_SDB_SLOTSPOW_ID,4,2        ## @SMU_SDB_SLOTSPOW_ID
L_.str.16:                              ## @.str.16
	.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_22
; %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
	cbz	x0, LBB0_21
; %bb.2:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_of_node_is_type
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_12
LBB0_4:
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_of_node_is_type
	cbz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_14
LBB0_6:
Lloh13:
	adrp	x1, l_.str.9@PAGE
Lloh14:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_of_node_is_type
	cbz	x0, LBB0_8
; %bb.7:
Lloh15:
	adrp	x1, l_.str.10@PAGE
Lloh16:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_15
LBB0_8:
Lloh17:
	adrp	x1, l_.str.12@PAGE
Lloh18:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_of_node_is_type
	cbz	x0, LBB0_21
; %bb.9:
Lloh19:
	adrp	x1, l_.str.13@PAGE
Lloh20:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbnz	w0, LBB0_21
; %bb.10:
Lloh21:
	adrp	x8, _smu_slotspow_ops@GOTPAGE
Lloh22:
	ldr	x8, [x8, _smu_slotspow_ops@GOTPAGEOFF]
Lloh23:
	adrp	x9, l_.str.14@PAGE
Lloh24:
	add	x9, x9, l_.str.14@PAGEOFF
	stp	x9, x8, [x19]
Lloh25:
	adrp	x8, _slotspow@GOTPAGE
Lloh26:
	ldr	x8, [x8, _slotspow@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbnz	x8, LBB0_17
; %bb.11:
Lloh28:
	adrp	x0, l_.str.15@PAGE
Lloh29:
	add	x0, x0, l_.str.15@PAGEOFF
Lloh30:
	adrp	x8, _SMU_SDB_SLOTSPOW_ID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SMU_SDB_SLOTSPOW_ID@GOTPAGEOFF]
	b	LBB0_20
LBB0_12:
Lloh32:
	adrp	x8, _smu_cputemp_ops@GOTPAGE
Lloh33:
	ldr	x8, [x8, _smu_cputemp_ops@GOTPAGEOFF]
Lloh34:
	adrp	x9, l_.str.3@PAGE
Lloh35:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x9, x8, [x19]
Lloh36:
	adrp	x8, _cpudiode@GOTPAGE
Lloh37:
	ldr	x8, [x8, _cpudiode@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cbnz	x8, LBB0_17
; %bb.13:
Lloh39:
	adrp	x0, l_.str.4@PAGE
Lloh40:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh41:
	adrp	x8, _SMU_SDB_CPUDIODE_ID@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SMU_SDB_CPUDIODE_ID@GOTPAGEOFF]
	b	LBB0_20
LBB0_14:
Lloh43:
	adrp	x8, _smu_cpuamp_ops@GOTPAGE
Lloh44:
	ldr	x8, [x8, _smu_cpuamp_ops@GOTPAGEOFF]
Lloh45:
	adrp	x9, l_.str.7@PAGE
Lloh46:
	add	x9, x9, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh47:
	adrp	x8, _smu_cpuvolt_ops@GOTPAGE
Lloh48:
	ldr	x8, [x8, _smu_cpuvolt_ops@GOTPAGEOFF]
Lloh49:
	adrp	x9, l_.str.11@PAGE
Lloh50:
	add	x9, x9, l_.str.11@PAGEOFF
LBB0_16:
	stp	x9, x8, [x19]
Lloh51:
	adrp	x8, _cpuvcp@GOTPAGE
Lloh52:
	ldr	x8, [x8, _cpuvcp@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
LBB0_17:
Lloh54:
	adrp	x1, l_.str.16@PAGE
Lloh55:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_21
; %bb.18:
	ldr	w8, [x0]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_wf_register_sensor
	cbnz	x0, LBB0_21
	b	LBB0_22
LBB0_19:
Lloh56:
	adrp	x0, l_.str.8@PAGE
Lloh57:
	add	x0, x0, l_.str.8@PAGEOFF
Lloh58:
	adrp	x8, _SMU_SDB_CPUVCP_ID@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SMU_SDB_CPUVCP_ID@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
	bl	_DBG
LBB0_21:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_22:
	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	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.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 AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"location"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	.no_dead_strip	_smu_ads_create
.subsections_via_symbols
