	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_map
_load_map:                              ## @load_map
	.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, %r15
	movl	$1, (%rdi)
	callq	_dev_map
	movq	8(%r15), %rdi
	cmpq	$0, 24(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_connecting
	cmpq	(%rbx), %rax
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_IN_Frame
	xorl	%eax, %eax
	callq	_Com_Frame
	xorl	%eax, %eax
	callq	_IN_Frame
	xorl	%eax, %eax
	callq	_Com_Frame
	xorl	%eax, %eax
	callq	_IN_Frame
	xorl	%eax, %eax
	callq	_Com_Frame
	movq	8(%r15), %rdi
LBB0_4:
	movq	_cls@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	cmpq	$0, 32(%rdi)
	je	LBB0_5
## %bb.6:
	callq	_dmlab_start_recording
	movl	%eax, %r14d
	andl	$1, %r14d
	movq	8(%r15), %rdi
	cmpq	$0, 24(%rdi)
	je	LBB0_9
LBB0_8:
	callq	_dmlab_start_demo
	andl	%eax, %r14d
LBB0_9:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.11:
	movq	8(%r15), %rdi
	cmpq	$0, 16(%rdi)
	je	LBB0_12
## %bb.13:
	callq	_dmlab_start_video
	movl	%eax, %r14d
	andl	$1, %r14d
	jmp	LBB0_14
LBB0_5:
	movl	$1, %r14d
	cmpq	$0, 24(%rdi)
	jne	LBB0_8
	jmp	LBB0_9
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_12:
	movl	$1, %r14d
LBB0_14:
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	movq	_DMLAB_RECORDING_ERROR_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_16
## %bb.15:
	movq	16(%r15), %rcx
	movl	(%rcx), %edi
	movl	8(%rax), %esi
	callq	*8(%rcx)
LBB0_16:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_cls,4,2                        ## @cls
	.comm	_DMLAB_RECORDING_ERROR_NONE,8,3 ## @DMLAB_RECORDING_ERROR_NONE
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_load_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_map
_load_map:                              ; @load_map
	.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
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	bl	_dev_map
	ldr	x0, [x19, #8]
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x20, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EAGAIN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_connecting
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.3:
	bl	_IN_Frame
	bl	_Com_Frame
	bl	_IN_Frame
	bl	_Com_Frame
	bl	_IN_Frame
	bl	_Com_Frame
	ldr	x0, [x19, #8]
LBB0_4:
Lloh2:
	adrp	x8, _cls@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cls@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_10
; %bb.5:
	bl	_dmlab_start_recording
	and	w20, w0, #0x1
	ldr	x0, [x19, #8]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_7
LBB0_6:
	bl	_dmlab_start_demo
	and	w20, w0, w20
LBB0_7:
	cbz	w20, LBB0_12
; %bb.8:
	ldr	x0, [x19, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_11
; %bb.9:
	bl	_dmlab_start_video
	and	w20, w0, #0x1
	b	LBB0_12
LBB0_10:
	mov	w20, #1
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_6
	b	LBB0_7
LBB0_11:
	mov	w20, #1
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _DMLAB_RECORDING_ERROR_NONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DMLAB_RECORDING_ERROR_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_14
; %bb.13:
	ldr	x9, [x19, #16]
	ldr	x10, [x9, #8]
	ldr	w0, [x9]
	ldr	w1, [x8, #8]
	blr	x10
LBB0_14:
Lloh8:
	adrp	x8, _stdout@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_fflush
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_cls,4,2                        ; @cls
	.comm	_DMLAB_RECORDING_ERROR_NONE,8,3 ; @DMLAB_RECORDING_ERROR_NONE
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_load_map
.subsections_via_symbols
