	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kerntest_frwk_init
_kerntest_frwk_init:                    ## @kerntest_frwk_init
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mp_ncpus@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_MAXCPU@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_KTFRWK_MUTEX_INIT
	movq	_kfrwk@GOTPCREL(%rip), %r14
	leaq	24(%r14), %rdi
	callq	_TAILQ_INIT
	leaq	20(%r14), %rdi
	callq	_TAILQ_INIT
	movq	_kfrwk_task@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%r14), %rdi
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_TASK_INIT
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_taskqueue_thread_enqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%r14), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rcx
	callq	_taskqueue_create_fast
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_.str.2(%rip), %rdi
	callq	_panic
LBB0_2:
	testq	%r12, %r12
	cmovneq	%r12, %r15
	movq	_PI_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_taskqueue_start_threads
	movq	%r15, (%r14)
	movq	_ktest_frwk_inited@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mp_ncpus,8,3                   ## @mp_ncpus
	.comm	_MAXCPU,8,3                     ## @MAXCPU
	.comm	_kfrwk,32,3                     ## @kfrwk
	.comm	_kfrwk_task,4,2                 ## @kfrwk_task
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sbtls_task"

	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_taskqueue_thread_enqueue,4,2   ## @taskqueue_thread_enqueue
L_.str.2:                               ## @.str.2
	.asciz	"Taskqueue init fails for kfrwk"

	.comm	_PI_NET,4,2                     ## @PI_NET
L_.str.3:                               ## @.str.3
	.asciz	"[kt_frwk task]"

	.comm	_ktest_frwk_inited,4,2          ## @ktest_frwk_inited
L_str:                                  ## @str
	.asciz	"Can't start taskqueue for Kernel Test Framework"

	.no_dead_strip	_kerntest_frwk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kerntest_frwk_init
_kerntest_frwk_init:                    ; @kerntest_frwk_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _mp_ncpus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mp_ncpus@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _MAXCPU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXCPU@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	bl	_KTFRWK_MUTEX_INIT
Lloh6:
	adrp	x19, _kfrwk@GOTPAGE
Lloh7:
	ldr	x19, [x19, _kfrwk@GOTPAGEOFF]
	add	x0, x19, #24
	bl	_TAILQ_INIT
	add	x0, x19, #20
	bl	_TAILQ_INIT
Lloh8:
	adrp	x8, _kfrwk_task@GOTPAGE
Lloh9:
	ldr	x8, [x8, _kfrwk_task@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x0, x19, #16
	mov	w1, #0
	mov	x3, x19
	bl	_TASK_INIT
Lloh11:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _taskqueue_thread_enqueue@GOTPAGE
Lloh15:
	ldr	x8, [x8, _taskqueue_thread_enqueue@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	add	x20, x19, #8
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	bl	_taskqueue_create_fast
	str	x0, [x19, #8]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh19:
	adrp	x0, l_str@PAGE
Lloh20:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
LBB0_2:
	cmp	x21, #0
	csel	x21, x22, x21, eq
Lloh23:
	adrp	x8, _PI_NET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PI_NET@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x3, l_.str.3@PAGE
Lloh27:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_taskqueue_start_threads
	str	x21, [x19]
Lloh28:
	adrp	x8, _ktest_frwk_inited@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ktest_frwk_inited@GOTPAGEOFF]
	mov	w9, #1
Lloh30:
	str	w9, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_mp_ncpus,8,3                   ; @mp_ncpus
	.comm	_MAXCPU,8,3                     ; @MAXCPU
	.comm	_kfrwk,32,3                     ; @kfrwk
	.comm	_kfrwk_task,4,2                 ; @kfrwk_task
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sbtls_task"

	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_taskqueue_thread_enqueue,4,2   ; @taskqueue_thread_enqueue
l_.str.2:                               ; @.str.2
	.asciz	"Taskqueue init fails for kfrwk"

	.comm	_PI_NET,4,2                     ; @PI_NET
l_.str.3:                               ; @.str.3
	.asciz	"[kt_frwk task]"

	.comm	_ktest_frwk_inited,4,2          ; @ktest_frwk_inited
l_str:                                  ; @str
	.asciz	"Can't start taskqueue for Kernel Test Framework"

	.no_dead_strip	_kerntest_frwk_init
.subsections_via_symbols
