	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_stream_in_test_
_http_stream_in_test_:                  ## @http_stream_in_test_
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_evbuffer_new
	movq	%rax, %r13
	movl	$0, -44(%rbp)
	movl	(%rbx), %eax
	movq	_exit_base@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdi
	xorl	%edx, %edx
	callq	_http_setup
	movq	_http@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_evhttp_connection_base_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_tt_assert
	movq	_http_stream_in_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_evhttp_request_new
	movq	%rax, %r14
	movq	_http_stream_in_chunk@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_evhttp_request_set_chunked_cb
	movq	_EVHTTP_REQ_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_tt_abort_msg
LBB0_2:
	movl	(%rbx), %edi
	callq	_event_base_dispatch
	movq	%r13, %rdi
	callq	_evbuffer_get_length
	cmpq	%r15, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_evbuffer_get_length
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_evbuffer_pullup
	movq	%rax, %rdi
	callq	_TT_DIE
LBB0_4:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_evbuffer_pullup
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_tt_abort_msg
LBB0_6:
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_evbuffer_free
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_evhttp_connection_free
LBB0_10:
	movq	_http@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_evhttp_free
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exit_base,4,2                  ## @exit_base
	.comm	_http,8,3                       ## @http
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

	.comm	_http_stream_in_done,4,2        ## @http_stream_in_done
	.comm	_http_stream_in_chunk,4,2       ## @http_stream_in_chunk
	.comm	_EVHTTP_REQ_GET,4,2             ## @EVHTTP_REQ_GET
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't make request"

L_.str.3:                               ## @.str.3
	.asciz	"Memory mismatch"

	.comm	_test_ok,4,2                    ## @test_ok
	.no_dead_strip	_http_stream_in_test_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_stream_in_test_
_http_stream_in_test_:                  ; @http_stream_in_test_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	mov	x24, x1
	mov	x23, x0
	bl	_evbuffer_new
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _exit_base@GOTPAGE
Lloh1:
	ldr	x9, [x9, _exit_base@GOTPAGEOFF]
Lloh2:
	str	w8, [x9]
	ldr	w1, [x23]
	add	x0, sp, #12
	mov	w2, #0
	bl	_http_setup
Lloh3:
	adrp	x26, _http@GOTPAGE
Lloh4:
	ldr	x26, [x26, _http@GOTPAGEOFF]
	str	x0, [x26]
	ldr	w0, [x23]
	ldr	w3, [sp, #12]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_evhttp_connection_base_new
	mov	x22, x0
	bl	_tt_assert
Lloh7:
	adrp	x8, _http_stream_in_done@GOTPAGE
Lloh8:
	ldr	x8, [x8, _http_stream_in_done@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_evhttp_request_new
	mov	x25, x0
Lloh10:
	adrp	x8, _http_stream_in_chunk@GOTPAGE
Lloh11:
	ldr	x8, [x8, _http_stream_in_chunk@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_evhttp_request_set_chunked_cb
Lloh13:
	adrp	x8, _EVHTTP_REQ_GET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EVHTTP_REQ_GET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	mov	x3, x24
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tt_abort_msg
LBB0_2:
	ldr	w0, [x23]
	bl	_event_base_dispatch
	mov	x0, x19
	bl	_evbuffer_get_length
	cmp	x0, x20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_evbuffer_get_length
	mov	x0, x19
	mov	w1, #-1
	bl	_evbuffer_pullup
	bl	_TT_DIE
LBB0_4:
	mov	x0, x19
	mov	w1, #-1
	bl	_evbuffer_pullup
	mov	x1, x21
	mov	x2, x20
	bl	_memcmp
	cbz	x0, LBB0_6
; %bb.5:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_tt_abort_msg
LBB0_6:
Lloh20:
	adrp	x8, _test_ok@GOTPAGE
Lloh21:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh22:
	str	w9, [x8]
	cbz	x19, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_evbuffer_free
LBB0_8:
	cbz	x22, LBB0_10
; %bb.9:
	mov	x0, x22
	bl	_evhttp_connection_free
LBB0_10:
	ldr	x0, [x26]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_evhttp_free
LBB0_12:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_exit_base,4,2                  ; @exit_base
	.comm	_http,8,3                       ; @http
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

	.comm	_http_stream_in_done,4,2        ; @http_stream_in_done
	.comm	_http_stream_in_chunk,4,2       ; @http_stream_in_chunk
	.comm	_EVHTTP_REQ_GET,4,2             ; @EVHTTP_REQ_GET
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't make request"

l_.str.3:                               ; @.str.3
	.asciz	"Memory mismatch"

	.comm	_test_ok,4,2                    ; @test_ok
	.no_dead_strip	_http_stream_in_test_
.subsections_via_symbols
