	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_thread                  ## -- Begin function kernel_thread
	.p2align	4, 0x90
_kernel_thread:                         ## @kernel_thread
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r12, -96(%rbp)
	movq	%r15, -88(%rbp)
	movq	___USER_DS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rax, -48(%rbp)
	movq	___KERNEL_PERCPU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	___KERNEL_STACK_CANARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$-1, -80(%rbp)
	movq	_kernel_thread_helper@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	___KERNEL_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_get_kernel_rpl
	orl	%r15d, %eax
	movl	%eax, -64(%rbp)
	movq	_X86_EFLAGS_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_X86_EFLAGS_SF@GOTPCREL(%rip), %rcx
	movq	_X86_EFLAGS_PF@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	$2, %eax
	movq	_CLONE_VM@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	movl	%eax, -60(%rbp)
	movq	_CLONE_UNTRACED@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_fork
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___USER_DS,8,3                  ## @__USER_DS
	.comm	___KERNEL_PERCPU,4,2            ## @__KERNEL_PERCPU
	.comm	___KERNEL_STACK_CANARY,4,2      ## @__KERNEL_STACK_CANARY
	.comm	_kernel_thread_helper,8,3       ## @kernel_thread_helper
	.comm	___KERNEL_CS,4,2                ## @__KERNEL_CS
	.comm	_X86_EFLAGS_IF,4,2              ## @X86_EFLAGS_IF
	.comm	_X86_EFLAGS_SF,4,2              ## @X86_EFLAGS_SF
	.comm	_X86_EFLAGS_PF,4,2              ## @X86_EFLAGS_PF
	.comm	_CLONE_VM,8,3                   ## @CLONE_VM
	.comm	_CLONE_UNTRACED,8,3             ## @CLONE_UNTRACED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_thread                  ; -- Begin function kernel_thread
	.p2align	2
_kernel_thread:                         ; @kernel_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	stp	x21, x20, [sp]
Lloh0:
	adrp	x8, ___USER_DS@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___USER_DS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #48]
Lloh3:
	adrp	x8, ___KERNEL_PERCPU@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___KERNEL_PERCPU@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, ___KERNEL_STACK_CANARY@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___KERNEL_STACK_CANARY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
	mov	w8, #-1
Lloh9:
	adrp	x9, _kernel_thread_helper@GOTPAGE
Lloh10:
	ldr	x9, [x9, _kernel_thread_helper@GOTPAGEOFF]
	str	w8, [sp, #16]
Lloh11:
	ldr	x8, [x9]
	str	x8, [sp, #24]
Lloh12:
	adrp	x8, ___KERNEL_CS@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___KERNEL_CS@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	bl	_get_kernel_rpl
	orr	w8, w0, w20
Lloh15:
	adrp	x9, _X86_EFLAGS_IF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _X86_EFLAGS_IF@GOTPAGEOFF]
Lloh17:
	adrp	x10, _X86_EFLAGS_SF@GOTPAGE
Lloh18:
	ldr	x10, [x10, _X86_EFLAGS_SF@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh21:
	adrp	x10, _X86_EFLAGS_PF@GOTPAGE
Lloh22:
	ldr	x10, [x10, _X86_EFLAGS_PF@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
	orr	w9, w9, #0x2
	stp	w8, w9, [sp, #32]
Lloh24:
	adrp	x8, _CLONE_VM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CLONE_VM@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	orr	x8, x8, x19
Lloh27:
	adrp	x9, _CLONE_UNTRACED@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CLONE_UNTRACED@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	orr	x0, x8, x9
	mov	x2, sp
	mov	w1, #0
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_do_fork
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	___USER_DS,8,3                  ; @__USER_DS
	.comm	___KERNEL_PERCPU,4,2            ; @__KERNEL_PERCPU
	.comm	___KERNEL_STACK_CANARY,4,2      ; @__KERNEL_STACK_CANARY
	.comm	_kernel_thread_helper,8,3       ; @kernel_thread_helper
	.comm	___KERNEL_CS,4,2                ; @__KERNEL_CS
	.comm	_X86_EFLAGS_IF,4,2              ; @X86_EFLAGS_IF
	.comm	_X86_EFLAGS_SF,4,2              ; @X86_EFLAGS_SF
	.comm	_X86_EFLAGS_PF,4,2              ; @X86_EFLAGS_PF
	.comm	_CLONE_VM,8,3                   ; @CLONE_VM
	.comm	_CLONE_UNTRACED,8,3             ; @CLONE_UNTRACED
.subsections_via_symbols
