	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3722_pm_power_off
_as3722_pm_power_off:                   ## @as3722_pm_power_off
	.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	_as3722_pm_poweroff@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	4(%rax), %edi
	movq	_AS3722_RESET_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AS3722_POWER_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_as3722_update_bits
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_4:
	movq	(%rbx), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_as3722_pm_poweroff,8,3         ## @as3722_pm_poweroff
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AS3722 poweroff is not initialised\n"

	.comm	_AS3722_RESET_CONTROL_REG,4,2   ## @AS3722_RESET_CONTROL_REG
	.comm	_AS3722_POWER_OFF,4,2           ## @AS3722_POWER_OFF
L_.str.1:                               ## @.str.1
	.asciz	"RESET_CONTROL_REG update failed, %d\n"

	.no_dead_strip	_as3722_pm_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3722_pm_power_off
_as3722_pm_power_off:                   ; @as3722_pm_power_off
	.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, _as3722_pm_poweroff@GOTPAGE
Lloh1:
	ldr	x19, [x19, _as3722_pm_poweroff@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x8, #4]
Lloh2:
	adrp	x8, _AS3722_RESET_CONTROL_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AS3722_RESET_CONTROL_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _AS3722_POWER_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AS3722_POWER_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_as3722_update_bits
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_err
LBB0_4:
	mov	x2, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_as3722_pm_poweroff,8,3         ; @as3722_pm_poweroff
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AS3722 poweroff is not initialised\n"

	.comm	_AS3722_RESET_CONTROL_REG,4,2   ; @AS3722_RESET_CONTROL_REG
	.comm	_AS3722_POWER_OFF,4,2           ; @AS3722_POWER_OFF
l_.str.1:                               ; @.str.1
	.asciz	"RESET_CONTROL_REG update failed, %d\n"

	.no_dead_strip	_as3722_pm_power_off
.subsections_via_symbols
