	.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, %r12
	movl	$0, -36(%rbp)
	movl	(%rdi), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_http_setup
	movq	%rax, %r14
	movl	(%r12), %edi
	movl	-36(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_evhttp_connection_base_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_tt_assert
	movq	_http_stream_in_cancel_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %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	%r15, %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	(%r12), %edi
	callq	_event_base_dispatch
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	%r15, %rdi
	callq	_evhttp_connection_free
	movq	%r14, %rdi
	callq	_evhttp_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	x20, x0
	str	wzr, [sp, #12]
	ldr	w1, [x0]
	add	x0, sp, #12
	mov	w2, #0
	bl	_http_setup
	mov	x19, x0
	ldr	w0, [x20]
	ldr	w3, [sp, #12]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_evhttp_connection_base_new
	mov	x21, x0
	bl	_tt_assert
Lloh2:
	adrp	x8, _http_stream_in_cancel_done@GOTPAGE
Lloh3:
	ldr	x8, [x8, _http_stream_in_cancel_done@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_evhttp_request_new
	mov	x22, x0
Lloh5:
	adrp	x8, _http_stream_in_cancel_chunk@GOTPAGE
Lloh6:
	ldr	x8, [x8, _http_stream_in_cancel_chunk@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_evhttp_request_set_chunked_cb
Lloh8:
	adrp	x8, _EVHTTP_REQ_GET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVHTTP_REQ_GET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tt_abort_msg
LBB0_2:
	ldr	w0, [x20]
	bl	_event_base_dispatch
Lloh15:
	adrp	x8, _test_ok@GOTPAGE
Lloh16:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh17:
	str	w9, [x8]
	mov	x0, x21
	bl	_evhttp_connection_free
	mov	x0, x19
	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	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.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
