	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_pl_manager_reset_cores_handler
_task_pl_manager_reset_cores_handler:   ## @task_pl_manager_reset_cores_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_task_get_cancelled
	testq	%rax, %rax
	jne	LBB0_25
## %bb.5:
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_20
## %bb.7:
	cmpl	$130, %eax
	jne	LBB0_24
## %bb.8:
	movl	24(%r14), %edi
	callq	_path_is_valid
	testl	%eax, %eax
	je	LBB0_25
## %bb.9:
	movl	24(%r14), %edi
	movq	_COLLECTION_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_playlist_init
	movl	%eax, 28(%r14)
	testl	%eax, %eax
	je	LBB0_25
## %bb.10:
	movl	%eax, %edi
	callq	_playlist_size
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	jle	LBB0_25
## %bb.11:
	movl	$128, (%r14)
	jmp	LBB0_27
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_25
LBB0_12:
	movq	$0, -56(%rbp)
	movl	8(%r14), %esi
	movl	28(%r14), %edi
	leaq	-56(%rbp), %rdx
	callq	_playlist_get_index
	cmpq	$0, -56(%rbp)
	je	LBB0_18
## %bb.13:
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	$0, -96(%rbp)
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movb	$0, (%r15)
	movb	$0, (%r13)
	movq	%rbx, %rdi
	callq	_task_free_title
	movq	_MSG_PLAYLIST_MANAGER_RESETTING_CORES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_strlcpy
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	callq	_string_is_empty
	movq	-56(%rbp), %rcx
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	8(%rcx), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movb	$0, (%rdi)
	movq	-56(%rbp), %rax
	movq	8(%rax), %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_fill_pathname_base_noext
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_strlcat
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_20:
	xorl	%eax, %eax
	callq	_playlist_get_cached
	movq	%rax, %r13
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movb	$0, (%r12)
	movl	28(%r14), %edi
	callq	_playlist_write_file
	testq	%r13, %r13
	je	LBB0_23
## %bb.21:
	movl	24(%r14), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_playlist_get_conf_path
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_string_is_equal
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	callq	_playlist_free_cached
	movl	24(%r14), %edi
	movq	_COLLECTION_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_playlist_init_cached
LBB0_23:
	movq	%rbx, %rdi
	callq	_task_free_title
	movq	_MSG_PLAYLIST_MANAGER_CORES_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_strlcpy
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_strlcat
	movq	%r12, %rdi
	callq	_strdup
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_task_set_title
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_24:
	movq	%rbx, %rdi
	movl	$100, %esi
	callq	_task_set_progress
LBB0_25:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_task_set_finished
LBB0_26:
	movq	%r14, %rdi
	callq	_free_pl_manager_handle
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%rcx), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_strlcat
LBB0_17:
	movq	%r15, %rdi
	callq	_strdup
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_task_set_title
	imull	$100, 8(%r14), %eax
	cltd
	idivl	4(%r14)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_task_set_progress
	movl	$1163150660, (%r13)             ## imm = 0x45544544
	movw	$21571, 4(%r13)                 ## imm = 0x5443
	movb	$0, 6(%r13)
	movq	%r13, -112(%rbp)
	movq	%r13, -104(%rbp)
	movl	8(%r14), %esi
	movl	28(%r14), %edi
	leaq	-128(%rbp), %rdx
	callq	_playlist_update
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_18:
	movl	8(%r14), %eax
	incl	%eax
	movl	%eax, 8(%r14)
	cmpl	4(%r14), %eax
	jl	LBB0_27
## %bb.19:
	movl	$129, (%r14)
	jmp	LBB0_27
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COLLECTION_SIZE,4,2            ## @COLLECTION_SIZE
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.comm	_MSG_PLAYLIST_MANAGER_RESETTING_CORES,4,2 ## @MSG_PLAYLIST_MANAGER_RESETTING_CORES
	.comm	_MSG_PLAYLIST_MANAGER_CORES_RESET,4,2 ## @MSG_PLAYLIST_MANAGER_CORES_RESET
	.no_dead_strip	_task_pl_manager_reset_cores_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_pl_manager_reset_cores_handler
_task_pl_manager_reset_cores_handler:   ; @task_pl_manager_reset_cores_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0]
	cbz	x19, LBB0_20
; %bb.2:
	mov	x0, x20
	bl	_task_get_cancelled
	cbnz	x0, LBB0_20
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_15
; %bb.5:
	cmp	w8, #130
	b.ne	LBB0_19
