	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function respond_to_number
_respond_to_number:                     ## @respond_to_number
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_bufferevent_get_input
	movq	_EVBUFFER_EOL_LF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_evbuffer_readln
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, %r12d
	testl	%eax, %eax
	jg	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_TT_FAIL
LBB0_3:
	movq	%rbx, %rdi
	callq	_free
	movslq	%r12d, %rdi
	callq	_TT_BLATHER
	cmpl	$1001, %r12d                    ## imm = 0x3E9
	jne	LBB0_4
## %bb.9:
	movq	_test_is_done@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_free               ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_renegotiate_at@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_bufferevent_openssl_get_ssl
	movl	%eax, %edi
	callq	_SSL_renegotiate
LBB0_7:
	incl	%r12d
	movq	%r14, %rdi
	callq	_bufferevent_get_output
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	movl	%r12d, %edx
	callq	_evbuffer_add_printf
	leaq	L_.str.4(%rip), %rdi
	callq	_TT_BLATHER
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bufferevent_enable
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_disable            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVBUFFER_EOL_LF,4,2            ## @EVBUFFER_EOL_LF
	.comm	_test_is_done,4,2               ## @test_is_done
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"client"

	.comm	_renegotiate_at,4,2             ## @renegotiate_at
L_.str.3:                               ## @.str.3
	.asciz	"%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Done reading; now writing."

	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_EV_READ,4,2                    ## @EV_READ
	.no_dead_strip	_respond_to_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function respond_to_number
_respond_to_number:                     ; @respond_to_number
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_bufferevent_get_input
Lloh0:
	adrp	x8, _EVBUFFER_EOL_LF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVBUFFER_EOL_LF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_evbuffer_readln
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	bl	_atoi
	mov	x21, x0
	cmp	w0, #0
	b.gt	LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_TT_FAIL
LBB0_3:
	mov	x0, x22
	bl	_free
	sxtw	x0, w21
	bl	_TT_BLATHER
	cmp	w21, #1001
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _test_is_done@GOTPAGE
Lloh4:
	ldr	x8, [x8, _test_is_done@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bufferevent_free
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbnz	w0, LBB0_9
; %bb.7:
Lloh7:
	adrp	x8, _renegotiate_at@GOTPAGE
Lloh8:
	ldr	x8, [x8, _renegotiate_at@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_bufferevent_openssl_get_ssl
	bl	_SSL_renegotiate
LBB0_9:
	add	w20, w21, #1
	mov	x0, x19
	bl	_bufferevent_get_output
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_evbuffer_add_printf
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TT_BLATHER
Lloh14:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bufferevent_enable
Lloh17:
	adrp	x8, _EV_READ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bufferevent_disable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EVBUFFER_EOL_LF,4,2            ; @EVBUFFER_EOL_LF
	.comm	_test_is_done,4,2               ; @test_is_done
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"client"

	.comm	_renegotiate_at,4,2             ; @renegotiate_at
l_.str.3:                               ; @.str.3
	.asciz	"%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Done reading; now writing."

	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_EV_READ,4,2                    ; @EV_READ
	.no_dead_strip	_respond_to_number
.subsections_via_symbols
