	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grow_descr
_grow_descr:                            ## @grow_descr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdx), %rax
	movq	8(%rdx), %rsi
	subq	%rsi, %rax
	xorl	%r15d, %r15d
	cmpq	%rcx, %rax
	jae	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	movl	%edi, %r12d
	addq	%rcx, %rsi
	movl	$1024, %edi                     ## imm = 0x400
	callq	_max
	movq	%rax, %r13
	movq	(%rbx), %r8
	addq	%rax, %r8
	movq	_max_request_tcp@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jbe	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movl	%r12d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_4:
	movq	16(%rbx), %rdi
	movq	%r8, %rsi
	callq	_realloc
	addq	(%rbx), %r13
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r13, (%rbx)
	movq	%rax, 16(%rbx)
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rcx
	movl	%r12d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%r13, %r8
LBB0_3:
	callq	_kdc_log
	movq	%rbx, %rdi
	callq	_clear_descr
	movl	$-1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_request_tcp,8,3            ## @max_request_tcp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Request exceeds max request size (%lu bytes)."

L_.str.1:                               ## @.str.1
	.asciz	"Failed to re-allocate %lu bytes."

	.no_dead_strip	_grow_descr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grow_descr
_grow_descr:                            ; @grow_descr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldp	x9, x8, [x2]
	sub	x9, x9, x8
	cmp	x9, x3
	b.hs	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, x8, x3
	mov	w0, #1024
	bl	_max
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _max_request_tcp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _max_request_tcp@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x4, x8, x0
	cmp	x4, x9
	b.ls	LBB0_4
; %bb.2:
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	mov	x22, x0
	ldr	x0, [x19, #16]
	mov	x1, x4
	bl	_realloc
	ldr	x9, [x19]
	add	x4, x9, x22
	cbz	x0, LBB0_6
; %bb.5:
	mov	x8, x0
	mov	w0, #0
	str	x4, [x19]
	str	x8, [x19, #16]
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_kdc_log
	mov	x0, x19
	bl	_clear_descr
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_max_request_tcp,8,3            ; @max_request_tcp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Request exceeds max request size (%lu bytes)."

l_.str.1:                               ; @.str.1
	.asciz	"Failed to re-allocate %lu bytes."

	.no_dead_strip	_grow_descr
.subsections_via_symbols
