	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pushandgrow
_pushandgrow:                           ## @pushandgrow
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rdi
	callq	_isc_buffer_availablelength
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	$0, -40(%rbp)
	movq	(%rbx), %rdi
	callq	_isc_buffer_length
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r15), %edi
	leal	(%rax,%rax), %edx
	leaq	-40(%rbp), %rsi
	callq	_isc_buffer_allocate
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.3:
	movq	(%rbx), %rdi
	leaq	-44(%rbp), %r15
	movq	%r15, %rsi
	callq	_isc_buffer_usedregion
	movq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_isc_buffer_copyregion
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_INSIST
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_isc_buffer_free
	movq	-40(%rbp), %rdi
	movq	%rdi, (%rbx)
LBB0_4:
	movl	%r14d, %esi
	callq	_isc_buffer_putuint8
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.no_dead_strip	_pushandgrow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pushandgrow
_pushandgrow:                           ; @pushandgrow
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x1]
	bl	_isc_buffer_availablelength
Lloh0:
	adrp	x22, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ISC_R_SUCCESS@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	b	LBB0_4
LBB0_2:
	str	xzr, [sp, #8]
	ldr	x0, [x20]
	bl	_isc_buffer_length
	ldr	w8, [x21]
	lsl	w2, w0, #1
	add	x1, sp, #8
	mov	x0, x8
	bl	_isc_buffer_allocate
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	x0, [x20]
	add	x1, sp, #4
	bl	_isc_buffer_usedregion
	ldr	x0, [sp, #8]
	add	x1, sp, #4
	bl	_isc_buffer_copyregion
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_INSIST
	ldr	x8, [x20]
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	w8, [x9]
	mov	x0, x20
	bl	_isc_buffer_free
	ldr	x0, [sp, #8]
	str	x0, [x20]
LBB0_4:
	mov	x1, x19
	bl	_isc_buffer_putuint8
	ldr	x0, [x22]
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.no_dead_strip	_pushandgrow
.subsections_via_symbols
