	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	_SA_SIGINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	-28(%rbp), %rdi
	callq	_sigemptyset
	movq	_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_SIGRTMIN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigemptyset
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getpid
	movl	(%r14), %esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_sigqueue
	incl	%ebx
	cmpl	$-1, %eax
	jne	LBB0_1
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	movq	_SIG_UNBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	movq	_received@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	cmpl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SA_SIGINFO,4,2                 ## @SA_SIGINFO
	.comm	_handler,4,2                    ## @handler
	.comm	_SIGRTMIN,4,2                   ## @SIGRTMIN
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"errno != EAGAIN"

	.comm	_SIG_UNBLOCK,4,2                ## @SIG_UNBLOCK
	.comm	_received,4,2                   ## @received
L_.str.1:                               ## @.str.1
	.asciz	"error, signal lost"

L_str:                                  ## @str
	.asciz	"OK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
Lloh0:
	adrp	x8, _SA_SIGINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_SIGINFO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x8, sp, #16
	orr	x0, x8, #0x4
	bl	_sigemptyset
Lloh3:
	adrp	x8, _handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _handler@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh6:
	adrp	x20, _SIGRTMIN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SIGRTMIN@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x1, sp, #16
	mov	x2, #0
	bl	_sigaction
	add	x0, sp, #12
	bl	_sigemptyset
	ldr	w1, [x20]
	add	x0, sp, #12
	bl	_sigaddset
Lloh8:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	_sigprocmask
	mov	x19, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_getpid
	ldr	w1, [x20]
	mov	x2, x19
	bl	_sigqueue
	add	x19, x19, #1
	cmn	w0, #1
	b.ne	LBB0_1
; %bb.2:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
Lloh19:
	adrp	x8, _SIG_UNBLOCK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SIG_UNBLOCK@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	_sigprocmask
Lloh22:
	adrp	x8, _received@GOTPAGE
Lloh23:
	ldr	x8, [x8, _received@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	add	w8, w8, #1
	cmp	w8, w19
	b.eq	LBB0_6
; %bb.5:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
Lloh27:
	adrp	x0, l_str@PAGE
Lloh28:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SA_SIGINFO,4,2                 ; @SA_SIGINFO
	.comm	_handler,4,2                    ; @handler
	.comm	_SIGRTMIN,4,2                   ; @SIGRTMIN
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"errno != EAGAIN"

	.comm	_SIG_UNBLOCK,4,2                ; @SIG_UNBLOCK
	.comm	_received,4,2                   ; @received
l_.str.1:                               ; @.str.1
	.asciz	"error, signal lost"

l_str:                                  ; @str
	.asciz	"OK"

.subsections_via_symbols
