	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__il_apm_stop                   ## -- Begin function _il_apm_stop
	.p2align	4, 0x90
__il_apm_stop:                          ## @_il_apm_stop
	.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	%rdi, %rbx
	callq	_lockdep_assert_held
	leaq	L_.str(%rip), %rdi
	callq	_D_INFO
	movq	%rbx, %rdi
	callq	__il_apm_stop_master
	movq	_CSR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_RESET_REG_FLAG_SW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	__il_set_bit
	movl	$10, %edi
	callq	_udelay
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_GP_CNTRL_REG_FLAG_INIT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	__il_clear_bit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stop card, put in low power state\n"

	.comm	_CSR_RESET,4,2                  ## @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_SW_RESET,4,2 ## @CSR_RESET_REG_FLAG_SW_RESET
	.comm	_CSR_GP_CNTRL,4,2               ## @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_INIT_DONE,4,2 ## @CSR_GP_CNTRL_REG_FLAG_INIT_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__il_apm_stop                   ; -- Begin function _il_apm_stop
	.p2align	2
__il_apm_stop:                          ; @_il_apm_stop
	.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
	bl	_lockdep_assert_held
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_INFO
	mov	x0, x19
	bl	__il_apm_stop_master
Lloh2:
	adrp	x8, _CSR_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSR_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _CSR_RESET_REG_FLAG_SW_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSR_RESET_REG_FLAG_SW_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	__il_set_bit
	mov	w0, #10
	bl	_udelay
Lloh8:
	adrp	x8, _CSR_GP_CNTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CSR_GP_CNTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _CSR_GP_CNTRL_REG_FLAG_INIT_DONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSR_GP_CNTRL_REG_FLAG_INIT_DONE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__il_clear_bit
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stop card, put in low power state\n"

	.comm	_CSR_RESET,4,2                  ; @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_SW_RESET,4,2 ; @CSR_RESET_REG_FLAG_SW_RESET
	.comm	_CSR_GP_CNTRL,4,2               ; @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_INIT_DONE,4,2 ; @CSR_GP_CNTRL_REG_FLAG_INIT_DONE
.subsections_via_symbols
