	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function work
LCPI0_0:
	.quad	-1                              ## 0xffffffffffffffff
	.quad	1000000000                      ## 0x3b9aca00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_work:                                  ## @work
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	__res@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_RES_INIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_3:
	movq	_RES_DNSRCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	callq	_res_init
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_workers_stop@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_25
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_max_random_sleep@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_randomsleep
	xorl	%eax, %eax
	callq	_my_arc4random_r
	testb	$1, %al
	leaq	L_.str.5(%rip), %r13
	leaq	L_.str.4(%rip), %rax
	cmoveq	%rax, %r13
	movq	_randwords@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_my_arc4random_r
	movq	_nrandwords@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx,%rdx,8), %r12
	xorl	%eax, %eax
	callq	_my_arc4random_r
	movabsq	$-6148914691236517205, %r14     ## imm = 0xAAAAAAAAAAAAAAAB
	imulq	%r14, %rax
	leaq	L_.str.5(%rip), %rbx
	movabsq	$6148914691236517205, %rcx      ## imm = 0x5555555555555555
	cmpq	%rcx, %rax
	ja	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_randwords@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_my_arc4random_r
	movq	_nrandwords@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx,%rdx,8), %rbx
	movabsq	$-6148914691236517205, %r14     ## imm = 0xAAAAAAAAAAAAAAAB
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_my_arc4random_r
	movq	%rax, %rcx
	mulq	%r14
	shrq	%rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	leaq	l_reltable.work(%rip), %rax
	movslq	(%rax,%rcx,4), %r9
	addq	%rax, %r9
	leaq	-56(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-112(%rbp), %rsi
	callq	_clock_gettime
	movq	-56(%rbp), %rdi
	movq	_hints@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	leaq	-88(%rbp), %rcx
	callq	_getaddrinfo
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	-80(%rbp), %rsi
	callq	_clock_gettime
	movdqa	-80(%rbp), %xmm0
	psubq	-112(%rbp), %xmm0
	movdqa	%xmm0, -80(%rbp)
	pextrq	$1, %xmm0, %rax
	testq	%rax, %rax
	js	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%xmm0, %rcx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	paddq	LCPI0_0(%rip), %xmm0
	movdqa	%xmm0, -80(%rbp)
	movq	%xmm0, %rcx
	pextrq	$1, %xmm0, %rax
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rdx
	cmpq	%rdx, %rcx
	jg	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rdx, %rax
	jle	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movdqa	-80(%rbp), %xmm0
	movdqu	%xmm0, (%r15)
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi
	callq	_free
	testl	%r14d, %r14d
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	movq	-88(%rbp), %rdi
	callq	_freeaddrinfo
	jmp	LBB0_24
LBB0_25:
	xorl	%edi, %edi
	callq	_pthread_exit
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	__res,4,2                       ## @_res
	.comm	_RES_INIT,4,2                   ## @RES_INIT
	.comm	_RES_DNSRCH,4,2                 ## @RES_DNSRCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net"

L_.str.1:                               ## @.str.1
	.asciz	"com"

L_.str.2:                               ## @.str.2
	.asciz	"org"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.work
l_reltable.work:
	.long	L_.str-l_reltable.work
	.long	L_.str.1-l_reltable.work
	.long	L_.str.2-l_reltable.work

	.comm	_max_random_sleep,4,2           ## @max_random_sleep
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"%s%s%s.%s"

L_.str.4:                               ## @.str.4
	.asciz	"www."

L_.str.5:                               ## @.str.5
	.space	1

	.comm	_randwords,8,3                  ## @randwords
	.comm	_nrandwords,8,3                 ## @nrandwords
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
	.comm	_hints,4,2                      ## @hints
	.comm	_workers_stop,4,2               ## @workers_stop
	.no_dead_strip	_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function work
_work:                                  ; @work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, __res@GOTPAGE
Lloh1:
	ldr	x20, [x20, __res@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _RES_INIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RES_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
Lloh5:
	adrp	x9, _RES_DNSRCH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RES_DNSRCH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x20]
	b	LBB0_3
LBB0_2:
	bl	_res_init
	cbz	x0, LBB0_18
LBB0_3:
Lloh8:
	adrp	x25, l_.str.5@PAGE
Lloh9:
	add	x25, x25, l_.str.5@PAGEOFF
	add	x27, x19, #8
Lloh10:
	adrp	x28, _randwords@GOTPAGE
Lloh11:
	ldr	x28, [x28, _randwords@GOTPAGEOFF]
Lloh12:
	adrp	x24, _nrandwords@GOTPAGE
Lloh13:
	ldr	x24, [x24, _nrandwords@GOTPAGEOFF]
	mov	x26, #-6148914691236517206
	movk	x26, #43691
Lloh14:
	adrp	x20, _CLOCK_REALTIME@GOTPAGE
Lloh15:
	ldr	x20, [x20, _CLOCK_REALTIME@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh16:
	adrp	x8, _workers_stop@GOTPAGE
Lloh17:
	ldr	x8, [x8, _workers_stop@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cbnz	w8, LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
Lloh19:
	adrp	x8, _max_random_sleep@GOTPAGE
Lloh20:
	ldr	x8, [x8, _max_random_sleep@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_randomsleep
	bl	_my_arc4random_r
	tst	x0, #0x1
Lloh22:
	adrp	x8, l_.str.4@PAGE
Lloh23:
	add	x8, x8, l_.str.4@PAGEOFF
	csel	x21, x8, x25, eq
	ldr	x22, [x28]
	bl	_my_arc4random_r
	ldr	x8, [x24]
	udiv	x9, x0, x8
	msub	x8, x9, x8, x0
	ldr	x22, [x22, x8, lsl #3]
	bl	_my_arc4random_r
	mul	x8, x0, x26
	mov	x23, x25
	mov	x9, #6148914691236517205
	cmp	x8, x9
	b.hi	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x28]
	bl	_my_arc4random_r
	ldr	x8, [x24]
	udiv	x9, x0, x8
	msub	x8, x9, x8, x0
	ldr	x23, [x23, x8, lsl #3]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_my_arc4random_r
	umulh	x8, x0, x26
	lsr	x8, x8, #1
	add	x8, x8, x8, lsl #1
	sub	x8, x0, x8
Lloh24:
	adrp	x9, l___const.work.suffixes@PAGE
Lloh25:
	add	x9, x9, l___const.work.suffixes@PAGEOFF
	ldr	x5, [x9, x8, lsl #3]
	mov	x0, sp
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	bl	_asprintf
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20]
	add	x1, sp, #32
	bl	_clock_gettime
	ldr	x0, [sp]
Lloh28:
	adrp	x8, _hints@GOTPAGE
Lloh29:
	ldr	x8, [x8, _hints@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, #0
	bl	_getaddrinfo
	mov	x21, x0
	ldr	w0, [x20]
	add	x1, sp, #16
	bl	_clock_gettime
	ldp	q1, q0, [sp, #16]
	sub.2d	v0, v1, v0
	str	q0, [sp, #16]
	mov.d	x8, v0[1]
	fmov	x9, d0
	tbz	x8, #63, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x9, x9, #1
	mov	w10, #51712
	movk	w10, #15258, lsl #16
	add	x8, x8, x10
	stp	x9, x8, [sp, #16]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x27]
	cmp	x9, x10
	b.gt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x8, x10
	b.le	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	q0, [sp, #16]
	str	q0, [x27]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp]
	bl	_free
	cbnz	w21, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo
	b	LBB0_5
LBB0_17:
	mov	x0, #0
	bl	_pthread_exit
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	ldr	w8, [x20]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	__res,4,2                       ; @_res
	.comm	_RES_INIT,4,2                   ; @RES_INIT
	.comm	_RES_DNSRCH,4,2                 ; @RES_DNSRCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net"

l_.str.1:                               ; @.str.1
	.asciz	"com"

l_.str.2:                               ; @.str.2
	.asciz	"org"

	.section	__DATA,__const
	.p2align	3                               ; @__const.work.suffixes
l___const.work.suffixes:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

	.comm	_max_random_sleep,4,2           ; @max_random_sleep
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"%s%s%s.%s"

l_.str.4:                               ; @.str.4
	.asciz	"www."

l_.str.5:                               ; @.str.5
	.space	1

	.comm	_randwords,8,3                  ; @randwords
	.comm	_nrandwords,8,3                 ; @nrandwords
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
	.comm	_hints,4,2                      ; @hints
	.comm	_workers_stop,4,2               ; @workers_stop
	.no_dead_strip	_work
.subsections_via_symbols
