	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_basic_message
_rpc_basic_message:                     ## @rpc_basic_message
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_rpc_setup
	movl	-28(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_evhttp_connection_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_tt_assert
	movq	_rpc_postrequest_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_evhttp_request_new
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movl	4(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	callq	_evhttp_add_header
	xorl	%eax, %eax
	callq	_msg_new
	movq	%rax, %rbx
	movq	_from_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	callq	_EVTAG_ASSIGN
	movq	_to_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	callq	_EVTAG_ASSIGN
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_msg_marshal
	movq	%rbx, %rdi
	callq	_msg_free
	movq	_EVHTTP_REQ_POST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.2:
	movq	_test_ok@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_event_dispatch
	movq	%r14, %rdi
	callq	_evhttp_connection_free
	movq	-40(%rbp), %rdi
	callq	_rpc_teardown
	movq	-48(%rbp), %rdi
	callq	_evhttp_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

	.comm	_rpc_postrequest_done,4,2       ## @rpc_postrequest_done
	.comm	_stdout,4,2                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"FAILED\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"somehost"

	.comm	_from_name,4,2                  ## @from_name
L_.str.4:                               ## @.str.4
	.asciz	"niels"

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

	.comm	_EVHTTP_REQ_POST,4,2            ## @EVHTTP_REQ_POST
L_.str.6:                               ## @.str.6
	.asciz	"/.rpc.Message"

	.comm	_test_ok,8,3                    ## @test_ok
	.no_dead_strip	_rpc_basic_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_basic_message
_rpc_basic_message:                     ; @rpc_basic_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	stp	xzr, xzr, [sp, #8]
	add	x0, sp, #16
	add	x1, sp, #28
	add	x2, sp, #8
	bl	_rpc_setup
	ldr	w1, [sp, #28]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_evhttp_connection_new
	mov	x19, x0
	bl	_tt_assert
Lloh2:
	adrp	x8, _rpc_postrequest_done@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rpc_postrequest_done@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_evhttp_request_new
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #4]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh7:
	adrp	x2, l_.str.3@PAGE
Lloh8:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_evhttp_add_header
	bl	_msg_new
	mov	x21, x0
Lloh9:
	adrp	x8, _from_name@GOTPAGE
Lloh10:
	ldr	x8, [x8, _from_name@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_EVTAG_ASSIGN
Lloh14:
	adrp	x8, _to_name@GOTPAGE
Lloh15:
	ldr	x8, [x8, _to_name@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_EVTAG_ASSIGN
	ldr	w0, [x20]
	mov	x1, x21
	bl	_msg_marshal
	mov	x0, x21
	bl	_msg_free
Lloh19:
	adrp	x8, _EVHTTP_REQ_POST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EVHTTP_REQ_POST@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x3, l_.str.6@PAGE
Lloh23:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_evhttp_make_request
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
Lloh24:
	adrp	x8, _test_ok@GOTPAGE
Lloh25:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
Lloh26:
	str	xzr, [x8]
	bl	_event_dispatch
	mov	x0, x19
	bl	_evhttp_connection_free
	ldr	x0, [sp, #8]
	bl	_rpc_teardown
	ldr	x0, [sp, #16]
	bl	_evhttp_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
Lloh27:
	adrp	x8, _stdout@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

	.comm	_rpc_postrequest_done,4,2       ; @rpc_postrequest_done
	.comm	_stdout,4,2                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"FAILED\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"somehost"

	.comm	_from_name,4,2                  ; @from_name
l_.str.4:                               ; @.str.4
	.asciz	"niels"

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

	.comm	_EVHTTP_REQ_POST,4,2            ; @EVHTTP_REQ_POST
l_.str.6:                               ; @.str.6
	.asciz	"/.rpc.Message"

	.comm	_test_ok,8,3                    ; @test_ok
	.no_dead_strip	_rpc_basic_message
.subsections_via_symbols
