	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___waitid                       ## -- Begin function __waitid
	.p2align	4, 0x90
___waitid:                              ## @__waitid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	___libc_interposing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_INTERPOS_wait6@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	leaq	-20(%rbp), %rdx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	*(%rax,%rbx,8)
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %ebx
	sarl	$31, %ebx
	andl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___libc_interposing,8,3         ## @__libc_interposing
	.comm	_INTERPOS_wait6,8,3             ## @INTERPOS_wait6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___waitid                       ; -- Begin function __waitid
	.p2align	2
___waitid:                              ; @__waitid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
Lloh0:
	adrp	x8, ___libc_interposing@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___libc_interposing@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _INTERPOS_wait6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTERPOS_wait6@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	add	x2, sp, #12
	mov	x4, #0
	mov	x5, x19
	blr	x8
	cbz	x19, LBB0_3
; %bb.1:
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	___libc_interposing,8,3         ; @__libc_interposing
	.comm	_INTERPOS_wait6,8,3             ; @INTERPOS_wait6
.subsections_via_symbols
