	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exit_syscall
_exit_syscall:                          ## @exit_syscall
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	cmpl	$0, 44(%rbx)
	je	LBB0_16
## %bb.1:
	movq	%rsi, %r15
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%rbx), %rsi
	callq	_clock_gettime
	movq	32(%rbx), %r14
	movq	_PT_GET_SC_RET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	leaq	-64(%rbp), %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$16, %ecx
	callq	_ptrace
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_free_syscall
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r15
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.4:
	xorl	%r13d, %r13d
	movq	_OUT@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdi,%r13), %rax
	movl	(%rsi,%rax,4), %edx
	leaq	-88(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_asprintf
	movq	-88(%rbp), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r12,8)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	addq	$16, %r13
	cmpq	(%r15), %r12
	jae	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movl	(%r14), %eax
	testl	%eax, (%rdi,%r13)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -64(%rbp)
	movq	8(%rbx), %rsi
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r13, %rdi
	movl	-56(%rbp), %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_print_arg
	jmp	LBB0_9
LBB0_11:
	movq	-64(%rbp), %rsi
	movl	-56(%rbp), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_print_syscall_ret
	movq	%rbx, %rdi
	callq	_free_syscall
	movq	_PL_FLAG_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.12:
	leaq	16(%rbx), %rdi
	callq	_LIST_FIRST
	movq	_entries@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_LIST_NEXT
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%rbx), %edi
	callq	_find_abi
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:
	movq	_PT_DETACH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	jns	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_15:
	movq	%rbx, %rdi
	callq	_free_proc
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
	.comm	_PT_GET_SC_RET,4,2              ## @PT_GET_SC_RET
	.comm	_OUT,4,2                        ## @OUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%lx"

	.comm	_PL_FLAG_EXEC,4,2               ## @PL_FLAG_EXEC
	.comm	_entries,4,2                    ## @entries
	.comm	_PT_DETACH,4,2                  ## @PT_DETACH
L_.str.1:                               ## @.str.1
	.asciz	"Can not detach the process"

	.no_dead_strip	_exit_syscall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exit_syscall
_exit_syscall:                          ; @exit_syscall
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x21, [x0]
	ldr	w8, [x21, #44]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x21, #40
	bl	_clock_gettime
	ldr	x19, [x21, #32]
Lloh3:
	adrp	x8, _PT_GET_SC_RET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PT_GET_SC_RET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x21, #24]
	add	x2, sp, #16
	mov	w3, #16
	bl	_ptrace
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_free_syscall
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	ldr	x24, [x21, #16]
	ldr	x8, [x24]
	cbz	x8, LBB0_12
; %bb.5:
	mov	x25, #0
	mov	x26, #0
Lloh6:
	adrp	x27, _OUT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _OUT@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	ldr	w2, [x1, x8, lsl #2]
	add	x0, sp, #8
	mov	x1, x23
	bl	_asprintf
	ldr	x0, [sp, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
	str	x0, [x8, x26, lsl #3]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	ldr	x8, [x24]
	add	x25, x25, #16
	cmp	x26, x8
	b.hs	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	add	x0, x8, x25
	ldr	w9, [x0]
	ldr	w10, [x27]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [sp, #16]
	ldr	x1, [x21, #8]
	cbnz	x9, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [sp, #24]
	mov	x3, x22
	bl	_print_arg
	b	LBB0_7
LBB0_12:
	ldr	x1, [sp, #16]
	ldr	w2, [sp, #24]
	mov	x0, x22
	bl	_print_syscall_ret
	mov	x0, x21
	bl	_free_syscall
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _PL_FLAG_EXEC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PL_FLAG_EXEC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.13:
	add	x0, x19, #16
	bl	_LIST_FIRST
Lloh13:
	adrp	x8, _entries@GOTPAGE
Lloh14:
	ldr	x8, [x8, _entries@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_LIST_NEXT
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19]
	bl	_find_abi
	str	x0, [x19, #8]
	cbnz	x0, LBB0_3
; %bb.14:
Lloh16:
	adrp	x8, _PT_DETACH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PT_DETACH@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x19]
	mov	w2, #1
	mov	w3, #0
	bl	_ptrace
	tbz	x0, #63, LBB0_16
; %bb.15:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_16:
	mov	x0, x19
	bl	_free_proc
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
	.comm	_PT_GET_SC_RET,4,2              ; @PT_GET_SC_RET
	.comm	_OUT,4,2                        ; @OUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%lx"

	.comm	_PL_FLAG_EXEC,4,2               ; @PL_FLAG_EXEC
	.comm	_entries,4,2                    ; @entries
	.comm	_PT_DETACH,4,2                  ; @PT_DETACH
l_.str.1:                               ; @.str.1
	.asciz	"Can not detach the process"

	.no_dead_strip	_exit_syscall
.subsections_via_symbols
