	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_content_load_state             ## -- Begin function content_load_state
	.p2align	4, 0x90
_content_load_state:                    ## @content_load_state
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_task_init
	movq	%rax, %r14
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	movl	44(%rbx), %edi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	%r12d, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	(%r15), %eax
	movl	%eax, 40(%rbx)
	xorl	%eax, %eax
	callq	_video_driver_cached_frame_has_valid_framebuffer
	movl	%eax, 36(%rbx)
	movq	_TASK_TYPE_BLOCKING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	%rbx, 24(%r14)
	movq	_task_load_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_content_load_state_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_MSG_LOADING_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	%eax, %edi
	callq	_strdup
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_task_queue_push
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_free
LBB0_5:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_free
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_TYPE_BLOCKING,4,2         ## @TASK_TYPE_BLOCKING
	.comm	_task_load_handler,4,2          ## @task_load_handler
	.comm	_content_load_state_cb,4,2      ## @content_load_state_cb
	.comm	_MSG_LOADING_STATE,4,2          ## @MSG_LOADING_STATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_content_load_state             ; -- Begin function content_load_state
	.p2align	2
_content_load_state:                    ; @content_load_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_task_init
	mov	x19, x0
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	mov	x20, x0
	bl	_config_get_ptr
	cbz	x19, LBB0_3
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	mov	x24, x0
	ldr	w0, [x20, #44]
	mov	x1, x23
	mov	w2, #4
	bl	_strlcpy
	stp	w22, w21, [x20]
	ldr	w8, [x24]
	str	w8, [x20, #40]
	bl	_video_driver_cached_frame_has_valid_framebuffer
	str	w0, [x20, #36]
Lloh0:
	adrp	x8, _TASK_TYPE_BLOCKING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TASK_TYPE_BLOCKING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	x20, [x19, #24]
Lloh3:
	adrp	x8, _task_load_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _task_load_handler@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _content_load_state_cb@GOTPAGE
Lloh7:
	ldr	x9, [x9, _content_load_state_cb@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
Lloh9:
	adrp	x8, _MSG_LOADING_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_LOADING_STATE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	bl	_strdup
	str	w0, [x19, #8]
	mov	x0, x19
	bl	_task_queue_push
	mov	w0, #1
	b	LBB0_8
LBB0_3:
	cbz	x20, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_free
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_free
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_TYPE_BLOCKING,4,2         ; @TASK_TYPE_BLOCKING
	.comm	_task_load_handler,4,2          ; @task_load_handler
	.comm	_content_load_state_cb,4,2      ; @content_load_state_cb
	.comm	_MSG_LOADING_STATE,4,2          ; @MSG_LOADING_STATE
.subsections_via_symbols
