	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linebuffer_ctrl
_linebuffer_ctrl:                       ## @linebuffer_ctrl
	.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	%rcx, %r15
	movq	%rdx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r13
	leal	-128(%rsi), %eax
	cmpl	$6, %eax
	ja	LBB0_30
## %bb.1:
	movq	8(%r13), %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	_DEFAULT_LINEBUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	cmpl	%ebx, (%rax)
	jge	LBB0_34
## %bb.11:
	cmpl	%ebx, 16(%r14)
	je	LBB0_34
## %bb.12:
	movq	%rbx, %r15
	movl	%ebx, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_32
## %bb.13:
	movq	%rax, %rbx
	movq	8(%r14), %rsi
	cmpq	%rax, %rsi
	je	LBB0_34
## %bb.14:
	movl	(%r14), %edx
	cmpl	%r15d, %edx
	jle	LBB0_16
## %bb.15:
	movl	%r15d, (%r14)
	movl	%r15d, %edx
LBB0_16:
	movq	%rbx, %rdi
	callq	_memcpy
	movq	8(%r14), %rdi
	callq	_OPENSSL_free
	movq	%rbx, 8(%r14)
	movl	%r15d, 16(%r14)
	jmp	LBB0_34
LBB0_30:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.31:
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_4
LBB0_17:
	cmpq	$0, (%r13)
	je	LBB0_33
## %bb.18:
	movq	%r13, %rdi
	callq	_BIO_clear_retry_flags
	movq	(%r13), %rdi
	movl	$129, %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_BIO_ctrl
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_BIO_copy_next_retry
	movq	%rbx, %rax
	jmp	LBB0_35
LBB0_7:
	movslq	(%r14), %r12
	testq	%r12, %r12
	jne	LBB0_34
## %bb.8:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.9:
	movl	$130, %esi
	jmp	LBB0_4
LBB0_2:
	movl	$0, (%r14)
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.3:
	movl	$131, %esi
	jmp	LBB0_4
LBB0_6:
	movslq	(%r14), %r12
	jmp	LBB0_34
LBB0_19:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.20:
	cmpl	$0, (%r14)
	jle	LBB0_36
## %bb.21:
	movq	%rbx, %r12
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	subl	%ebx, %eax
	movl	%eax, (%r14)
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_BIO_clear_retry_flags
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	(%r13), %rdi
	movq	8(%r14), %rsi
	callq	_BIO_write
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_BIO_copy_next_retry
	testl	%ebx, %ebx
	jle	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	(%r14), %eax
	movl	%eax, %edx
	subl	%ebx, %edx
	jle	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	8(%r14), %rdi
	leal	(%rdi,%rbx), %esi
	callq	_memmove
	movl	(%r14), %eax
	jmp	LBB0_27
LBB0_29:
	movl	16(%r14), %esi
	movq	%r15, %rdi
	callq	_BIO_set_write_buffer_size
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setne	%r12b
	jmp	LBB0_34
LBB0_28:
	movl	$0, (%r14)
	movq	(%r13), %rdi
	movl	$133, %esi
	movq	%r12, %rdx
	jmp	LBB0_5
LBB0_36:
	movl	$133, %esi
LBB0_4:
	movq	%rbx, %rdx
LBB0_5:
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BIO_ctrl                       ## TAILCALL
LBB0_24:
	movslq	%ebx, %r12
	jmp	LBB0_34
LBB0_32:
	movq	_BIO_F_LINEBUFFER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
LBB0_33:
	xorl	%r12d, %r12d
LBB0_34:
	movq	%r12, %rax
LBB0_35:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_17
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_19
	.long	L0_0_set_29
	.end_data_region
                                        ## -- End function
	.comm	_DEFAULT_LINEBUFFER_SIZE,4,2    ## @DEFAULT_LINEBUFFER_SIZE
	.comm	_BIO_F_LINEBUFFER_CTRL,4,2      ## @BIO_F_LINEBUFFER_CTRL
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_linebuffer_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linebuffer_ctrl
_linebuffer_ctrl:                       ; @linebuffer_ctrl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	sub	w8, w1, #128
	cmp	w8, #6
	b.hi	LBB0_5
