	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_stream_in_cancel_test
_http_stream_in_cancel_test:            ## @http_stream_in_cancel_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -36(%rbp)
	movl	(%rdi), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_http_setup
	movq	_http@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movl	(%r15), %edi
	movl	-36(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_evhttp_connection_base_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_tt_assert
	movq	_http_stream_in_cancel_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movq	_http_stream_in_cancel_chunk@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_evhttp_request_set_chunked_cb
	movq	_EVHTTP_REQ_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	callq	_tt_abort_msg
LBB0_2:
	movl	(%r15), %edi
	callq	_event_base_dispatch
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	%r14, %rdi
	callq	_evhttp_connection_free
	movl	(%r12), %edi
	callq	_evhttp_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_http,4,2                       ## @http
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

	.comm	_http_stream_in_cancel_done,4,2 ## @http_stream_in_cancel_done
	.comm	_http_stream_in_cancel_chunk,4,2 ## @http_stream_in_cancel_chunk
	.comm	_EVHTTP_REQ_GET,4,2             ## @EVHTTP_REQ_GET
L_.str.1:                               ## @.str.1
	.asciz	"/chunked"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't make request"

	.comm	_test_ok,4,2                    ## @test_ok
	.no_dead_strip	_http_stream_in_cancel_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_cancel_test
_http_stream_in_cancel_test:            ; @http_stream_in_cancel_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	str	wzr, [sp, #12]
	ldr	w1, [x0]
	add	x0, sp, #12
	mov	w2, #0
	bl	_http_setup
Lloh0:
	adrp	x22, _http@GOTPAGE
Lloh1:
	ldr	x22, [x22, _http@GOTPAGEOFF]
	str	w0, [x22]
	ldr	w0, [x19]
	ldr	w3, [sp, #12]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_evhttp_connection_base_new
	mov	x20, x0
	bl	_tt_assert
Lloh4:
	adrp	x8, _http_stream_in_cancel_done@GOTPAGE
Lloh5:
	ldr	x8, [x8, _http_stream_in_cancel_done@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_evhttp_request_new
	mov	x21, x0
Lloh7:
	adrp	x8, _http_stream_in_cancel_chunk@GOTPAGE
Lloh8:
	ldr	x8, [x8, _http_stream_in_cancel_chunk@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_evhttp_request_set_chunked_cb
Lloh10:
	adrp	x8, _EVHTTP_REQ_GET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVHTTP_REQ_GET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tt_abort_msg
LBB0_2:
	ldr	w0, [x19]
	bl	_event_base_dispatch
Lloh17:
	adrp	x8, _test_ok@GOTPAGE
Lloh18:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh19:
	str	w9, [x8]
	mov	x0, x20
	bl	_evhttp_connection_free
	ldr	w0, [x22]
	bl	_evhttp_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_http,4,2                       ; @http
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

	.comm	_http_stream_in_cancel_done,4,2 ; @http_stream_in_cancel_done
	.comm	_http_stream_in_cancel_chunk,4,2 ; @http_stream_in_cancel_chunk
	.comm	_EVHTTP_REQ_GET,4,2             ; @EVHTTP_REQ_GET
l_.str.1:                               ; @.str.1
	.asciz	"/chunked"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't make request"

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