	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_conn_setup
_do_conn_setup:                         ## @do_conn_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movl	40(%rbx), %edi
	callq	_serf_bucket_aggregate_create
	movq	%rax, (%rbx)
LBB0_2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	40(%rbx), %edi
	movq	_detect_eof@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_serf__bucket_stream_create
	movq	%rax, 8(%rbx)
LBB0_4:
	movq	%rax, -24(%rbp)
	movl	28(%rbx), %edi
	leaq	24(%rbx), %rsi
	movl	16(%rbx), %r8d
	movl	20(%rbx), %ecx
	leaq	-24(%rbp), %rdx
	callq	*32(%rbx)
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_serf_bucket_destroy
	movq	%rbx, %rdi
	callq	_destroy_ostream
	jmp	LBB0_7
LBB0_6:
	movq	(%rbx), %rdi
	movq	-24(%rbp), %rsi
	callq	_serf_bucket_aggregate_append
LBB0_7:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_detect_eof,4,2                 ## @detect_eof
	.no_dead_strip	_do_conn_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_conn_setup
_do_conn_setup:                         ; @do_conn_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
LBB0_2:
	str	x0, [sp, #8]
	ldr	x8, [x19, #32]
	ldr	w0, [x19, #28]
	add	x1, x19, #24
	ldp	w4, w3, [x19, #16]
	add	x2, sp, #8
	blr	x8
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_serf_bucket_destroy
	mov	x0, x19
	bl	_destroy_ostream
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19, #40]
	bl	_serf_bucket_aggregate_create
	str	x0, [x19]
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_2
LBB0_5:
	ldr	w0, [x19, #40]
Lloh0:
	adrp	x8, _detect_eof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _detect_eof@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_serf__bucket_stream_create
	str	x0, [x19, #8]
	b	LBB0_2
LBB0_6:
	ldr	x0, [x19]
	ldr	x1, [sp, #8]
	bl	_serf_bucket_aggregate_append
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_detect_eof,4,2                 ; @detect_eof
	.no_dead_strip	_do_conn_setup
.subsections_via_symbols
