	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function daemon_create_workers
_daemon_create_workers:                 ## @daemon_create_workers
	.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, %r12
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 16(%r12)
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_log_assert
	cmpl	$0, 48(%r12)
	jne	LBB0_7
## %bb.4:
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_getpid
	xorl	%eax, %ebx
	xorl	$1080, %ebx                     ## imm = 0x438
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_ub_initstate
	movl	%eax, 48(%r12)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_fatal_exit
	movl	48(%r12), %eax
LBB0_6:
	movl	%eax, %edi
	callq	_ub_random
	movl	%eax, %edi
	callq	_hash_set_raninit
LBB0_7:
	movl	$65536, %edi                    ## imm = 0x10000
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal_exit
LBB0_9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_daemon_get_shufport
	movl	%eax, %edx
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_verbose
	movq	16(%r12), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movl	$1, %esi
	cmovnel	%eax, %esi
	movl	%esi, (%r12)
	cmpq	$0, 40(%r12)
	je	LBB0_12
## %bb.10:
	movl	32(%r12), %edx
	cmpl	%edx, %esi
	jge	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	callq	_log_warn
	movl	32(%r12), %esi
	movl	%esi, (%r12)
LBB0_12:
	movslq	%esi, %rdi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal_exit
LBB0_14:
	movq	16(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	callq	_fatal_exit
LBB0_16:
	movl	(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_21
## %bb.17:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movslq	(%r12), %rsi
	cmpq	%rsi, %r14
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r13
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movslq	%eax, %rdi
	leaq	(%r15,%rdi,4), %rcx
	incq	%r14
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %eax
	cltd
	idivl	%esi
	subl	%edi, %eax
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rcx, %rdx
	movl	%eax, %ecx
	callq	_worker_create
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	_fatal_exit
	jmp	LBB0_20
LBB0_21:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not init random generator"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory during daemon init"

	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.2:                               ## @.str.2
	.asciz	"total of %d outgoing ports available"

L_.str.3:                               ## @.str.3
	.asciz	"cannot reduce num-threads to %d because so-reuseport so continuing with %d threads."

L_.str.4:                               ## @.str.4
	.asciz	"dnstap enabled in config but not built with dnstap support"

L_.str.5:                               ## @.str.5
	.asciz	"could not create worker"

	.no_dead_strip	_daemon_create_workers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function daemon_create_workers
_daemon_create_workers:                 ; @daemon_create_workers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
LBB0_2:
	bl	_log_assert
	ldr	w8, [x19, #48]
	cbnz	w8, LBB0_6
; %bb.3:
	mov	x0, #0
	bl	_time
	mov	x20, x0
	bl	_getpid
	eor	w8, w0, w20
	mov	w9, #1080
	eor	w0, w8, w9
	mov	x1, #0
	bl	_ub_initstate
	str	w0, [x19, #48]
	cbnz	w0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_exit
	ldr	w0, [x19, #48]
LBB0_5:
	bl	_ub_random
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_hash_set_raninit
LBB0_6:
	mov	w0, #65536
	mov	w1, #4
	bl	_calloc
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal_exit
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_daemon_get_shufport
	mov	x21, x0
Lloh4:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_verbose
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #0
	csinc	w1, w8, wzr, ne
	str	w1, [x19]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w2, [x19, #32]
	cmp	w1, w2
	b.ge	LBB0_11
; %bb.10:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_log_warn
	ldr	w1, [x19, #32]
	str	w1, [x19]
LBB0_11:
	sxtw	x0, w1
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_13
; %bb.12:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal_exit
LBB0_13:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_15
; %bb.14:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_fatal_exit
LBB0_15:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	w24, #0
	mov	x22, #0
Lloh15:
	adrp	x23, l_.str.5@PAGE
Lloh16:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	w24, w24, w21
	cmp	x22, x8
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sdiv	w9, w24, w8
	add	x2, x20, w9, sxtw #2
	add	w10, w21, w24
	sdiv	w8, w10, w8
	sub	w3, w8, w9
	mov	x0, x19
	mov	x1, x22
	bl	_worker_create
	ldr	x8, [x19, #8]
	str	x0, [x8, x22, lsl #3]
	cbnz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x23
	bl	_fatal_exit
	b	LBB0_17
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not init random generator"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory during daemon init"

	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.2:                               ; @.str.2
	.asciz	"total of %d outgoing ports available"

l_.str.3:                               ; @.str.3
	.asciz	"cannot reduce num-threads to %d because so-reuseport so continuing with %d threads."

l_.str.4:                               ; @.str.4
	.asciz	"dnstap enabled in config but not built with dnstap support"

l_.str.5:                               ; @.str.5
	.asciz	"could not create worker"

	.no_dead_strip	_daemon_create_workers
.subsections_via_symbols
