	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kfrwk_task
_kfrwk_task:                            ## @kfrwk_task
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_KTFRWK_LOCK
	leaq	12(%r14), %r15
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rsi
	decq	8(%rax)
	addq	$8, %rsi
	decl	(%r14)
	leaq	-40(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	movl	8(%r14), %edi
	leaq	4(%r14), %rsi
	callq	_taskqueue_enqueue
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	callq	_KTFRWK_UNLOCK
	jmp	LBB0_12
LBB0_3:
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
LBB0_5:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rax), %r15
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	xorl	%eax, %eax
	callq	_KTFRWK_UNLOCK
	testq	%r12, %r12
	je	LBB0_9
## %bb.10:
	testq	%r15, %r15
	je	LBB0_12
LBB0_11:
	leaq	-40(%rbp), %rdi
	callq	*%r15
LBB0_12:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_atomic_add_int
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_M_KTFRWK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_free
	testq	%r15, %r15
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_next,4,2                       ## @next
	.comm	_M_KTFRWK,4,2                   ## @M_KTFRWK
	.no_dead_strip	_kfrwk_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kfrwk_task
_kfrwk_task:                            ; @kfrwk_task
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	bl	_KTFRWK_LOCK
	add	x21, x19, #12
	mov	x0, x21
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x22, x0
	ldr	x8, [x22, #8]!
	sub	x8, x8, #1
	str	x8, [x22]
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	add	x0, sp, #8
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	ldr	x22, [x22]
	cbz	x22, LBB0_9
; %bb.2:
	ldr	w0, [x19, #8]
	add	x1, x19, #4
	bl	_taskqueue_enqueue
	ldr	x8, [x20]
	cbz	x8, LBB0_10
LBB0_3:
	ldr	x21, [x8]
	bl	_KTFRWK_UNLOCK
	cbnz	x22, LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _M_KTFRWK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_KTFRWK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_free
LBB0_5:
	cbz	x21, LBB0_8
; %bb.6:
	add	x0, sp, #8
	blr	x21
	b	LBB0_8
LBB0_7:
	bl	_KTFRWK_UNLOCK
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	bl	_atomic_add_int
	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
	add	sp, sp, #64
	ret
LBB0_9:
Lloh3:
	adrp	x8, _next@GOTPAGE
Lloh4:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_TAILQ_REMOVE
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
LBB0_10:
	mov	x21, #0
	bl	_KTFRWK_UNLOCK
	cbnz	x22, LBB0_5
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_next,4,2                       ; @next
	.comm	_M_KTFRWK,4,2                   ; @M_KTFRWK
	.no_dead_strip	_kfrwk_task
.subsections_via_symbols
