	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_client                  ## -- Begin function create_client
	.p2align	4, 0x90
_create_client:                         ## @create_client
	.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	(%rdi), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %edi
	xorl	%edx, %edx
	callq	_client_socket
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movl	%eax, %r12d
	movq	_MAX_EVENTS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r12d
	setl	%dil
	callq	_assert
	movq	_Events@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	leaq	(,%rcx,4), %r14
	addq	(%rax), %r14
	movq	_Connections@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	imulq	$56, %rcx, %rbx
	leaq	(%rbx,%r13), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	%r12d, (%r13,%rbx)
	movq	%r14, 48(%r13,%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r13,%rbx)
	leaq	36(%r13,%rbx), %rdi
	movl	32(%r13,%rbx), %esi
	movq	_BUFF_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_init_builtin_buffer
	leaq	(%rbx,%r13), %rdi
	addq	$28, %rdi
	movl	24(%r13,%rbx), %esi
	movl	(%r14), %edx
	callq	_init_builtin_buffer
	movq	_client_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_epoll_sethandler
	movq	_EVT_WRITE@GOTPCREL(%rip), %rax
	movq	_EVT_SPEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	%r12d, %edi
	callq	_epoll_insert
	movq	_verbosity@GOTPCREL(%rip), %r12
	cmpl	$2, (%r12)
	jl	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%rcx, 16(%r13,%rbx)
	leaq	8(%rcx), %rax
	movq	8(%rcx), %rdx
	movq	%rdx, 8(%r13,%rbx)
	movq	8(%rcx), %rcx
	movq	%r15, 16(%rcx)
	jmp	LBB0_6
LBB0_4:
	movq	%r15, 16(%r14)
	movq	%r15, 8(%r13,%rbx)
	leaq	(%rbx,%r13), %rax
	addq	$16, %rax
LBB0_6:
	movq	%r15, (%rax)
	movq	_C_INCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13,%rbx)
	incl	12(%r14)
	movq	_outbound_connections@GOTPCREL(%rip), %rax
	incl	(%rax)
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %r12d
	movl	4(%r14), %r13d
	movl	8(%r14), %edi
	callq	_inet_ntoa
	movl	(%r14), %r9d
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edi
	callq	_inet_ntoa
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error connecting to %s:%d: %m"

	.comm	_MAX_EVENTS,4,2                 ## @MAX_EVENTS
	.comm	_Events,8,3                     ## @Events
	.comm	_Connections,8,3                ## @Connections
	.comm	_BUFF_SIZE,4,2                  ## @BUFF_SIZE
	.comm	_client_worker,4,2              ## @client_worker
	.comm	_EVT_WRITE,4,2                  ## @EVT_WRITE
	.comm	_EVT_SPEC,4,2                   ## @EVT_SPEC
	.comm	_verbosity,4,2                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"after insert()\n"

	.comm	_C_INCONN,4,2                   ## @C_INCONN
	.comm	_outbound_connections,4,2       ## @outbound_connections
L_.str.2:                               ## @.str.2
	.asciz	"outbound connection #%d: handle %d to %s:%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_client                  ; -- Begin function create_client
	.p2align	2
_create_client:                         ; @create_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x19]
	mov	w2, #0
	bl	_client_socket
	tbnz	w0, #31, LBB0_9
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _MAX_EVENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_EVENTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, lt
	bl	_assert
Lloh3:
	adrp	x8, _Events@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Events@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w22, w21
	add	x24, x8, w21, uxtw #2
Lloh6:
	adrp	x8, _Connections@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Connections@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
	mov	w8, #56
	umaddl	x20, w21, w8, x23
	mov	x0, x20
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	str	w21, [x20]
	stp	x19, x24, [x20, #40]
	add	x0, x20, #36
	ldr	w1, [x20, #32]
Lloh9:
	adrp	x24, _BUFF_SIZE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _BUFF_SIZE@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_init_builtin_buffer
	add	x0, x20, #28
	ldr	w1, [x20, #24]
	ldr	w2, [x24]
	bl	_init_builtin_buffer
Lloh11:
	adrp	x8, _client_worker@GOTPAGE
Lloh12:
	ldr	x8, [x8, _client_worker@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	mov	x3, x20
	bl	_epoll_sethandler
Lloh14:
	adrp	x8, _EVT_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVT_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _EVT_SPEC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EVT_SPEC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_epoll_insert
Lloh20:
	adrp	x24, _verbosity@GOTPAGE
Lloh21:
	ldr	x24, [x24, _verbosity@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh22:
	adrp	x21, _stderr@GOTPAGE
Lloh23:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x21]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w9, #56
	madd	x9, x22, x9, x23
	str	x8, [x9, #16]
	ldr	x10, [x8, #8]!
	str	x10, [x9, #8]
	ldr	x9, [x8]
	str	x20, [x9, #16]
	b	LBB0_6
LBB0_5:
	str	x20, [x19, #16]
	mov	w8, #56
	madd	x8, x22, x8, x23
	str	x20, [x8, #8]
	add	x8, x8, #16
LBB0_6:
	str	x20, [x8]
Lloh26:
	adrp	x8, _C_INCONN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _C_INCONN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	mov	w9, #56
	madd	x9, x22, x9, x23
	str	w8, [x9, #4]
	ldr	w8, [x19, #12]
	add	w8, w8, #1
Lloh29:
	adrp	x9, _outbound_connections@GOTPAGE
Lloh30:
	ldr	x9, [x9, _outbound_connections@GOTPAGEOFF]
	str	w8, [x19, #12]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.7:
	ldr	w21, [x21]
	ldp	w22, w0, [x19, #4]
	ldr	w23, [x20]
	bl	_inet_ntoa
	ldr	w8, [x19]
	stp	x0, x8, [sp, #16]
	stp	x22, x23, [sp]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fprintf
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_9:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w20, [x8]
	ldr	w0, [x19, #8]
	bl	_inet_ntoa
	ldr	w8, [x19]
	stp	x0, x8, [sp]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error connecting to %s:%d: %m"

	.comm	_MAX_EVENTS,4,2                 ; @MAX_EVENTS
	.comm	_Events,8,3                     ; @Events
	.comm	_Connections,8,3                ; @Connections
	.comm	_BUFF_SIZE,4,2                  ; @BUFF_SIZE
	.comm	_client_worker,4,2              ; @client_worker
	.comm	_EVT_WRITE,4,2                  ; @EVT_WRITE
	.comm	_EVT_SPEC,4,2                   ; @EVT_SPEC
	.comm	_verbosity,4,2                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"after insert()\n"

	.comm	_C_INCONN,4,2                   ; @C_INCONN
	.comm	_outbound_connections,4,2       ; @outbound_connections
l_.str.2:                               ; @.str.2
	.asciz	"outbound connection #%d: handle %d to %s:%d\n"

.subsections_via_symbols
