	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_order
_wait_order:                            ## @wait_order
	.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
	movl	%edi, %r14d
	movq	_global_sig_receive@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r15
	movq	_global_signal_val@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r12)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, -48(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_EVENT_WAIT_MSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_poll
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_1
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movl	$1, (%r12)
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_global_run_operation@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.5:
	movq	_cond_wakeup@GOTPCREL(%rip), %rdi
	callq	_pthread_cond_broadcast
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_global_sig_receive,4,2         ## @global_sig_receive
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_EVENT_WAIT_MSEC,4,2            ## @EVENT_WAIT_MSEC
	.comm	_global_signal_val,8,3          ## @global_signal_val
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Receive interrupt %d\n"

	.comm	_global_run_operation,4,2       ## @global_run_operation
	.comm	_cond_wakeup,4,2                ## @cond_wakeup
L_.str.1:                               ## @.str.1
	.asciz	"Polling error\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_wait_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_order
_wait_order:                            ; @wait_order
	.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, _global_sig_receive@GOTPAGE
Lloh1:
	ldr	x20, [x20, _global_sig_receive@GOTPAGEOFF]
Lloh2:
	adrp	x21, _POLLIN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _POLLIN@GOTPAGEOFF]
Lloh4:
	adrp	x22, _EVENT_WAIT_MSEC@GOTPAGE
Lloh5:
	ldr	x22, [x22, _EVENT_WAIT_MSEC@GOTPAGEOFF]
Lloh6:
	adrp	x23, _global_signal_val@GOTPAGE
Lloh7:
	ldr	x23, [x23, _global_signal_val@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21]
	stp	w19, w8, [sp, #8]
	ldr	w2, [x22]
	add	x0, sp, #8
	mov	w1, #1
	bl	_poll
	ldr	x1, [x23]
	cbnz	x1, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w0, #31, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w0, LBB0_1
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	mov	w8, #1
	str	w8, [x20]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh10:
	adrp	x8, _global_run_operation@GOTPAGE
Lloh11:
	ldr	x8, [x8, _global_run_operation@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbnz	w8, LBB0_8
; %bb.7:
Lloh13:
	adrp	x0, _cond_wakeup@GOTPAGE
Lloh14:
	ldr	x0, [x0, _cond_wakeup@GOTPAGEOFF]
	bl	_pthread_cond_broadcast
LBB0_8:
	mov	w0, #-1
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
	add	sp, sp, #80
	ret
LBB0_10:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh17:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_global_sig_receive,4,2         ; @global_sig_receive
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_EVENT_WAIT_MSEC,4,2            ; @EVENT_WAIT_MSEC
	.comm	_global_signal_val,8,3          ; @global_signal_val
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Receive interrupt %d\n"

	.comm	_global_run_operation,4,2       ; @global_run_operation
	.comm	_cond_wakeup,4,2                ; @cond_wakeup
l_.str.1:                               ; @.str.1
	.asciz	"Polling error\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_wait_order
.subsections_via_symbols
