	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syscallret
_syscallret:                            ## @syscallret
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_TDP_FORKING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	32(%rbx), %r14
	movq	_trap_enotcap@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_P2_TRAPCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_IN_CAPABILITY_MODE
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	16(%rbx), %eax
	movq	_ENOTCAPABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	_ECAPMODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
LBB0_5:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_ksiginfo_init_trap
	movq	_SIGTRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -36(%rbp)
	movq	_TRAP_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_trapsignal
LBB0_6:
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	callq	_userret
	movq	_P_TRACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_7
## %bb.9:
	movq	%r14, %rdi
	callq	_PROC_LOCK
	movq	_TDB_SCX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_PROC_UNLOCK
	movq	_S_SCX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	callq	_STOPEVENT
	movq	%r14, %rdi
	callq	_PROC_LOCK
	movq	_TDB_FORK@GOTPCREL(%rip), %rax
	movq	_TDB_EXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 4(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	_PTRACE_SCX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_12
LBB0_11:
	movq	_SIGTRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ptracestop
	jmp	LBB0_12
LBB0_7:
	movq	_S_SCX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	callq	_STOPEVENT
	movq	_TDB_EXEC@GOTPCREL(%rip), %rax
	movq	_TDB_FORK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_13
## %bb.8:
	movq	%r14, %rdi
	callq	_PROC_LOCK
LBB0_12:
	movq	_TDB_SCX@GOTPCREL(%rip), %rax
	movq	_TDB_EXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TDB_FORK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 4(%rbx)
	movq	%r14, %rdi
	callq	_PROC_UNLOCK
LBB0_13:
	movq	_TDP_RFPPWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_fork_rfppwait
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDP_FORKING,4,2                ## @TDP_FORKING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork() did not clear TDP_FORKING upon completion"

	.comm	_trap_enotcap,8,3               ## @trap_enotcap
	.comm	_P2_TRAPCAP,4,2                 ## @P2_TRAPCAP
	.comm	_ENOTCAPABLE,4,2                ## @ENOTCAPABLE
	.comm	_ECAPMODE,4,2                   ## @ECAPMODE
	.comm	_SIGTRAP,4,2                    ## @SIGTRAP
	.comm	_TRAP_CAP,4,2                   ## @TRAP_CAP
	.comm	_P_TRACED,4,2                   ## @P_TRACED
	.comm	_TDB_SCX,4,2                    ## @TDB_SCX
	.comm	_S_SCX,4,2                      ## @S_SCX
	.comm	_TDB_EXEC,4,2                   ## @TDB_EXEC
	.comm	_TDB_FORK,4,2                   ## @TDB_FORK
	.comm	_PTRACE_SCX,4,2                 ## @PTRACE_SCX
	.comm	_TDP_RFPPWAIT,4,2               ## @TDP_RFPPWAIT
	.comm	_KTR_SYSRET,4,2                 ## @KTR_SYSRET
	.no_dead_strip	_syscallret
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syscallret
_syscallret:                            ; @syscallret
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TDP_FORKING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TDP_FORKING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x20, [x19, #32]
Lloh5:
	adrp	x8, _trap_enotcap@GOTPAGE
Lloh6:
	ldr	x8, [x8, _trap_enotcap@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _P2_TRAPCAP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _P2_TRAPCAP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_IN_CAPABILITY_MODE
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x19, #16]
Lloh11:
	adrp	x9, _ENOTCAPABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ENOTCAPABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _ECAPMODE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ECAPMODE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	x0, sp
	bl	_ksiginfo_init_trap
Lloh17:
	adrp	x8, _SIGTRAP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIGTRAP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w8, [x19, #16]
Lloh20:
	adrp	x9, _TRAP_CAP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TRAP_CAP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_trapsignal
LBB0_5:
	ldr	w1, [x19, #20]
	mov	x0, x19
	bl	_userret
	ldr	w8, [x20, #4]
Lloh23:
	adrp	x9, _P_TRACED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _P_TRACED@GOTPAGEOFF]
Lloh25:
	adrp	x22, _TDB_SCX@GOTPAGE
Lloh26:
	ldr	x22, [x22, _TDB_SCX@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x23, _TDB_EXEC@GOTPAGE
Lloh29:
	ldr	x23, [x23, _TDB_EXEC@GOTPAGEOFF]
Lloh30:
	adrp	x21, _TDB_FORK@GOTPAGE
Lloh31:
	ldr	x21, [x21, _TDB_FORK@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_PROC_LOCK
	ldr	w8, [x22]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_PROC_UNLOCK
Lloh32:
	adrp	x8, _S_SCX@GOTPAGE
Lloh33:
	ldr	x8, [x8, _S_SCX@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	mov	x0, x20
	bl	_STOPEVENT
	mov	x0, x20
	bl	_PROC_LOCK
	ldr	w8, [x19, #4]
	ldr	w9, [x21]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x20, #8]
Lloh35:
	adrp	x9, _PTRACE_SCX@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PTRACE_SCX@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_8:
Lloh38:
	adrp	x8, _SIGTRAP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SIGTRAP@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_ptracestop
	b	LBB0_11
LBB0_9:
Lloh41:
	adrp	x8, _S_SCX@GOTPAGE
Lloh42:
	ldr	x8, [x8, _S_SCX@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	mov	x0, x20
	bl	_STOPEVENT
	ldr	w8, [x19, #4]
	ldr	w9, [x23]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_PROC_LOCK
LBB0_11:
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_PROC_UNLOCK
LBB0_12:
	ldr	w8, [x19]
Lloh44:
	adrp	x9, _TDP_RFPPWAIT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _TDP_RFPPWAIT@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	___predict_false
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_fork_rfppwait
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_TDP_FORKING,4,2                ; @TDP_FORKING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork() did not clear TDP_FORKING upon completion"

	.comm	_trap_enotcap,8,3               ; @trap_enotcap
	.comm	_P2_TRAPCAP,4,2                 ; @P2_TRAPCAP
	.comm	_ENOTCAPABLE,4,2                ; @ENOTCAPABLE
	.comm	_ECAPMODE,4,2                   ; @ECAPMODE
	.comm	_SIGTRAP,4,2                    ; @SIGTRAP
	.comm	_TRAP_CAP,4,2                   ; @TRAP_CAP
	.comm	_P_TRACED,4,2                   ; @P_TRACED
	.comm	_TDB_SCX,4,2                    ; @TDB_SCX
	.comm	_S_SCX,4,2                      ; @S_SCX
	.comm	_TDB_EXEC,4,2                   ; @TDB_EXEC
	.comm	_TDB_FORK,4,2                   ; @TDB_FORK
	.comm	_PTRACE_SCX,4,2                 ; @PTRACE_SCX
	.comm	_TDP_RFPPWAIT,4,2               ; @TDP_RFPPWAIT
	.comm	_KTR_SYSRET,4,2                 ; @KTR_SYSRET
	.no_dead_strip	_syscallret
.subsections_via_symbols
