	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enslave                        ## -- Begin function enslave
	.p2align	4, 0x90
_enslave:                               ## @enslave
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_getpid
	movq	_master@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dumpabort@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sigpipe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tperror@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_SIGUSR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_proceed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_SLAVES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.1:
	movl	$1, %r14d
	movq	_slaves@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	-56(%rbp), %edi
	movl	%ebx, %esi
	callq	_doslave
	movq	_X_FINOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Exit
	movq	_SLAVES@GOTPCREL(%rip), %r13
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r13), %rcx
	incq	%r14
	addq	$24, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	_slp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	(%r12), %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rcx, %rax
	xorl	%ecx, %ecx
	cmpq	%rbx, %rax
	sete	%cl
	movq	_caught@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	leaq	-56(%rbp), %rcx
	callq	_socketpair
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_fork
	movq	(%r12), %rcx
	leaq	(%rbx,%rbx,2), %rdx
	movq	%rax, (%rcx,%rdx,8)
	testq	%rax, %rax
	jns	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_quit
	movq	(%r12), %rcx
	leaq	(%rbx,%rbx,2), %rax
	movq	(%rcx,%rax,8), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %edx
	leaq	(%rbx,%rbx,2), %rsi
	movl	%edx, 8(%rcx,%rsi,8)
	movq	$0, 16(%rcx,%rsi,8)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rcx), %edi
	callq	_close
	cmpq	$1, %r14
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movl	32(%rax,%r13), %edi
	callq	_close
	addq	$24, %r13
	cmpq	%r13, %r15
	jne	LBB0_8
	jmp	LBB0_9
LBB0_11:
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.12:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	movq	_write@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	(%r12), %r8
	movl	(%r8,%r14), %esi
	incq	%rbx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%r8,%rax,8), %rdx
	movl	$8, %ecx
	callq	_atomic
	movslq	(%r13), %rcx
	addq	$24, %r14
	cmpq	%rcx, %rbx
	jl	LBB0_13
LBB0_14:
	movq	_master@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_master,8,3                     ## @master
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_dumpabort,4,2                  ## @dumpabort
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_sigpipe,4,2                    ## @sigpipe
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_tperror,4,2                    ## @tperror
	.comm	_SIGUSR2,4,2                    ## @SIGUSR2
	.comm	_proceed,4,2                    ## @proceed
	.comm	_SLAVES,4,2                     ## @SLAVES
	.comm	_slp,8,3                        ## @slp
	.comm	_slaves,8,3                     ## @slaves
	.comm	_caught,4,2                     ## @caught
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many slaves, %d (recompile smaller): %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_X_FINOK,4,2                    ## @X_FINOK
	.comm	_write,4,2                      ## @write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enslave                        ; -- Begin function enslave
	.p2align	2
_enslave:                               ; @enslave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_getpid
Lloh3:
	adrp	x25, _master@GOTPAGE
Lloh4:
	ldr	x25, [x25, _master@GOTPAGEOFF]
	str	x0, [x25]
