	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BootDone                       ## -- Begin function BootDone
	.p2align	4, 0x90
_BootDone:                              ## @BootDone
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_FindConn
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	16(%r14), %edi
	callq	_ntohs
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_RMP_BOOT_REPL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	8(%rbx,%rdx,4), %edi
	callq	_ntohs
	cmpq	%rax, %r15
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_RemoveConn
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_EnetStr
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_syslog
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_EnetStr
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_EnetStr
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_syslog
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BootDone: no existing connection (%s)"

	.comm	_RMP_BOOT_REPL,8,3              ## @RMP_BOOT_REPL
L_.str.1:                               ## @.str.1
	.asciz	"BootDone: bad session id (%s)"

	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"%s: boot complete"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BootDone                       ; -- Begin function BootDone
	.p2align	2
_BootDone:                              ; @BootDone
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_FindConn
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_ntohs
	mov	x21, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RMP_BOOT_REPL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RMP_BOOT_REPL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #8
	mov	w11, #12
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w0, [x20, x8]
	bl	_ntohs
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_RemoveConn
Lloh3:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_EnetStr
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_syslog
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_EnetStr
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_EnetStr
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_syslog
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BootDone: no existing connection (%s)"

	.comm	_RMP_BOOT_REPL,8,3              ; @RMP_BOOT_REPL
l_.str.1:                               ; @.str.1
	.asciz	"BootDone: bad session id (%s)"

	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"%s: boot complete"

.subsections_via_symbols
