	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function olpc_xo175_ec_remove
_olpc_xo175_ec_remove:                  ## @olpc_xo175_ec_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_pm_power_off@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_olpc_xo175_ec_power_off@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	$0, (%rax)
LBB0_2:
	callq	_spi_slave_abort
	movq	_olpc_ec@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_platform_device_unregister
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pm_power_off,8,3               ## @pm_power_off
	.comm	_olpc_xo175_ec_power_off,8,3    ## @olpc_xo175_ec_power_off
	.comm	_olpc_ec,8,3                    ## @olpc_ec
	.no_dead_strip	_olpc_xo175_ec_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function olpc_xo175_ec_remove
_olpc_xo175_ec_remove:                  ; @olpc_xo175_ec_remove
	.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
Lloh0:
	adrp	x8, _pm_power_off@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pm_power_off@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _olpc_xo175_ec_power_off@GOTPAGE
Lloh3:
	ldr	x10, [x10, _olpc_xo175_ec_power_off@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x8]
LBB0_2:
	bl	_spi_slave_abort
Lloh5:
	adrp	x19, _olpc_ec@GOTPAGE
Lloh6:
	ldr	x19, [x19, _olpc_ec@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_platform_device_unregister
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pm_power_off,8,3               ; @pm_power_off
	.comm	_olpc_xo175_ec_power_off,8,3    ; @olpc_xo175_ec_power_off
	.comm	_olpc_ec,8,3                    ; @olpc_ec
	.no_dead_strip	_olpc_xo175_ec_remove
.subsections_via_symbols
