	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_state_reboot                   ## -- Begin function state_reboot
	.p2align	4, 0x90
_state_reboot:                          ## @state_reboot
	.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
	xorl	%eax, %eax
	callq	_GetTickCount
	movl	%eax, -12(%rbp)
	movq	(%rbx), %rax
	movq	32(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rcx)
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_state_init                     ## TAILCALL
LBB0_2:
	movq	_S_REBOOTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	leaq	-12(%rbp), %rdi
	callq	_RtlRandom
	movq	(%rbx), %rcx
	movl	%eax, 40(%rcx)
	movq	32(%rcx), %rsi
	movq	%rbx, %rdi
	callq	_make_request
	movq	_iaddr_broadcast@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rdi
	movl	%eax, 24(%rdi)
	addq	$20, %rdi
	callq	_time
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	$0, (%rax)
	movq	%rbx, %rdi
	callq	_send_request
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_REBOOTING,4,2                ## @S_REBOOTING
	.comm	_iaddr_broadcast,4,2            ## @iaddr_broadcast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_state_reboot                   ; -- Begin function state_reboot
	.p2align	2
_state_reboot:                          ; @state_reboot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	_GetTickCount
	str	w0, [sp, #12]
	ldr	x8, [x19]
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x9, [x9]
	cbz	x9, LBB0_3
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_state_init
LBB0_3:
Lloh0:
	adrp	x9, _S_REBOOTING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_REBOOTING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #44]
	add	x0, sp, #12
	bl	_RtlRandom
	ldr	x8, [x19]
	str	w0, [x8, #40]
	ldr	x1, [x8, #32]
	mov	x0, x19
	bl	_make_request
Lloh3:
	adrp	x8, _iaddr_broadcast@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iaddr_broadcast@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #24]
	add	x0, x9, #20
	bl	_time
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	str	w9, [x8, #16]
	str	xzr, [x8]
	mov	x0, x19
	bl	_send_request
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S_REBOOTING,4,2                ; @S_REBOOTING
	.comm	_iaddr_broadcast,4,2            ; @iaddr_broadcast
.subsections_via_symbols
