	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kona_reset_handler
_kona_reset_handler:                    ## @kona_reset_handler
	.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	_RSTMGR_WR_PASSWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSTMGR_WR_PASSWORD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	_RSTMGR_WR_ACCESS_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_kona_reset_base@GOTPCREL(%rip), %rbx
	movq	_RSTMGR_REG_WR_ACCESS_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_RSTMGR_REG_CHIP_SOFT_RST_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSTMGR_WR_PASSWORD,4,2         ## @RSTMGR_WR_PASSWORD
	.comm	_RSTMGR_WR_PASSWORD_SHIFT,4,2   ## @RSTMGR_WR_PASSWORD_SHIFT
	.comm	_RSTMGR_WR_ACCESS_ENABLE,4,2    ## @RSTMGR_WR_ACCESS_ENABLE
	.comm	_kona_reset_base,8,3            ## @kona_reset_base
	.comm	_RSTMGR_REG_WR_ACCESS_OFFSET,8,3 ## @RSTMGR_REG_WR_ACCESS_OFFSET
	.comm	_RSTMGR_REG_CHIP_SOFT_RST_OFFSET,8,3 ## @RSTMGR_REG_CHIP_SOFT_RST_OFFSET
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.no_dead_strip	_kona_reset_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kona_reset_handler
_kona_reset_handler:                    ; @kona_reset_handler
	.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, _RSTMGR_WR_PASSWORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSTMGR_WR_PASSWORD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RSTMGR_WR_PASSWORD_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RSTMGR_WR_PASSWORD_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _RSTMGR_WR_ACCESS_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RSTMGR_WR_ACCESS_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x19, _kona_reset_base@GOTPAGE
Lloh10:
	ldr	x19, [x19, _kona_reset_base@GOTPAGEOFF]
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _RSTMGR_REG_WR_ACCESS_OFFSET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RSTMGR_REG_WR_ACCESS_OFFSET@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _RSTMGR_REG_CHIP_SOFT_RST_OFFSET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RSTMGR_REG_CHIP_SOFT_RST_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh17:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RSTMGR_WR_PASSWORD,4,2         ; @RSTMGR_WR_PASSWORD
	.comm	_RSTMGR_WR_PASSWORD_SHIFT,4,2   ; @RSTMGR_WR_PASSWORD_SHIFT
	.comm	_RSTMGR_WR_ACCESS_ENABLE,4,2    ; @RSTMGR_WR_ACCESS_ENABLE
	.comm	_kona_reset_base,8,3            ; @kona_reset_base
	.comm	_RSTMGR_REG_WR_ACCESS_OFFSET,8,3 ; @RSTMGR_REG_WR_ACCESS_OFFSET
	.comm	_RSTMGR_REG_CHIP_SOFT_RST_OFFSET,8,3 ; @RSTMGR_REG_CHIP_SOFT_RST_OFFSET
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.no_dead_strip	_kona_reset_handler
.subsections_via_symbols
