	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_new_thread_handler             ## -- Begin function new_thread_handler
	.p2align	4, 0x90
_new_thread_handler:                    ## @new_thread_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	24(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_schedule_tail
	movq	(%rbx), %rdx
LBB0_2:
	movq	$0, 24(%rdx)
	movq	8(%rdx), %rdi
	movq	16(%rdx), %rsi
	addq	$4, %rdx
	callq	_run_kernel_thread
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_interrupt_end
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_userspace                      ## TAILCALL
LBB0_4:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_do_exit                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_new_thread_handler             ; -- Begin function new_thread_handler
	.p2align	2
_new_thread_handler:                    ; @new_thread_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
Lloh0:
	adrp	x19, _current@GOTPAGE
Lloh1:
	ldr	x19, [x19, _current@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x0, [x8, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_schedule_tail
	ldr	x8, [x19]
LBB0_2:
	str	xzr, [x8, #24]
	add	x2, x8, #4
	ldp	x0, x1, [x8, #8]
	bl	_run_kernel_thread
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	bl	_interrupt_end
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_userspace
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_do_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
.subsections_via_symbols
