	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_power_supply_unregister        ## -- Begin function power_supply_unregister
	.p2align	4, 0x90
_power_supply_unregister:               ## @power_supply_unregister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_atomic_dec_return
	movl	%eax, %edi
	callq	_WARN_ON
	movl	$1, (%rbx)
	leaq	12(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	8(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	leaq	4(%rbx), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_link
	movq	%rbx, %rdi
	callq	_power_supply_remove_hwmon_sysfs
	movq	%rbx, %rdi
	callq	_power_supply_remove_triggers
	movq	%rbx, %rdi
	callq	_psy_unregister_cooler
	movq	%rbx, %rdi
	callq	_psy_unregister_thermal
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_device_init_wakeup
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_device_unregister              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"powers"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_power_supply_unregister        ; -- Begin function power_supply_unregister
	.p2align	2
_power_supply_unregister:               ; @power_supply_unregister
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #16
	bl	_atomic_dec_return
	bl	_WARN_ON
	mov	w8, #1
	mov	x20, x19
	str	w8, [x20], #4
	add	x0, x19, #12
	bl	_cancel_work_sync
	add	x0, x19, #8
	bl	_cancel_delayed_work_sync
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sysfs_remove_link
	mov	x0, x19
	bl	_power_supply_remove_hwmon_sysfs
	mov	x0, x19
	bl	_power_supply_remove_triggers
	mov	x0, x19
	bl	_psy_unregister_cooler
	mov	x0, x19
	bl	_psy_unregister_thermal
	mov	x0, x20
	mov	w1, #0
	bl	_device_init_wakeup
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_device_unregister
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"powers"

.subsections_via_symbols