Lloh5:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _dumpabort@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dumpabort@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_signal
Lloh11:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _sigpipe@GOTPAGE
Lloh15:
	ldr	x8, [x8, _sigpipe@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_signal
Lloh17:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _tperror@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tperror@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_signal
Lloh23:
	adrp	x8, _SIGUSR2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SIGUSR2@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _proceed@GOTPAGE
Lloh27:
	ldr	x8, [x8, _proceed@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_signal
Lloh29:
	adrp	x22, _SLAVES@GOTPAGE
Lloh30:
	ldr	x22, [x22, _SLAVES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x24, #0
	mov	x19, #0
	mov	w25, #1
Lloh31:
	adrp	x27, _slp@GOTPAGE
Lloh32:
	ldr	x27, [x27, _slp@GOTPAGEOFF]
Lloh33:
	adrp	x23, _slaves@GOTPAGE
Lloh34:
	ldr	x23, [x23, _slaves@GOTPAGEOFF]
Lloh35:
	adrp	x28, _caught@GOTPAGE
Lloh36:
	ldr	x28, [x28, _caught@GOTPAGEOFF]
Lloh37:
	adrp	x21, _AF_UNIX@GOTPAGE
Lloh38:
	ldr	x21, [x21, _AF_UNIX@GOTPAGEOFF]
Lloh39:
	adrp	x20, _SOCK_STREAM@GOTPAGE
Lloh40:
	ldr	x20, [x20, _SOCK_STREAM@GOTPAGEOFF]
	mov	w26, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh41:
	adrp	x8, _SIGINT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	bl	_signal
	ldr	w0, [sp]
	mov	x1, x19
	bl	_doslave
Lloh47:
	adrp	x8, _X_FINOK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _X_FINOK@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_Exit
	mov	x27, x28
	mov	x28, x21
	mov	x21, x20
	mov	x20, x22
Lloh50:
	adrp	x22, _SLAVES@GOTPAGE
Lloh51:
	ldr	x22, [x22, _SLAVES@GOTPAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x22]
	add	x25, x25, #1
	add	x24, x24, #24
	cmp	x19, x8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x27]
	ldr	x9, [x23]
	sub	x8, x8, x9
	asr	x8, x8, #3
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	mul	x8, x8, x9
	cmp	x8, x19
	cset	w8, eq
	str	w8, [x28]
	ldr	w0, [x21]
	ldr	w1, [x20]
	mov	x3, sp
	mov	w2, #0
	bl	_socketpair
	tbnz	x0, #63, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_fork
	ldr	x8, [x23]
	mul	x9, x19, x26
	str	x0, [x8, x9]
	tbz	x0, #63, LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh52:
	adrp	x8, _errno@GOTPAGE
Lloh53:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh55:
	adrp	x0, l_.str@PAGE
Lloh56:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_quit
	ldr	x8, [x23]
	mov	w9, #24
	mul	x9, x19, x9
	ldr	x0, [x8, x9]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #4]
	mov	w26, #24
	mov	w10, #24
	madd	x10, x19, x10, x8
	str	w9, [x10, #8]
	str	xzr, [x10, #16]
	cbnz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x20
	mov	x20, x21
	mov	x21, x28
	mov	x28, x27
	ldr	w0, [x8, #8]
	bl	_close
	cmp	x25, #1
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	add	x8, x8, x27
	ldr	w0, [x8, #32]
	bl	_close
	add	x27, x27, #24
	cmp	x24, x27
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	cmp	w8, #1
Lloh57:
	adrp	x25, _master@GOTPAGE
Lloh58:
	ldr	x25, [x25, _master@GOTPAGEOFF]
	b.lt	LBB0_14
; %bb.12:
	mov	x19, #0
	mov	w20, #8
Lloh59:
	adrp	x21, _write@GOTPAGE
Lloh60:
	ldr	x21, [x21, _write@GOTPAGEOFF]
	mov	w24, #24
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x9, [x23]
	ldr	w1, [x9, x20]
	add	x19, x19, #1
	sdiv	w10, w19, w8
	msub	w8, w10, w8, w19
	umaddl	x2, w8, w24, x9
	mov	w3, #8
	bl	_atomic
	ldrsw	x8, [x22]
	add	x20, x20, #24
	cmp	x19, x8
	b.lt	LBB0_13
LBB0_14:
	str	xzr, [x25]
	ldr	x8, [sp, #8]
Lloh61:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh62:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_master,8,3                     ; @master
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_dumpabort,4,2                  ; @dumpabort
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_sigpipe,4,2                    ; @sigpipe
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_tperror,4,2                    ; @tperror
	.comm	_SIGUSR2,4,2                    ; @SIGUSR2
	.comm	_proceed,4,2                    ; @proceed
	.comm	_SLAVES,4,2                     ; @SLAVES
	.comm	_slp,8,3                        ; @slp
	.comm	_slaves,8,3                     ; @slaves
	.comm	_caught,4,2                     ; @caught
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many slaves, %d (recompile smaller): %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_X_FINOK,4,2                    ; @X_FINOK
	.comm	_write,4,2                      ; @write
.subsections_via_symbols
