	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_line_to_buffer
_add_line_to_buffer:                    ## @add_line_to_buffer
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movq	%rsi, %rdi
	callq	_strlen
	addl	%ebx, %eax
	movl	4(%r15), %ebx
	cmpl	%ebx, %eax
	jge	LBB0_3
## %bb.1:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
	jmp	LBB0_12
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.4:
	addl	%ebx, %ebx
	movl	(%r15), %r12d
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r12,%rax), %esi
	incl	%esi
	movl	%ebx, %edi
	callq	_max
	movl	%eax, %r12d
	movq	8(%r15), %rdi
	movl	%eax, %esi
	callq	_CryptMemRealloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_6:
	movq	_INITIAL_CERT_BUFFER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_CryptMemAlloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %rbx
	movq	$0, (%rax)
	movl	(%r12), %r12d
LBB0_8:
	movl	%r12d, 4(%r15)
LBB0_9:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_strlen
	addl	%eax, (%r15)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INITIAL_CERT_BUFFER,4,2        ## @INITIAL_CERT_BUFFER
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_add_line_to_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_line_to_buffer
_add_line_to_buffer:                    ; @add_line_to_buffer
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x0]
	mov	x0, x1
	bl	_strlen
	ldr	w8, [x19, #4]
	add	w9, w0, w21
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.1:
	ldr	x21, [x19, #8]
	cbnz	x21, LBB0_8
	b	LBB0_9
LBB0_2:
	cbz	w8, LBB0_5
; %bb.3:
	lsl	w21, w8, #1
	ldr	w22, [x19]
	mov	x0, x20
	bl	_strlen
	add	w8, w22, w0
	add	w1, w8, #1
	mov	x0, x21
	bl	_max
	mov	x22, x0
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_CryptMemRealloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x22, _INITIAL_CERT_BUFFER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INITIAL_CERT_BUFFER@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_CryptMemAlloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	str	xzr, [x0]
	ldr	w22, [x22]
LBB0_7:
	str	w22, [x19, #4]
LBB0_8:
	mov	x0, x21
	bl	_strlen
	add	x0, x21, w0, sxtw
	mov	x1, x20
	bl	_strcpy
	mov	x0, x20
	bl	_strlen
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INITIAL_CERT_BUFFER,4,2        ; @INITIAL_CERT_BUFFER
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_add_line_to_buffer
.subsections_via_symbols
