	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_thermal_register        ## -- Begin function ath10k_thermal_register
	.p2align	4, 0x90
_ath10k_thermal_register:               ## @ath10k_thermal_register
	.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, %rbx
	movq	_WMI_SERVICE_THERM_THROT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_test_bit
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	_ath10k_thermal_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_thermal_cooling_device_register
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_3:
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rsi
	callq	_sysfs_create_link
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ath10k_err
	movl	%r12d, %r14d
LBB0_9:
	movq	%r15, %rdi
	callq	_thermal_cooling_device_unregister
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, 32(%rbx)
	movq	_ATH10K_QUIET_PERIOD_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.6:
	movq	_CONFIG_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_REACHABLE
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	(%rbx), %rdi
	movq	_ath10k_hwmon_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r12, %rdi
	callq	_PTR_ERR
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_sysfs_remove_link
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_SERVICE_THERM_THROT,4,2    ## @WMI_SERVICE_THERM_THROT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ath10k_thermal"

	.comm	_ath10k_thermal_ops,4,2         ## @ath10k_thermal_ops
L_.str.1:                               ## @.str.1
	.asciz	"failed to setup thermal device result: %ld\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"cooling_device"

L_.str.3:                               ## @.str.3
	.asciz	"failed to create cooling device symlink\n"

	.comm	_ATH10K_QUIET_PERIOD_DEFAULT,4,2 ## @ATH10K_QUIET_PERIOD_DEFAULT
	.comm	_CONFIG_HWMON,4,2               ## @CONFIG_HWMON
L_.str.4:                               ## @.str.4
	.asciz	"ath10k_hwmon"

	.comm	_ath10k_hwmon_groups,4,2        ## @ath10k_hwmon_groups
L_.str.5:                               ## @.str.5
	.asciz	"failed to register hwmon device: %ld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_thermal_register        ; -- Begin function ath10k_thermal_register
	.p2align	2
_ath10k_thermal_register:               ; @ath10k_thermal_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, _WMI_SERVICE_THERM_THROT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_SERVICE_THERM_THROT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_test_bit
	cbz	w0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x2, _ath10k_thermal_ops@GOTPAGE
Lloh6:
	ldr	x2, [x2, _ath10k_thermal_ops@GOTPAGEOFF]
	mov	x1, x19
	bl	_thermal_cooling_device_register
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_3:
	ldr	x0, [x19]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_sysfs_create_link
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
LBB0_5:
	mov	x0, x20
	bl	_thermal_cooling_device_unregister
	b	LBB0_11
LBB0_6:
	str	x20, [x19, #32]
Lloh16:
	adrp	x8, _ATH10K_QUIET_PERIOD_DEFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATH10K_QUIET_PERIOD_DEFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.7:
Lloh19:
	adrp	x8, _CONFIG_HWMON@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CONFIG_HWMON@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_IS_REACHABLE
	cbz	w0, LBB0_10
; %bb.8:
	ldr	x0, [x19]
Lloh22:
	adrp	x8, _ath10k_hwmon_groups@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ath10k_hwmon_groups@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_devm_hwmon_device_register_with_groups
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x19]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sysfs_remove_link
	b	LBB0_5
LBB0_10:
	mov	w21, #0
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_SERVICE_THERM_THROT,4,2    ; @WMI_SERVICE_THERM_THROT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ath10k_thermal"

	.comm	_ath10k_thermal_ops,4,2         ; @ath10k_thermal_ops
l_.str.1:                               ; @.str.1
	.asciz	"failed to setup thermal device result: %ld\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"cooling_device"

l_.str.3:                               ; @.str.3
	.asciz	"failed to create cooling device symlink\n"

	.comm	_ATH10K_QUIET_PERIOD_DEFAULT,4,2 ; @ATH10K_QUIET_PERIOD_DEFAULT
	.comm	_CONFIG_HWMON,4,2               ; @CONFIG_HWMON
l_.str.4:                               ; @.str.4
	.asciz	"ath10k_hwmon"

	.comm	_ath10k_hwmon_groups,4,2        ; @ath10k_hwmon_groups
l_.str.5:                               ; @.str.5
	.asciz	"failed to register hwmon device: %ld\n"

.subsections_via_symbols
