	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function signal_thread
_signal_thread:                         ## @signal_thread
	.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
	movq	%rdi, %r15
	movq	_sigusr1_sem@GOTPCREL(%rip), %r14
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_sem_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	sete	%al
	movq	(%r12), %rcx
	cmpq	(%r13), %rcx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_CHILD_REQUIRE
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	cmpq	%rax, (%r12)
	je	LBB0_1
LBB0_3:
	movq	%r15, %rdi
	callq	_pthread_barrier_wait
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_sigemptyset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHILD_REQUIRE
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sigaddset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHILD_REQUIRE
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_pthread_sigmask
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHILD_REQUIRE
	movq	%r15, %rdi
	callq	_pthread_barrier_wait
	movq	%r15, %rdi
	callq	_pthread_barrier_wait
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sigusr1_sem,4,2                ## @sigusr1_sem
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.no_dead_strip	_signal_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function signal_thread
_signal_thread:                         ; @signal_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _sigusr1_sem@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sigusr1_sem@GOTPAGEOFF]
Lloh2:
	adrp	x22, _errno@GOTPAGE
Lloh3:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x23, _EINTR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_sem_wait
	mov	x21, x0
	cmp	w0, #0
	ldr	x8, [x22]
	ldr	x9, [x23]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_CHILD_REQUIRE
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	w21, #0
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_1
; %bb.2:
	mov	x0, x19
	bl	_pthread_barrier_wait
	add	x0, sp, #12
	bl	_sigemptyset
	cmp	x0, #0
	cset	w0, eq
	bl	_CHILD_REQUIRE
Lloh6:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_sigaddset
	cmp	x0, #0
	cset	w0, eq
	bl	_CHILD_REQUIRE
Lloh9:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	_pthread_sigmask
	cmp	x0, #0
	cset	w0, eq
	bl	_CHILD_REQUIRE
	mov	x0, x19
	bl	_pthread_barrier_wait
	mov	x0, x19
	bl	_pthread_barrier_wait
	mov	x0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sigusr1_sem,4,2                ; @sigusr1_sem
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.no_dead_strip	_signal_thread
.subsections_via_symbols
