	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_syscall_trace                  ## -- Begin function syscall_trace
	.p2align	4, 0x90
_syscall_trace:                         ## @syscall_trace
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	_current@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_PT_DTRACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	setne	%r12b
	testl	%esi, %esi
	setne	%r14b
	movl	16(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	movq	%r13, %rdi
	callq	_UPT_SYSCALL_RET
	movl	%eax, %edi
	callq	_AUDITSC_RESULT
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_UPT_SYSCALL_RET
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_audit_syscall_exit
	movq	_current@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_4:
	andb	%r12b, %r14b
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_send_sigtrap
	jmp	LBB0_6
LBB0_2:
	movq	_HOST_AUDIT_ARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_UPT_SYSCALL_NR
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_UPT_SYSCALL_ARG1
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_UPT_SYSCALL_ARG2
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_UPT_SYSCALL_ARG3
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_UPT_SYSCALL_ARG4
	movl	%r14d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_audit_syscall_entry
	movq	_current@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_6:
	movq	_TIF_SYSCALL_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_thread_flag
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	(%r15), %rax
	movl	(%rax), %eax
	movq	_PT_PTRACED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.8:
	movq	_PT_TRACESYSGOOD@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	setne	%dil
	movq	_SIGTRAP@GOTPCREL(%rip), %rax
	shll	$7, %edi
	orl	(%rax), %edi
	callq	_ptrace_notify
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:
	movq	_TIF_SIGPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_thread_flag
LBB0_10:
	movq	(%r15), %rsi
	movq	8(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movl	$1, %edx
	callq	_send_sig
	movq	(%r15), %rax
	movq	$0, 8(%rax)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_PT_DTRACE,4,2                  ## @PT_DTRACE
	.comm	_HOST_AUDIT_ARCH,4,2            ## @HOST_AUDIT_ARCH
	.comm	_TIF_SYSCALL_TRACE,4,2          ## @TIF_SYSCALL_TRACE
	.comm	_PT_PTRACED,4,2                 ## @PT_PTRACED
	.comm	_PT_TRACESYSGOOD,4,2            ## @PT_TRACESYSGOOD
	.comm	_SIGTRAP,4,2                    ## @SIGTRAP
	.comm	_TIF_SIGPENDING,4,2             ## @TIF_SIGPENDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_syscall_trace                  ; -- Begin function syscall_trace
	.p2align	2
_syscall_trace:                         ; @syscall_trace
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _current@GOTPAGE
Lloh1:
	ldr	x26, [x26, _current@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh2:
	adrp	x9, _PT_DTRACE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PT_DTRACE@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w10
	ccmp	w1, #0, #4, ne
	cset	w22, ne
	ldr	w0, [x8, #16]
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	cbz	w19, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_UPT_SYSCALL_RET
	bl	_AUDITSC_RESULT
	mov	x21, x0
	mov	x0, x20
	bl	_UPT_SYSCALL_RET
	mov	x1, x0
	mov	x0, x21
	bl	_audit_syscall_exit
LBB0_3:
	cbz	w22, LBB0_6
; %bb.4:
	ldr	x0, [x26]
	mov	x1, x20
	mov	w2, #0
	bl	_send_sigtrap
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _HOST_AUDIT_ARCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HOST_AUDIT_ARCH@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_UPT_SYSCALL_NR
	mov	x22, x0
	mov	x0, x20
	bl	_UPT_SYSCALL_ARG1
	mov	x23, x0
	mov	x0, x20
	bl	_UPT_SYSCALL_ARG2
	mov	x24, x0
	mov	x0, x20
	bl	_UPT_SYSCALL_ARG3
	mov	x25, x0
	mov	x0, x20
	bl	_UPT_SYSCALL_ARG4
	mov	x5, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_audit_syscall_entry
LBB0_6:
Lloh8:
	adrp	x8, _TIF_SYSCALL_TRACE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TIF_SYSCALL_TRACE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_test_thread_flag
	cbz	w0, LBB0_12
; %bb.7:
	ldr	x8, [x26]
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PT_PTRACED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PT_PTRACED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
Lloh14:
	adrp	x9, _PT_TRACESYSGOOD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PT_TRACESYSGOOD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
Lloh17:
	adrp	x9, _SIGTRAP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SIGTRAP@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w0, w9, w8, lsl #7
	bl	_ptrace_notify
	cbz	w19, LBB0_10
; %bb.9:
Lloh20:
	adrp	x8, _TIF_SIGPENDING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TIF_SIGPENDING@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_set_thread_flag
LBB0_10:
	ldr	x1, [x26]
	ldr	x0, [x1, #8]
	cbz	x0, LBB0_12
; %bb.11:
	mov	w2, #1
	bl	_send_sig
	ldr	x8, [x26]
	str	xzr, [x8, #8]
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_PT_DTRACE,4,2                  ; @PT_DTRACE
	.comm	_HOST_AUDIT_ARCH,4,2            ; @HOST_AUDIT_ARCH
	.comm	_TIF_SYSCALL_TRACE,4,2          ; @TIF_SYSCALL_TRACE
	.comm	_PT_PTRACED,4,2                 ; @PT_PTRACED
	.comm	_PT_TRACESYSGOOD,4,2            ; @PT_TRACESYSGOOD
	.comm	_SIGTRAP,4,2                    ; @SIGTRAP
	.comm	_TIF_SIGPENDING,4,2             ; @TIF_SIGPENDING
.subsections_via_symbols
