	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_signals
_check_signals:                         ## @check_signals
	.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
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	callq	_sigemptyset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_PJDLOG_VERIFY
	movq	%r14, %rdi
	movl	$130, %esi
	callq	_sigaddset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_PJDLOG_VERIFY
	movq	%r14, %rdi
	movl	$129, %esi
	callq	_sigaddset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_PJDLOG_VERIFY
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_sigaddset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_PJDLOG_VERIFY
	movq	%r14, %rdi
	movl	$131, %esi
	callq	_sigaddset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_PJDLOG_VERIFY
	leaq	-48(%rbp), %rbx
	leaq	L_.str(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_PJDLOG_ABORT
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_sigtimedwait
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$130, %eax
	jg	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_adist_reload
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$131, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_child_exit
	jmp	LBB0_1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_9
## %bb.5:
	movq	_sigexit_received@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_terminate_workers
	movq	_EX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sigexit_received,4,2           ## @sigexit_received
	.comm	_EX_OK,4,2                      ## @EX_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected signal (%d)."

	.no_dead_strip	_check_signals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_signals
_check_signals:                         ; @check_signals
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	stp	xzr, xzr, [sp, #16]
	add	x0, sp, #12
	bl	_sigemptyset
	cmp	x0, #0
	cset	w0, eq
	bl	_PJDLOG_VERIFY
	add	x0, sp, #12
	mov	w1, #130
	bl	_sigaddset
	cmp	x0, #0
	cset	w0, eq
	bl	_PJDLOG_VERIFY
	add	x0, sp, #12
	mov	w1, #129
	bl	_sigaddset
	cmp	x0, #0
	cset	w0, eq
	bl	_PJDLOG_VERIFY
	add	x0, sp, #12
	mov	w1, #128
	bl	_sigaddset
	cmp	x0, #0
	cset	w0, eq
	bl	_PJDLOG_VERIFY
	add	x0, sp, #12
	mov	w1, #131
	bl	_sigaddset
	cmp	x0, #0
	cset	w0, eq
	bl	_PJDLOG_VERIFY
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_PJDLOG_ABORT
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	add	x2, sp, #16
	mov	x1, #0
	bl	_sigtimedwait
	mov	x1, x0
	cmp	w0, #130
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_adist_reload
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w1, #131
	b.ne	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_child_exit
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmn	w1, #1
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w1, #128
	cmp	w8, #2
	b.hs	LBB0_1
; %bb.9:
Lloh2:
	adrp	x8, _sigexit_received@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sigexit_received@GOTPAGEOFF]
	mov	w9, #1
Lloh4:
	str	w9, [x8]
	bl	_terminate_workers
Lloh5:
	adrp	x8, _EX_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EX_OK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_exit
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_sigexit_received,4,2           ; @sigexit_received
	.comm	_EX_OK,4,2                      ; @EX_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected signal (%d)."

	.no_dead_strip	_check_signals
.subsections_via_symbols
