	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pid_put_sample
_pid_put_sample:                        ## @pid_put_sample
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	callq	_find_create_pid
	movq	%rax, %r14
	movq	24(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movl	$32, %edi
	callq	_zalloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, 24(%r14)
	movq	16(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, 16(%r14)
LBB0_2:
	movl	$32, %edi
	callq	_zalloc
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r12, 24(%r15)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%r15)
	movl	%r13d, (%r15)
	movq	16(%rbx), %rax
	movq	%rax, 8(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15)
	movq	%r15, 16(%rbx)
	movq	_TYPE_RUNNING@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_6
## %bb.3:
	testq	%r12, %r12
	jle	LBB0_6
## %bb.4:
	movq	%rcx, %rax
	cmpq	%r12, %rcx
	jle	LBB0_6
## %bb.5:
	subl	%r12d, %eax
	addl	%eax, 8(%rbx)
	addl	%eax, 8(%r14)
LBB0_6:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpq	%r12, %rax
	jle	LBB0_9
LBB0_8:
	movq	%r12, (%rbx)
LBB0_9:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	cmpq	%r12, %rax
	jle	LBB0_12
LBB0_11:
	movq	%r12, (%r14)
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_RUNNING,4,2               ## @TYPE_RUNNING
	.no_dead_strip	_pid_put_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pid_put_sample
_pid_put_sample:                        ; @pid_put_sample
	.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	x21, x4
	mov	x19, x3
	mov	x24, x2
	mov	x23, x1
	bl	_find_create_pid
	mov	x20, x0
	ldr	x22, [x0, #24]
	cbnz	x22, LBB0_2
; %bb.1:
	mov	w0, #32
	bl	_zalloc
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #16]
	str	x8, [x22, #24]
	stp	x22, x22, [x20, #16]
LBB0_2:
	mov	w0, #32
	bl	_zalloc
	mov	x25, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	str	x19, [x25, #24]
	ldr	x8, [x22, #16]
	stp	x8, x21, [x25, #8]
	stp	w23, w24, [x25]
	str	x25, [x22, #16]
Lloh0:
	adrp	x8, _TYPE_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	ccmp	x19, #1, #8, eq
	ccmp	x21, x19, #4, ge
	b.le	LBB0_4
; %bb.3:
	ldr	w8, [x22, #8]
	sub	w9, w21, w19
	add	w8, w8, w9
	str	w8, [x22, #8]
	ldr	w8, [x20, #8]
	add	w8, w8, w9
	str	w8, [x20, #8]
LBB0_4:
	ldr	x8, [x22]
	cmp	x8, #0
	ccmp	x8, x19, #0, ne
	b.le	LBB0_6
; %bb.5:
	str	x19, [x22]
LBB0_6:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.7:
	cmp	x8, x19
	b.le	LBB0_9
LBB0_8:
	str	x19, [x20]
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_RUNNING,4,2               ; @TYPE_RUNNING
	.no_dead_strip	_pid_put_sample
.subsections_via_symbols
