	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmlab_start
_dmlab_start:                           ## @dmlab_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	1(%rdx,%rax), %ebx
	cmovnsl	%edx, %ebx
	movq	72(%rdi), %r12
	cmpl	$0, 64(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movl	$0, (%rdi)
	cmpq	$0, 56(%rdi)
	je	LBB0_6
## %bb.3:
	movq	_re@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	movq	%r15, %rdi
	callq	_connecting
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.4:
	cmpl	$0, 4(%r15)
	movl	$0, %r14d
	jne	LBB0_21
## %bb.5:
	movl	(%r12), %edi
	callq	*8(%r12)
	movl	$1, 4(%r15)
	jmp	LBB0_22
LBB0_1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	*32(%r12)
	movl	$1, %r14d
	jmp	LBB0_21
LBB0_6:
	movl	%esi, %r14d
	movl	(%r12), %edi
	callq	*24(%r12)
	movq	$0, 48(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movl	(%r12), %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	*16(%r12)
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_7
LBB0_21:
	movl	%r14d, %eax
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, 24(%r15)
	je	LBB0_8
LBB0_10:
	movq	_re@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	cmpq	$0, 32(%r15)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_connect_client
LBB0_17:
	movl	$0, 28(%r15)
	cmpq	$0, 32(%r15)
	je	LBB0_18
## %bb.19:
	movq	_clc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CA_ACTIVE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jge	LBB0_21
## %bb.20:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_21
LBB0_8:
	movq	%r15, %rdi
	callq	_first_start
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.9:
	movl	$1, 24(%r15)
	jmp	LBB0_10
LBB0_12:
	cmpq	$0, 40(%r15)
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_start_server
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movl	$1, %r14d
	jmp	LBB0_21
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_15:
	movq	%r15, %rdi
	callq	_load_map
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_21
## %bb.16:
	movl	(%r12), %edi
	callq	*8(%r12)
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'init' must be called before 'start. See documentation in env_c_api.h'\n"

	.comm	_re,8,3                         ## @re
	.comm	_clc,8,3                        ## @clc
	.comm	_CA_ACTIVE,8,3                  ## @CA_ACTIVE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_dmlab_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmlab_start
_dmlab_start:                           ; @dmlab_start
	.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
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w2, w8
	cmp	w2, #0
	csinc	w21, w2, w8, ge
	ldr	x22, [x0, #72]
	ldr	w8, [x0, #64]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	str	wzr, [x0]
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _re@GOTPAGE
Lloh4:
	ldr	x8, [x8, _re@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	blr	x8
	mov	x0, x19
	bl	_connecting
	cbnz	w0, LBB0_20
; %bb.3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
LBB0_4:
	mov	w0, #0
	b	LBB0_20
LBB0_5:
	ldr	x8, [x22, #32]
	ldr	w0, [x22]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
	mov	w0, #1
	b	LBB0_20
LBB0_6:
	mov	x20, x1
	ldr	x8, [x22, #24]
	ldr	w0, [x22]
	blr	x8
	str	xzr, [x19, #48]
	stp	xzr, xzr, [x19, #8]
	ldr	x8, [x22, #16]
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x21
	blr	x8
	cbnz	w0, LBB0_20
; %bb.7:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_13
LBB0_8:
Lloh8:
	adrp	x8, _re@GOTPAGE
Lloh9:
	ldr	x8, [x8, _re@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	blr	x8
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_15
; %bb.9:
	mov	x0, x19
	bl	_connect_client
LBB0_10:
	str	wzr, [x19, #28]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.11:
Lloh11:
	adrp	x8, _clc@GOTPAGE
Lloh12:
	ldr	x8, [x8, _clc@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _CA_ACTIVE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CA_ACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w0, w10, wzr, lt
	b	LBB0_20
LBB0_12:
	ldr	x8, [x22, #8]
	ldr	w0, [x22]
	blr	x8
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_20
LBB0_13:
	mov	x0, x19
	bl	_first_start
	cbnz	w0, LBB0_20
; %bb.14:
	mov	w8, #1
	str	w8, [x19, #24]
	b	LBB0_8
LBB0_15:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_start_server
	cbnz	w0, LBB0_10
	b	LBB0_19
LBB0_17:
	mov	x0, x19
	bl	_load_map
	cbz	w0, LBB0_19
; %bb.18:
	ldr	x8, [x22, #8]
	ldr	w0, [x22]
	blr	x8
	cbz	w0, LBB0_10
LBB0_19:
	mov	w0, #1
LBB0_20:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'init' must be called before 'start. See documentation in env_c_api.h'\n"

	.comm	_re,8,3                         ; @re
	.comm	_clc,8,3                        ; @clc
	.comm	_CA_ACTIVE,8,3                  ; @CA_ACTIVE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_dmlab_start
.subsections_via_symbols
