	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_thermal_show_temp
_ath10k_thermal_show_temp:              ## @ath10k_thermal_show_temp
	.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	%rdx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r12
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_ATH10K_STATE_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	leaq	20(%r12), %r13
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	%r12, %rdi
	callq	_ath10k_wmi_pdev_get_temperature
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_6
LBB0_3:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ATH10K_FLAG_CRASH_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_ATH10K_THERMAL_SYNC_TIMEOUT_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r12, %rbx
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	imull	$1000, 16(%r12), %r12d          ## imm = 0x3E8
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_snprintf
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_STATE_ON,8,3            ## @ATH10K_STATE_ON
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read temperature %d\n"

	.comm	_ATH10K_FLAG_CRASH_FLUSH,4,2    ## @ATH10K_FLAG_CRASH_FLUSH
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.comm	_ATH10K_THERMAL_SYNC_TIMEOUT_HZ,4,2 ## @ATH10K_THERMAL_SYNC_TIMEOUT_HZ
L_.str.1:                               ## @.str.1
	.asciz	"failed to synchronize thermal read\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"%d\n"

	.no_dead_strip	_ath10k_thermal_show_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_thermal_show_temp
_ath10k_thermal_show_temp:              ; @ath10k_thermal_show_temp
	.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	x20, x2
	bl	_dev_get_drvdata
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _ATH10K_STATE_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH10K_STATE_ON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	add	x23, x21, #20
	mov	x0, x23
	bl	_reinit_completion
	mov	x0, x21
	bl	_ath10k_wmi_pdev_get_temperature
	cbz	w0, LBB0_6
; %bb.2:
	mov	x22, x0
	str	x22, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ath10k_warn
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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_6:
Lloh7:
	adrp	x8, _ATH10K_FLAG_CRASH_FLUSH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATH10K_FLAG_CRASH_FLUSH@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x21, #24
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _ESHUTDOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ESHUTDOWN@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
Lloh12:
	adrp	x8, _ATH10K_THERMAL_SYNC_TIMEOUT_HZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATH10K_THERMAL_SYNC_TIMEOUT_HZ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_10
; %bb.9:
	add	x22, x21, #12
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	w21, [x21, #16]
	mov	x0, x22
	bl	_spin_unlock_bh
Lloh15:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w8, #1000
	mul	w3, w21, w8
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_snprintf
	mov	x22, x0
	b	LBB0_5
LBB0_10:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ath10k_warn
Lloh22:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_STATE_ON,8,3            ; @ATH10K_STATE_ON
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read temperature %d\n"

	.comm	_ATH10K_FLAG_CRASH_FLUSH,4,2    ; @ATH10K_FLAG_CRASH_FLUSH
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.comm	_ATH10K_THERMAL_SYNC_TIMEOUT_HZ,4,2 ; @ATH10K_THERMAL_SYNC_TIMEOUT_HZ
l_.str.1:                               ; @.str.1
	.asciz	"failed to synchronize thermal read\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"%d\n"

	.no_dead_strip	_ath10k_thermal_show_temp
.subsections_via_symbols
