	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_basic_client
_rpc_basic_client:                      ## @rpc_basic_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -64(%rbp)
	movq	$0, -48(%rbp)
	leaq	-64(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_rpc_setup
	movq	_need_input_hook@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_need_output_hook@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	-48(%rbp), %rdi
	movq	_EVRPC_INPUT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_rpc_hook_add_header@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	callq	_evrpc_add_hook
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	-48(%rbp), %rdi
	movq	_EVRPC_OUTPUT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %r12
	movq	%r12, %rcx
	callq	_evrpc_add_hook
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	-52(%rbp), %edi
	callq	_rpc_pool_with_connection
	movq	%rax, %r14
	movl	%r14d, %edi
	callq	_tt_assert
	movl	(%r13), %esi
	movq	_rpc_hook_add_meta@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_evrpc_add_hook
	movq	%rax, %rdi
	callq	_assert
	movl	(%r15), %esi
	movq	_rpc_hook_remove_header@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_evrpc_add_hook
	movq	%rax, %rdi
	callq	_assert
	xorl	%eax, %eax
	callq	_msg_new
	movq	%rax, %r15
	movl	%r15d, %edi
	callq	_tt_assert
	movq	_from_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_EVTAG_ASSIGN
	movq	_to_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_EVTAG_ASSIGN
	xorl	%eax, %eax
	callq	_kill_new
	movq	%rax, %rbx
	movq	_Message@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GotKillCb@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	xorl	%r9d, %r9d
	callq	_EVRPC_MAKE_REQUEST
	movq	_test_ok@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	xorl	%eax, %eax
	callq	_event_dispatch
	xorl	%edi, %edi
	cmpl	$1, (%r13)
	sete	%dil
	callq	_tt_assert
	movq	%rbx, %rdi
	callq	_kill_clear
	movq	_Message@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %r8d
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	xorl	%r9d, %r9d
	callq	_EVRPC_MAKE_REQUEST
	xorl	%eax, %eax
	callq	_event_dispatch
	xorl	%edi, %edi
	cmpl	$2, (%r13)
	sete	%dil
	callq	_tt_assert
	movq	%rbx, %rdi
	callq	_kill_clear
	movq	_Message@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %eax
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	pushq	$0
	pushq	%rax
	callq	_EVRPC_MAKE_CTX
	addq	$16, %rsp
	movq	%rax, %rdi
	callq	_evrpc_make_request
	xorl	%eax, %eax
	callq	_event_dispatch
	movq	-48(%rbp), %rdi
	callq	_rpc_teardown
	xorl	%edi, %edi
	cmpl	$3, (%r13)
	sete	%dil
	callq	_tt_assert
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_msg_free
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_kill_free
LBB0_4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_evrpc_pool_free
LBB0_6:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_evhttp_free
LBB0_8:
	movq	_need_input_hook@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_need_output_hook@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_need_input_hook,4,2            ## @need_input_hook
	.comm	_need_output_hook,4,2           ## @need_output_hook
	.comm	_EVRPC_INPUT,4,2                ## @EVRPC_INPUT
	.comm	_rpc_hook_add_header,4,2        ## @rpc_hook_add_header
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input"

	.comm	_EVRPC_OUTPUT,4,2               ## @EVRPC_OUTPUT
L_.str.1:                               ## @.str.1
	.asciz	"output"

	.comm	_rpc_hook_add_meta,4,2          ## @rpc_hook_add_meta
	.comm	_rpc_hook_remove_header,4,2     ## @rpc_hook_remove_header
	.comm	_from_name,4,2                  ## @from_name
L_.str.2:                               ## @.str.2
	.asciz	"niels"

	.comm	_to_name,4,2                    ## @to_name
L_.str.3:                               ## @.str.3
	.asciz	"tester"

	.comm	_Message,4,2                    ## @Message
	.comm	_GotKillCb,4,2                  ## @GotKillCb
	.comm	_test_ok,4,2                    ## @test_ok
	.no_dead_strip	_rpc_basic_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_basic_client
_rpc_basic_client:                      ; @rpc_basic_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	stp	xzr, xzr, [sp, #8]
	add	x0, sp, #16
	add	x1, sp, #28
	add	x2, sp, #8
	bl	_rpc_setup
Lloh0:
	adrp	x22, _need_input_hook@GOTPAGE
Lloh1:
	ldr	x22, [x22, _need_input_hook@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x22]
Lloh2:
	adrp	x23, _need_output_hook@GOTPAGE
Lloh3:
	ldr	x23, [x23, _need_output_hook@GOTPAGEOFF]
	str	w8, [x23]
	ldr	x0, [sp, #8]
Lloh4:
	adrp	x21, _EVRPC_INPUT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _EVRPC_INPUT@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh6:
	adrp	x19, _rpc_hook_add_header@GOTPAGE
Lloh7:
	ldr	x19, [x19, _rpc_hook_add_header@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	bl	_evrpc_add_hook
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x24, _EVRPC_OUTPUT@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EVRPC_OUTPUT@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x19]
Lloh12:
	adrp	x20, l_.str.1@PAGE
Lloh13:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_evrpc_add_hook
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w0, [sp, #28]
	bl	_rpc_pool_with_connection
	mov	x19, x0
	bl	_tt_assert
	ldr	w1, [x24]
Lloh14:
	adrp	x8, _rpc_hook_add_meta@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rpc_hook_add_meta@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	bl	_evrpc_add_hook
	bl	_assert
	ldr	w1, [x21]
Lloh17:
	adrp	x8, _rpc_hook_remove_header@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rpc_hook_remove_header@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_evrpc_add_hook
	bl	_assert
	bl	_msg_new
	mov	x20, x0
	bl	_tt_assert
Lloh20:
	adrp	x8, _from_name@GOTPAGE
Lloh21:
	ldr	x8, [x8, _from_name@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_EVTAG_ASSIGN
Lloh25:
	adrp	x8, _to_name@GOTPAGE
Lloh26:
	ldr	x8, [x8, _to_name@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.3@PAGE
Lloh29:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_EVTAG_ASSIGN
	bl	_kill_new
	mov	x21, x0
Lloh30:
	adrp	x25, _Message@GOTPAGE
Lloh31:
	ldr	x25, [x25, _Message@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh32:
	adrp	x26, _GotKillCb@GOTPAGE
Lloh33:
	ldr	x26, [x26, _GotKillCb@GOTPAGEOFF]
	ldr	w4, [x26]
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x5, #0
	bl	_EVRPC_MAKE_REQUEST
Lloh34:
	adrp	x24, _test_ok@GOTPAGE
Lloh35:
	ldr	x24, [x24, _test_ok@GOTPAGEOFF]
	str	wzr, [x24]
	bl	_event_dispatch
	ldr	w8, [x24]
	cmp	w8, #1
	cset	w0, eq
	bl	_tt_assert
	mov	x0, x21
	bl	_kill_clear
	ldr	w0, [x25]
	ldr	w4, [x26]
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x5, #0
	bl	_EVRPC_MAKE_REQUEST
	bl	_event_dispatch
	ldr	w8, [x24]
	cmp	w8, #2
	cset	w0, eq
	bl	_tt_assert
	mov	x0, x21
	bl	_kill_clear
	ldr	w0, [x25]
	ldr	w6, [x26]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	mov	x4, x20
	mov	x5, x21
	mov	x7, #0
	bl	_EVRPC_MAKE_CTX
	bl	_evrpc_make_request
	bl	_event_dispatch
	ldr	x0, [sp, #8]
	bl	_rpc_teardown
	ldr	w8, [x24]
	cmp	w8, #3
	cset	w0, eq
	bl	_tt_assert
	cbz	x20, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_msg_free
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_kill_free
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_evrpc_pool_free
LBB0_6:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_evhttp_free
LBB0_8:
	str	wzr, [x22]
	str	wzr, [x23]
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_need_input_hook,4,2            ; @need_input_hook
	.comm	_need_output_hook,4,2           ; @need_output_hook
	.comm	_EVRPC_INPUT,4,2                ; @EVRPC_INPUT
	.comm	_rpc_hook_add_header,4,2        ; @rpc_hook_add_header
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input"

	.comm	_EVRPC_OUTPUT,4,2               ; @EVRPC_OUTPUT
l_.str.1:                               ; @.str.1
	.asciz	"output"

	.comm	_rpc_hook_add_meta,4,2          ; @rpc_hook_add_meta
	.comm	_rpc_hook_remove_header,4,2     ; @rpc_hook_remove_header
	.comm	_from_name,4,2                  ; @from_name
l_.str.2:                               ; @.str.2
	.asciz	"niels"

	.comm	_to_name,4,2                    ; @to_name
l_.str.3:                               ; @.str.3
	.asciz	"tester"

	.comm	_Message,4,2                    ; @Message
	.comm	_GotKillCb,4,2                  ; @GotKillCb
	.comm	_test_ok,4,2                    ; @test_ok
	.no_dead_strip	_rpc_basic_client
.subsections_via_symbols
