	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wdog_reboot_handler
_wdog_reboot_handler:                   ## @wdog_reboot_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_watchdog_user@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.1:
	testb	$1, _wdog_reboot_handler.reboot_event_handled(%rip)
	jne	LBB0_7
## %bb.2:
	movb	$1, _wdog_reboot_handler.reboot_event_handled(%rip)
	movq	_SYS_POWER_OFF@GOTPCREL(%rip), %rcx
	movq	_WDOG_TIMEOUT_NONE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rcx)
	je	LBB0_6
## %bb.3:
	movq	_SYS_HALT@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	_ipmi_watchdog_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_WDOG_TIMEOUT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_timeout@GOTPCREL(%rip), %rax
	movl	$120, (%rax)
	movq	_pretimeout@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_WDOG_TIMEOUT_RESET@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	_ipmi_watchdog_state@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_IPMI_SET_TIMEOUT_NO_HB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ipmi_set_timeout
LBB0_7:
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_wdog_reboot_handler.reboot_event_handled,1,2 ## @wdog_reboot_handler.reboot_event_handled
	.comm	_watchdog_user,8,3              ## @watchdog_user
	.comm	_SYS_POWER_OFF,8,3              ## @SYS_POWER_OFF
	.comm	_SYS_HALT,8,3                   ## @SYS_HALT
	.comm	_WDOG_TIMEOUT_NONE,8,3          ## @WDOG_TIMEOUT_NONE
	.comm	_ipmi_watchdog_state,8,3        ## @ipmi_watchdog_state
	.comm	_IPMI_SET_TIMEOUT_NO_HB,4,2     ## @IPMI_SET_TIMEOUT_NO_HB
	.comm	_timeout,4,2                    ## @timeout
	.comm	_pretimeout,8,3                 ## @pretimeout
	.comm	_WDOG_TIMEOUT_RESET,8,3         ## @WDOG_TIMEOUT_RESET
	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.no_dead_strip	_wdog_reboot_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wdog_reboot_handler
_wdog_reboot_handler:                   ; @wdog_reboot_handler
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _watchdog_user@GOTPAGE
Lloh1:
	ldr	x8, [x8, _watchdog_user@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	adrp	x8, _wdog_reboot_handler.reboot_event_handled@PAGE
	ldrb	w9, [x8, _wdog_reboot_handler.reboot_event_handled@PAGEOFF]
	tbnz	w9, #0, LBB0_6
; %bb.2:
	mov	w9, #1
	strb	w9, [x8, _wdog_reboot_handler.reboot_event_handled@PAGEOFF]
Lloh3:
	adrp	x8, _SYS_POWER_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_POWER_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SYS_HALT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SYS_HALT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x9]
Lloh9:
	adrp	x9, _WDOG_TIMEOUT_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WDOG_TIMEOUT_NONE@GOTPAGEOFF]
	cmp	x8, x1
	ccmp	x10, x1, #4, ne
Lloh11:
	adrp	x8, _ipmi_watchdog_state@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ipmi_watchdog_state@GOTPAGEOFF]
	b.eq	LBB0_5
; %bb.3:
	ldr	x10, [x8]
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_6
; %bb.4:
Lloh13:
	adrp	x9, _timeout@GOTPAGE
Lloh14:
	ldr	x9, [x9, _timeout@GOTPAGEOFF]
	mov	w10, #120
Lloh15:
	str	w10, [x9]
Lloh16:
	adrp	x9, _pretimeout@GOTPAGE
Lloh17:
	ldr	x9, [x9, _pretimeout@GOTPAGEOFF]
Lloh18:
	str	xzr, [x9]
Lloh19:
	adrp	x9, _WDOG_TIMEOUT_RESET@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WDOG_TIMEOUT_RESET@GOTPAGEOFF]
LBB0_5:
	ldr	x9, [x9]
	str	x9, [x8]
Lloh21:
	adrp	x8, _IPMI_SET_TIMEOUT_NO_HB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IPMI_SET_TIMEOUT_NO_HB@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_ipmi_set_timeout
LBB0_6:
Lloh24:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_wdog_reboot_handler.reboot_event_handled,1,2 ; @wdog_reboot_handler.reboot_event_handled
	.comm	_watchdog_user,8,3              ; @watchdog_user
	.comm	_SYS_POWER_OFF,8,3              ; @SYS_POWER_OFF
	.comm	_SYS_HALT,8,3                   ; @SYS_HALT
	.comm	_WDOG_TIMEOUT_NONE,8,3          ; @WDOG_TIMEOUT_NONE
	.comm	_ipmi_watchdog_state,8,3        ; @ipmi_watchdog_state
	.comm	_IPMI_SET_TIMEOUT_NO_HB,4,2     ; @IPMI_SET_TIMEOUT_NO_HB
	.comm	_timeout,4,2                    ; @timeout
	.comm	_pretimeout,8,3                 ; @pretimeout
	.comm	_WDOG_TIMEOUT_RESET,8,3         ; @WDOG_TIMEOUT_RESET
	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.no_dead_strip	_wdog_reboot_handler
.subsections_via_symbols