; %bb.1:
	ldr	x23, [x21, #8]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _DEFAULT_LINEBUFFER_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEFAULT_LINEBUFFER_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ge	LBB0_4
; %bb.3:
	ldr	w8, [x23, #16]
	cmp	w8, w19
	b.ne	LBB0_25
LBB0_4:
	mov	w0, #1
	b	LBB0_33
LBB0_5:
	ldr	x0, [x21]
	cbnz	x0, LBB0_19
	b	LBB0_33
LBB0_6:
	ldr	x8, [x21]
	cbz	x8, LBB0_32
; %bb.7:
	mov	x0, x21
	bl	_BIO_clear_retry_flags
	ldr	x0, [x21]
	mov	w1, #129
	mov	x2, x19
	mov	x3, x20
	bl	_BIO_ctrl
	mov	x19, x0
	mov	x0, x21
	bl	_BIO_copy_next_retry
	mov	x0, x19
	b	LBB0_33
LBB0_8:
	ldrsw	x0, [x23]
	cbnz	w0, LBB0_33
; %bb.9:
	ldr	x0, [x21]
	cbz	x0, LBB0_33
; %bb.10:
	mov	w1, #130
	b	LBB0_19
LBB0_11:
	str	wzr, [x23]
	ldr	x0, [x21]
	cbz	x0, LBB0_33
; %bb.12:
	mov	w1, #131
	b	LBB0_19
LBB0_13:
	ldrsw	x0, [x23]
	b	LBB0_33
LBB0_14:
	ldr	x0, [x21]
	cbz	x0, LBB0_33
; %bb.15:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x0, x21
	bl	_BIO_clear_retry_flags
	ldr	w2, [x23]
	cmp	w2, #1
	b.ge	LBB0_21
LBB0_17:
	str	wzr, [x23]
	ldr	x0, [x21]
LBB0_18:
	mov	w1, #133
LBB0_19:
	mov	x2, x19
	mov	x3, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_BIO_ctrl
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	sub	w8, w8, w22
	str	w8, [x23]
	mov	x0, x21
	bl	_BIO_clear_retry_flags
	ldr	w2, [x23]
	cmp	w2, #0
	b.le	LBB0_17
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	x1, [x23, #8]
	bl	_BIO_write
	mov	x22, x0
	mov	x0, x21
	bl	_BIO_copy_next_retry
	cmp	w22, #0
	b.le	LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x23]
	subs	w2, w8, w22
	b.le	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x0, [x23, #8]
	add	w1, w0, w22
	bl	_memmove
	ldr	w8, [x23]
	b	LBB0_20
LBB0_24:
	ldr	w1, [x23, #16]
	mov	x0, x20
	bl	_BIO_set_write_buffer_size
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_33
LBB0_25:
	mov	x0, x19
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_31
; %bb.26:
	mov	x20, x0
	ldr	x1, [x23, #8]
	cmp	x1, x0
	b.eq	LBB0_4
; %bb.27:
	ldr	w2, [x23]
	cmp	w2, w19
	b.le	LBB0_29
; %bb.28:
	str	w19, [x23]
	mov	x2, x19
LBB0_29:
	mov	x0, x20
	bl	_memcpy
	ldr	x0, [x23, #8]
	bl	_OPENSSL_free
	str	x20, [x23, #8]
	str	w19, [x23, #16]
	mov	w0, #1
	b	LBB0_33
LBB0_30:
	sxtw	x0, w22
	b	LBB0_33
LBB0_31:
Lloh5:
	adrp	x8, _BIO_F_LINEBUFFER_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BIO_F_LINEBUFFER_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_BIOerr
LBB0_32:
	mov	x0, #0
LBB0_33:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
                                        ; -- End function
	.comm	_DEFAULT_LINEBUFFER_SIZE,4,2    ; @DEFAULT_LINEBUFFER_SIZE
	.comm	_BIO_F_LINEBUFFER_CTRL,4,2      ; @BIO_F_LINEBUFFER_CTRL
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_linebuffer_ctrl
.subsections_via_symbols
