	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getMessageFromWorker
_getMessageFromWorker:                  ## @getMessageFromWorker
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	$0, -64(%rbp)
	leaq	-44(%rbp), %rdi
	callq	_FD_ZERO
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	8(%r12), %rax
	movl	$-1, %ebx
	movl	$8, %r14d
	xorl	%r15d, %r15d
	movq	_WRKR_TERMINATED@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	addq	$16, %r14
	cmpq	%rdx, %r15
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rax,%r14), %rdx
	cmpq	(%r13), %rdx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax,%r14), %edi
	leaq	-44(%rbp), %rsi
	callq	_FD_SET
	movq	8(%r12), %rax
	movl	(%rax,%r14), %ecx
	cmpl	%ebx, %ecx
	cmovgl	%ecx, %ebx
	movl	(%r12), %ecx
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %ebx
LBB0_6:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	leaq	-44(%rbp), %rsi
	movl	%ebx, %edi
	callq	_select_loop
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_Assert
	jmp	LBB0_9
LBB0_8:
	incl	%ebx
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %rsi
	leaq	-64(%rbp), %r8
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_17
LBB0_9:
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.11:
	cmpl	$0, (%r12)
	jg	LBB0_12
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
	cmpl	$0, (%r12)
	jle	LBB0_16
LBB0_12:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx), %edi
	movq	%r14, %rsi
	callq	_FD_ISSET
	testl	%eax, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_13
LBB0_16:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_Assert
	jmp	LBB0_17
LBB0_14:
	movq	8(%r12), %rax
	movl	(%rax,%rbx), %edi
	callq	_readMessageFromPipe
	movq	%rax, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
LBB0_17:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRKR_TERMINATED,8,3            ## @WRKR_TERMINATED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"select() failed: %m"

	.no_dead_strip	_getMessageFromWorker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getMessageFromWorker
_getMessageFromWorker:                  ; @getMessageFromWorker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp]
	add	x0, sp, #12
	bl	_FD_ZERO
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x20, #8]
	mov	w22, #-1
Lloh0:
	adrp	x25, _WRKR_TERMINATED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WRKR_TERMINATED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x24, w9, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x23]
	ldr	x11, [x25]
	cmp	x10, x11
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x23
	ldr	w0, [x8, #8]
	add	x1, sp, #12
	bl	_FD_SET
	ldr	x8, [x20, #8]
	add	x9, x8, x23
	ldr	w9, [x9, #8]
	cmp	w9, w22
	csel	w22, w9, w22, gt
	ldr	w9, [x20]
	b	LBB0_2
LBB0_5:
	mov	w22, #-1
LBB0_6:
	cbz	w21, LBB0_8
; %bb.7:
	add	x1, sp, #12
	mov	x0, x22
	bl	_select_loop
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_Assert
	b	LBB0_9
LBB0_8:
	add	w0, w22, #1
	add	x1, sp, #12
	mov	x4, sp
	mov	x2, #0
	mov	x3, #0
	bl	_select
	mov	x21, x0
	cbz	w0, LBB0_16
LBB0_9:
	tbz	w21, #31, LBB0_11
; %bb.10:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_11:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x21, #0
	mov	w22, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x22]
	add	x1, sp, #12
	bl	_FD_ISSET
	cbnz	w0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #16
	cmp	x21, x8
	b.lt	LBB0_13
LBB0_15:
	mov	w0, #0
	bl	_Assert
LBB0_16:
	mov	x0, #0
	b	LBB0_18
LBB0_17:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x22]
	bl	_readMessageFromPipe
	str	w21, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_WRKR_TERMINATED,8,3            ; @WRKR_TERMINATED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"select() failed: %m"

	.no_dead_strip	_getMessageFromWorker
.subsections_via_symbols
