	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_task_file_load_handler         ## -- Begin function task_file_load_handler
	.p2align	4, 0x90
_task_file_load_handler:                ## @task_file_load_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$138, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$140, %eax
	je	LBB0_11
## %bb.3:
	cmpl	$141, %eax
	jne	LBB0_13
## %bb.4:
	movl	24(%rbx), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movl	24(%rbx), %edi
	movq	_NBIO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nbio_open
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, 16(%rbx)
	movl	$140, (%rbx)
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nbio_begin_read                ## TAILCALL
LBB0_8:
	movq	%rbx, %rdi
	callq	_task_file_transfer_iterate_parse
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_task_set_cancelled
LBB0_10:
	movl	$139, (%rbx)
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_task_file_transfer_iterate_transfer
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:
	movl	$138, (%rbx)
	jmp	LBB0_13
LBB0_6:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_task_set_cancelled
LBB0_13:
	movl	4(%rbx), %eax
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_17
## %bb.14:
	movl	$361, %ecx                      ## imm = 0x169
	btl	%eax, %ecx
	jb	LBB0_19
## %bb.15:
	movl	$646, %ecx                      ## imm = 0x286
	btl	%eax, %ecx
	jae	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_task_image_load_handler
	testl	%eax, %eax
	jne	LBB0_19
LBB0_18:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_task_set_finished
LBB0_19:
	movq	%r14, %rdi
	callq	_task_get_cancelled
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_task_set_error
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_task_set_finished              ## TAILCALL
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	cmpl	$0, 8(%rbx)
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_NBIO_READ,4,2                  ## @NBIO_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Task canceled."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_task_file_load_handler         ; -- Begin function task_file_load_handler
	.p2align	2
_task_file_load_handler:                ; @task_file_load_handler
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_18
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #138
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #140
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #141
	b.ne	LBB0_13
; %bb.4:
	ldr	w0, [x20, #24]
	bl	_string_is_empty
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	w0, [x20, #24]
Lloh0:
	adrp	x8, _NBIO_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBIO_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nbio_open
	cbz	x0, LBB0_22
; %bb.6:
	str	x0, [x20, #16]
	mov	w8, #140
	str	w8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nbio_begin_read
LBB0_7:
	mov	x0, x20
	bl	_task_file_transfer_iterate_parse
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	bl	_task_set_cancelled
LBB0_9:
	mov	w8, #139
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	bl	_task_file_transfer_iterate_transfer
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.11:
	mov	w8, #138
LBB0_12:
	str	w8, [x20]
LBB0_13:
	ldr	w8, [x20, #4]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_21
; %bb.14:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #361
	tst	w8, w9
	b.ne	LBB0_18
; %bb.15:
	mov	w9, #646
	tst	w8, w9
	b.eq	LBB0_21
; %bb.16:
	mov	x0, x19
	bl	_task_image_load_handler
	cbnz	w0, LBB0_18
LBB0_17:
	mov	x0, x19
	mov	w1, #1
	bl	_task_set_finished
LBB0_18:
	mov	x0, x19
	bl	_task_get_cancelled
	cbz	x0, LBB0_20
; %bb.19:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	mov	x1, x0
	mov	x0, x19
	bl	_task_set_error
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_task_set_finished
LBB0_20:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_21:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_17
	b	LBB0_18
LBB0_22:
	mov	x0, x19
	mov	w1, #1
	bl	_task_set_cancelled
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NBIO_READ,4,2                  ; @NBIO_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Task canceled."

.subsections_via_symbols
