	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grow_headerspace
_grow_headerspace:                      ## @grow_headerspace
	.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	_HTTP_SENDGROW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	(%rdi), %ebx
	movq	_HTTP_SEND_MAXLEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jbe	LBB0_2
## %bb.1:
	movq	_ISC_R_NOSPACE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_isc_mem_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	leaq	16(%r14), %r12
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_isc_buffer_region
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_isc_buffer_reinit
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	callq	_isc_mem_put
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_ISC_R_NOMEMORY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_SENDGROW,4,2              ## @HTTP_SENDGROW
	.comm	_HTTP_SEND_MAXLEN,4,2           ## @HTTP_SEND_MAXLEN
	.comm	_ISC_R_NOSPACE,4,2              ## @ISC_R_NOSPACE
	.comm	_ISC_R_NOMEMORY,4,2             ## @ISC_R_NOMEMORY
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.no_dead_strip	_grow_headerspace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grow_headerspace
_grow_headerspace:                      ; @grow_headerspace
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HTTP_SENDGROW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HTTP_SENDGROW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _HTTP_SEND_MAXLEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HTTP_SEND_MAXLEN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w20, w9, w8
	cmp	w20, w10
	b.ls	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ISC_R_NOSPACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISC_R_NOSPACE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_isc_mem_get
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	add	x22, x19, #16
	add	x1, sp, #8
	mov	x0, x22
	bl	_isc_buffer_region
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_isc_buffer_reinit
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldp	w2, w1, [sp, #8]
	bl	_isc_mem_put
Lloh8:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _ISC_R_NOMEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISC_R_NOMEMORY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_SENDGROW,4,2              ; @HTTP_SENDGROW
	.comm	_HTTP_SEND_MAXLEN,4,2           ; @HTTP_SEND_MAXLEN
	.comm	_ISC_R_NOSPACE,4,2              ; @ISC_R_NOSPACE
	.comm	_ISC_R_NOMEMORY,4,2             ; @ISC_R_NOMEMORY
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.no_dead_strip	_grow_headerspace
.subsections_via_symbols
