	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3722_poweroff_probe
_as3722_poweroff_probe:                 ## @as3722_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_bool
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_dev_get_drvdata
	movl	%eax, 8(%r15)
	movq	%rbx, (%r15)
	movq	_as3722_pm_poweroff@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	_pm_power_off@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_as3722_pm_power_off@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ams,system-power-controller"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_as3722_pm_poweroff,8,3         ## @as3722_pm_poweroff
	.comm	_pm_power_off,8,3               ## @pm_power_off
	.comm	_as3722_pm_power_off,8,3        ## @as3722_pm_power_off
	.no_dead_strip	_as3722_poweroff_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3722_poweroff_probe
_as3722_poweroff_probe:                 ; @as3722_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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_bool
	cbz	w0, LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19]
	bl	_dev_get_drvdata
	str	w0, [x20, #8]
	str	x19, [x20]
Lloh5:
	adrp	x8, _as3722_pm_poweroff@GOTPAGE
Lloh6:
	ldr	x8, [x8, _as3722_pm_poweroff@GOTPAGEOFF]
Lloh7:
	str	x20, [x8]
Lloh8:
	adrp	x8, _pm_power_off@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pm_power_off@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_9
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #0
Lloh14:
	adrp	x9, _as3722_pm_power_off@GOTPAGE
Lloh15:
	ldr	x9, [x9, _as3722_pm_power_off@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ams,system-power-controller"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_as3722_pm_poweroff,8,3         ; @as3722_pm_poweroff
	.comm	_pm_power_off,8,3               ; @pm_power_off
	.comm	_as3722_pm_power_off,8,3        ; @as3722_pm_power_off
	.no_dead_strip	_as3722_poweroff_probe
.subsections_via_symbols
