	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kthrdlk_init
_kthrdlk_init:                          ## @kthrdlk_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_QUIT@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_test_thrcnt@GOTPCREL(%rip), %rax
	movl	$3, (%rax)
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_test_global_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	$0, -16(%rbp)
	movq	_thr_getsuspended@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	leaq	-16(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_kproc_kthread_add
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_panic
LBB0_2:
	movq	_thr_resumer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-24(%rbp), %rsi
	leaq	L_.str.4(%rip), %rax
	leaq	-16(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_kproc_kthread_add
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_panic
LBB0_4:
	movq	_thr_suspender@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-24(%rbp), %rsi
	leaq	L_.str.6(%rip), %rax
	leaq	-16(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_kproc_kthread_add
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	callq	_panic
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUIT,8,3                       ## @QUIT
	.comm	_test_thrcnt,4,2                ## @test_thrcnt
	.comm	_test_global_lock,4,2           ## @test_global_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kthrdlk_lock"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_thr_getsuspended,4,2           ## @thr_getsuspended
L_.str.1:                               ## @.str.1
	.asciz	"kthrdlk"

L_.str.2:                               ## @.str.2
	.asciz	"thr_getsuspended"

L_.str.3:                               ## @.str.3
	.asciz	"cannot start thr_getsuspended error: %d\n"

	.comm	_thr_resumer,4,2                ## @thr_resumer
L_.str.4:                               ## @.str.4
	.asciz	"thr_resumer"

L_.str.5:                               ## @.str.5
	.asciz	"cannot start thr_resumer error: %d\n"

	.comm	_thr_suspender,4,2              ## @thr_suspender
L_.str.6:                               ## @.str.6
	.asciz	"thr_suspender"

L_.str.7:                               ## @.str.7
	.asciz	"cannot start thr_suspender error: %d\n"

	.no_dead_strip	_kthrdlk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kthrdlk_init
_kthrdlk_init:                          ; @kthrdlk_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _QUIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUIT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _test_thrcnt@GOTPAGE
Lloh3:
	ldr	x9, [x9, _test_thrcnt@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
	mov	w8, #3
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x0, _test_global_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _test_global_lock@GOTPAGEOFF]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
	str	xzr, [sp, #8]
Lloh13:
	adrp	x8, _thr_getsuspended@GOTPAGE
Lloh14:
	ldr	x8, [x8, _thr_getsuspended@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x6, l_.str.1@PAGE
Lloh17:
	add	x6, x6, l_.str.1@PAGEOFF
Lloh18:
	adrp	x7, l_.str.2@PAGE
Lloh19:
	add	x7, x7, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, #0
	mov	w4, #0
	mov	w5, #0
	bl	_kproc_kthread_add
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_panic
LBB0_2:
Lloh22:
	adrp	x8, _thr_resumer@GOTPAGE
Lloh23:
	ldr	x8, [x8, _thr_resumer@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x1, [sp]
Lloh25:
	adrp	x6, l_.str.1@PAGE
Lloh26:
	add	x6, x6, l_.str.1@PAGEOFF
Lloh27:
	adrp	x7, l_.str.4@PAGE
Lloh28:
	add	x7, x7, l_.str.4@PAGEOFF
	add	x2, sp, #8
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_kproc_kthread_add
	cbz	w0, LBB0_4
; %bb.3:
	mov	x1, x0
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_panic
LBB0_4:
Lloh31:
	adrp	x8, _thr_suspender@GOTPAGE
Lloh32:
	ldr	x8, [x8, _thr_suspender@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	x1, [sp]
Lloh34:
	adrp	x6, l_.str.1@PAGE
Lloh35:
	add	x6, x6, l_.str.1@PAGEOFF
Lloh36:
	adrp	x7, l_.str.6@PAGE
Lloh37:
	add	x7, x7, l_.str.6@PAGEOFF
	add	x2, sp, #8
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_kproc_kthread_add
	cbz	w0, LBB0_6
; %bb.5:
	mov	x1, x0
Lloh38:
	adrp	x0, l_.str.7@PAGE
Lloh39:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_panic
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_QUIT,8,3                       ; @QUIT
	.comm	_test_thrcnt,4,2                ; @test_thrcnt
	.comm	_test_global_lock,4,2           ; @test_global_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kthrdlk_lock"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_thr_getsuspended,4,2           ; @thr_getsuspended
l_.str.1:                               ; @.str.1
	.asciz	"kthrdlk"

l_.str.2:                               ; @.str.2
	.asciz	"thr_getsuspended"

l_.str.3:                               ; @.str.3
	.asciz	"cannot start thr_getsuspended error: %d\n"

	.comm	_thr_resumer,4,2                ; @thr_resumer
l_.str.4:                               ; @.str.4
	.asciz	"thr_resumer"

l_.str.5:                               ; @.str.5
	.asciz	"cannot start thr_resumer error: %d\n"

	.comm	_thr_suspender,4,2              ; @thr_suspender
l_.str.6:                               ; @.str.6
	.asciz	"thr_suspender"

l_.str.7:                               ; @.str.7
	.asciz	"cannot start thr_suspender error: %d\n"

	.no_dead_strip	_kthrdlk_init
.subsections_via_symbols
