	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_poweroff_probe
_sc27xx_poweroff_probe:                 ## @sc27xx_poweroff_probe
	.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	_regmap@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movl	(%rdi), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_sc27xx_poweroff_do_poweroff@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_pm_power_off@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_poweroff_syscore_ops@GOTPCREL(%rip), %rdi
	callq	_register_syscore_ops
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_regmap,8,3                     ## @regmap
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_sc27xx_poweroff_do_poweroff,4,2 ## @sc27xx_poweroff_do_poweroff
	.comm	_pm_power_off,4,2               ## @pm_power_off
	.comm	_poweroff_syscore_ops,4,2       ## @poweroff_syscore_ops
	.no_dead_strip	_sc27xx_poweroff_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_poweroff_probe
_sc27xx_poweroff_probe:                 ; @sc27xx_poweroff_probe
	.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	x19, _regmap@GOTPAGE
Lloh1:
	ldr	x19, [x19, _regmap@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	ldr	w0, [x0]
	mov	x1, #0
	bl	_dev_get_regmap
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.4:
Lloh4:
	adrp	x8, _sc27xx_poweroff_do_poweroff@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sc27xx_poweroff_do_poweroff@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _pm_power_off@GOTPAGE
Lloh8:
	ldr	x9, [x9, _pm_power_off@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
Lloh10:
	adrp	x0, _poweroff_syscore_ops@GOTPAGE
Lloh11:
	ldr	x0, [x0, _poweroff_syscore_ops@GOTPAGEOFF]
	bl	_register_syscore_ops
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_regmap,8,3                     ; @regmap
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_sc27xx_poweroff_do_poweroff,4,2 ; @sc27xx_poweroff_do_poweroff
	.comm	_pm_power_off,4,2               ; @pm_power_off
	.comm	_poweroff_syscore_ops,4,2       ; @poweroff_syscore_ops
	.no_dead_strip	_sc27xx_poweroff_probe
.subsections_via_symbols
