	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coretemp_cpu_offline
_coretemp_cpu_offline:                  ## @coretemp_cpu_offline
	.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
	movl	%edi, %ebx
	callq	_coretemp_get_pdev
	movq	%rax, %r14
	movq	_cpuhp_tasks_frozen@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.1:
	testq	%r14, %r14
	je	LBB0_13
## %bb.2:
	movl	%ebx, %edi
	callq	_TO_ATTR_NO
	movl	%eax, %r12d
	movq	_MAX_CORE_DATA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_13
## %bb.3:
	movq	%r14, %rdi
	callq	_platform_get_drvdata
	movq	%rax, %r15
	movq	8(%rax), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_cpumask_clear_cpu
	movl	%ebx, %edi
	callq	_topology_sibling_cpumask
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_cpumask_any_and
	movl	%eax, %r13d
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.7:
	leaq	4(%rax), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_4:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_coretemp_remove_core
LBB0_8:
	movq	%r15, %rdi
	callq	_cpumask_empty
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_zone_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%ebx, %edi
	callq	_topology_logical_die_id
	movq	$0, (%r15,%rax,8)
	movq	%r14, %rdi
	callq	_platform_device_unregister
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	8(%r15), %rax
	movq	_PKG_SYSFS_ATTR_NO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r12
	testq	%r12, %r12
	je	LBB0_13
## %bb.11:
	cmpl	%ebx, (%r12)
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_cpumask_first
	movl	%eax, %r14d
	leaq	4(%r12), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	%r14d, (%r12)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_cpuhp_tasks_frozen,8,3         ## @cpuhp_tasks_frozen
	.comm	_MAX_CORE_DATA,4,2              ## @MAX_CORE_DATA
	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.comm	_zone_devices,8,3               ## @zone_devices
	.comm	_PKG_SYSFS_ATTR_NO,8,3          ## @PKG_SYSFS_ATTR_NO
	.no_dead_strip	_coretemp_cpu_offline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coretemp_cpu_offline
_coretemp_cpu_offline:                  ; @coretemp_cpu_offline
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_coretemp_get_pdev
Lloh0:
	adrp	x8, _cpuhp_tasks_frozen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpuhp_tasks_frozen@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_TO_ATTR_NO
Lloh3:
	adrp	x8, _MAX_CORE_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CORE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_9
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	bl	_platform_get_drvdata
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x24, [x8, w22, sxtw #3]
	mov	x0, x19
	mov	x1, x21
	bl	_cpumask_clear_cpu
	mov	x0, x19
	bl	_topology_sibling_cpumask
	mov	x1, x0
	mov	x0, x21
	bl	_cpumask_any_and
Lloh6:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.3:
	cbz	x24, LBB0_7
; %bb.4:
	ldr	w8, [x24]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.5:
	mov	x23, x0
	add	x22, x24, #4
	mov	x0, x22
	bl	_mutex_lock
	str	w23, [x24]
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	mov	x1, x22
	bl	_coretemp_remove_core
LBB0_7:
	mov	x0, x21
	bl	_cpumask_empty
	cbz	x0, LBB0_10
; %bb.8:
Lloh9:
	adrp	x8, _zone_devices@GOTPAGE
Lloh10:
	ldr	x8, [x8, _zone_devices@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_topology_logical_die_id
	str	xzr, [x21, x0, lsl #3]
	mov	x0, x20
	bl	_platform_device_unregister
LBB0_9:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x21, #8]
Lloh12:
	adrp	x9, _PKG_SYSFS_ATTR_NO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PKG_SYSFS_ATTR_NO@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x22, [x8, x9, lsl #3]
	cbz	x22, LBB0_9
; %bb.11:
	ldr	w8, [x22]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.12:
	mov	x0, x21
	bl	_cpumask_first
	mov	x19, x0
	add	x20, x22, #4
	mov	x0, x20
	bl	_mutex_lock
	str	w19, [x22]
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cpuhp_tasks_frozen,8,3         ; @cpuhp_tasks_frozen
	.comm	_MAX_CORE_DATA,4,2              ; @MAX_CORE_DATA
	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.comm	_zone_devices,8,3               ; @zone_devices
	.comm	_PKG_SYSFS_ATTR_NO,8,3          ; @PKG_SYSFS_ATTR_NO
	.no_dead_strip	_coretemp_cpu_offline
.subsections_via_symbols