; %bb.6:
	ldr	w0, [x19, #24]
	bl	_path_is_valid
	cbz	w0, LBB0_20
; %bb.7:
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _COLLECTION_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COLLECTION_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_playlist_init
	str	w0, [x19, #28]
	cbz	w0, LBB0_20
; %bb.8:
	bl	_playlist_size
	str	w0, [x19, #4]
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.9:
	mov	w8, #128
	str	w8, [x19]
	b	LBB0_22
LBB0_10:
	mov	x19, #0
	b	LBB0_21
LBB0_11:
	stur	xzr, [x29, #-80]
	ldr	w0, [x19, #28]
	ldr	w1, [x19, #8]
	sub	x2, x29, #80
	bl	_playlist_get_index
	ldur	x8, [x29, #-80]
	cbz	x8, LBB0_26
; %bb.12:
	mov	x24, sp
	stur	xzr, [x29, #-96]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x29, #-128]
Lloh6:
	adrp	x23, _PATH_MAX_LENGTH@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x9, x21
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	w8, [x23]
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	strb	wzr, [x22]
	strb	wzr, [x25]
	mov	x0, x20
	bl	_task_free_title
Lloh12:
	adrp	x8, _MSG_PLAYLIST_MANAGER_RESETTING_CORES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_PLAYLIST_MANAGER_RESETTING_CORES@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_strlcpy
	ldur	x8, [x29, #-80]
	ldr	x0, [x8]
	bl	_string_is_empty
	ldur	x8, [x29, #-80]
	cbz	w0, LBB0_24
; %bb.13:
	ldr	x0, [x8, #8]
	bl	_string_is_empty
	cbnz	w0, LBB0_25
; %bb.14:
	mov	x26, sp
	ldr	w2, [x23]
	mov	x9, x2
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	strb	wzr, [x23]
	ldur	x8, [x29, #-80]
	ldr	x1, [x8, #8]
	mov	x0, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_fill_pathname_base_noext
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_strlcat
	mov	sp, x26
	b	LBB0_25
LBB0_15:
	bl	_playlist_get_cached
	mov	x23, x0
	mov	x25, sp
Lloh17:
	adrp	x8, _PATH_MAX_LENGTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	mov	x9, x21
Lloh20:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh21:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	strb	wzr, [x22]
	ldr	w0, [x19, #28]
	bl	_playlist_write_file
	cbz	x23, LBB0_18
; %bb.16:
	ldr	w24, [x19, #24]
	mov	x0, x23
	bl	_playlist_get_conf_path
	mov	x1, x0
	mov	x0, x24
	bl	_string_is_equal
	cbz	w0, LBB0_18
; %bb.17:
	bl	_playlist_free_cached
	ldr	w0, [x19, #24]
Lloh22:
	adrp	x8, _COLLECTION_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _COLLECTION_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_playlist_init_cached
LBB0_18:
	mov	x0, x20
	bl	_task_free_title
Lloh25:
	adrp	x8, _MSG_PLAYLIST_MANAGER_CORES_RESET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_PLAYLIST_MANAGER_CORES_RESET@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_strlcpy
	ldr	x1, [x19, #16]
	mov	x0, x22
	mov	x2, x21
	bl	_strlcat
	mov	x0, x22
	bl	_strdup
	mov	x1, x0
	mov	x0, x20
	bl	_task_set_title
	mov	sp, x25
LBB0_19:
	mov	x0, x20
	mov	w1, #100
	bl	_task_set_progress
LBB0_20:
	mov	x0, x20
	mov	w1, #1
	bl	_task_set_finished
LBB0_21:
	mov	x0, x19
	bl	_free_pl_manager_handle
LBB0_22:
	ldur	x8, [x29, #-72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.23:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_24:
	ldr	x1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_strlcat
LBB0_25:
	mov	x0, x22
	bl	_strdup
	mov	x1, x0
	mov	x0, x20
	bl	_task_set_title
	mov	w8, #100
	ldp	w10, w9, [x19, #4]
	mul	w8, w9, w8
	sdiv	w1, w8, w10
	mov	x0, x20
	bl	_task_set_progress
	mov	w8, #17732
	movk	w8, #17748, lsl #16
	str	w8, [x25]
	mov	w8, #21571
	strh	w8, [x25, #4]
	strb	wzr, [x25, #6]
	stp	x25, x25, [x29, #-112]
	ldr	w0, [x19, #28]
	ldr	w1, [x19, #8]
	sub	x2, x29, #128
	bl	_playlist_update
	mov	sp, x24
LBB0_26:
	ldp	w9, w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #8]
	cmp	w8, w9
	b.lt	LBB0_22
; %bb.27:
	mov	w8, #129
	str	w8, [x19]
	b	LBB0_22
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_COLLECTION_SIZE,4,2            ; @COLLECTION_SIZE
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_MSG_PLAYLIST_MANAGER_RESETTING_CORES,4,2 ; @MSG_PLAYLIST_MANAGER_RESETTING_CORES
	.comm	_MSG_PLAYLIST_MANAGER_CORES_RESET,4,2 ; @MSG_PLAYLIST_MANAGER_CORES_RESET
	.no_dead_strip	_task_pl_manager_reset_cores_handler
.subsections_via_symbols
