	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b64_write
_b64_write:                             ## @b64_write
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_BIO_get_data
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_BIO_next
	xorl	%esi, %esi
	testq	%r13, %r13
	je	LBB0_31
## %bb.1:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_31
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BIO_clear_retry_flags
	movq	_B64_ENCODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r13)
	je	LBB0_4
## %bb.3:
	movq	%rax, (%r13)
	movq	$0, 8(%r13)
	movl	$0, 16(%r13)
	movl	32(%r13), %edi
	callq	_EVP_EncodeInit
LBB0_4:
	xorl	%edi, %edi
	cmpl	$8, 12(%r13)
	setl	%dil
	callq	_OPENSSL_assert
	xorl	%edi, %edi
	cmpl	$9, 8(%r13)
	setl	%dil
	callq	_OPENSSL_assert
	movl	8(%r13), %eax
	xorl	%edi, %edi
	cmpl	12(%r13), %eax
	setge	%dil
	callq	_OPENSSL_assert
	movl	8(%r13), %r14d
	movslq	12(%r13), %rsi
	subl	%esi, %r14d
	jle	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shlq	$2, %rsi
	addq	24(%r13), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_BIO_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	cmpl	%ebx, %r14d
	setae	%dil
	callq	_OPENSSL_assert
	movl	12(%r13), %eax
	addl	%ebx, %eax
	movl	%eax, 12(%r13)
	xorl	%edi, %edi
	cmpl	$9, %eax
	setl	%dil
	callq	_OPENSSL_assert
	movl	8(%r13), %eax
	xorl	%edi, %edi
	cmpl	12(%r13), %eax
	setge	%dil
	callq	_OPENSSL_assert
	subl	%ebx, %r14d
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	12(%r13), %rsi
	jmp	LBB0_5
LBB0_9:
	movq	$0, 8(%r13)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.11:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movl	$0, %esi
	jle	LBB0_31
## %bb.12:
	movq	%r13, %rax
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movq	_B64_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	_BIO_FLAGS_BASE64_NO_NL@GOTPCREL(%rip), %r12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	subl	%r14d, %ecx
	movslq	%r14d, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	%rax, %rbx
	movq	$0, 8(%r13)
	testl	%ecx, %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	_B64_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	_BIO_FLAGS_BASE64_NO_NL@GOTPCREL(%rip), %r12
	jle	LBB0_31
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	(%rax), %r14d
	cmpl	%r14d, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmovll	%ecx, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_get_flags
	testl	%eax, (%r12)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	16(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%edi, %edi
	cmpl	$4, %eax
	setb	%dil
	callq	_OPENSSL_assert
	movslq	16(%r13), %rdi
	movl	$3, %r14d
	subl	%edi, %r14d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r14d
	cmovgel	%eax, %r14d
	shlq	$2, %rdi
	addq	40(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	16(%r13), %edx
	addl	%r14d, %edx
	movl	%edx, 16(%r13)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	%r14d, %esi
	cmpl	$3, %edx
	jl	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	24(%r13), %rdi
	movq	40(%r13), %rsi
	callq	_EVP_EncodeBlock
	movl	%eax, 8(%r13)
	xorl	%edi, %edi
	cmpl	$9, %eax
	setl	%dil
	callq	_OPENSSL_assert
	movl	8(%r13), %eax
	xorl	%edi, %edi
	cmpl	12(%r13), %eax
	setge	%dil
	callq	_OPENSSL_assert
	movl	$0, 16(%r13)
	jmp	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	32(%r13), %edi
	movq	24(%r13), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	callq	_EVP_EncodeUpdate
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%edi, %edi
	cmpl	$9, 8(%r13)
	jmp	LBB0_23
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$2, %r14d
	jle	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r14d, %eax
	movl	$2863311531, %ecx               ## imm = 0xAAAAAAAB
	imulq	%rcx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %r14d
	movq	24(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_EVP_EncodeBlock
	movl	%eax, 8(%r13)
	xorl	%edi, %edi
	cmpl	$9, %eax
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	setl	%dil
	callq	_OPENSSL_assert
	movl	8(%r13), %eax
	xorl	%edi, %edi
	cmpl	12(%r13), %eax
	setge	%dil
	callq	_OPENSSL_assert
	addl	%r14d, -44(%rbp)                ## 4-byte Folded Spill
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$0, 12(%r13)
	movl	8(%r13), %ebx
	testl	%ebx, %ebx
	jle	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	24(%r13), %rsi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_BIO_write
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	xorl	%edi, %edi
	cmpl	%r12d, %ebx
	setae	%dil
	callq	_OPENSSL_assert
	movl	12(%r13), %eax
	addl	%r12d, %eax
	movl	%eax, 12(%r13)
	xorl	%edi, %edi
	cmpl	$9, %eax
	setl	%dil
	callq	_OPENSSL_assert
	movl	8(%r13), %eax
	xorl	%edi, %edi
	cmpl	12(%r13), %eax
	setge	%dil
	callq	_OPENSSL_assert
	subl	%r12d, %ebx
	jle	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=2
	movslq	12(%r13), %rsi
	shlq	$2, %rsi
	addq	24(%r13), %rsi
	jmp	LBB0_26
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_copy_next_retry
	movl	%ebx, %esi
	jmp	LBB0_31
LBB0_27:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_copy_next_retry
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	cmovel	%r12d, %esi
	jmp	LBB0_31
LBB0_10:
	xorl	%esi, %esi
LBB0_31:
	movl	%esi, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%eax, %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	$1, %esi
	sbbl	%eax, %eax
	orl	%eax, %esi
	jmp	LBB0_31
LBB0_18:
	movq	40(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, 16(%r13)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	%r14d, %esi
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_B64_ENCODE,8,3                 ## @B64_ENCODE
	.comm	_B64_BLOCK_SIZE,4,2             ## @B64_BLOCK_SIZE
	.comm	_BIO_FLAGS_BASE64_NO_NL,4,2     ## @BIO_FLAGS_BASE64_NO_NL
	.no_dead_strip	_b64_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b64_write
_b64_write:                             ; @b64_write
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_BIO_get_data
	mov	x21, x0
	mov	x0, x19
	bl	_BIO_next
	mov	w25, #0
	cbz	x21, LBB0_28
; %bb.1:
	mov	x23, x0
	cbz	x0, LBB0_28
; %bb.2:
	mov	x0, x19
	bl	_BIO_clear_retry_flags
	ldr	x9, [x21]
Lloh0:
	adrp	x8, _B64_ENCODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B64_ENCODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.3:
	stp	x8, xzr, [x21]
	str	wzr, [x21, #16]
	ldr	w0, [x21, #32]
	bl	_EVP_EncodeInit
LBB0_4:
	ldr	w8, [x21, #12]
	cmp	w8, #8
	cset	w0, lt
	bl	_OPENSSL_assert
	mov	x24, x21
	ldr	w8, [x24, #8]!
	cmp	w8, #9
	cset	w0, lt
	bl	_OPENSSL_assert
	ldr	w8, [x24]
	ldr	w9, [x21, #12]
	cmp	w8, w9
	cset	w0, ge
	bl	_OPENSSL_assert
	ldr	w9, [x24]
	ldrsw	x8, [x21, #12]
	sub	w26, w9, w8
	cmp	w26, #1
	b.lt	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #24]
	add	x1, x9, x8, lsl #2
	mov	x0, x23
	mov	x2, x26
	bl	_BIO_write
	mov	x25, x0
	cmp	w0, #1
	b.lt	LBB0_26
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	subs	w26, w26, w25
	cset	w0, hs
	bl	_OPENSSL_assert
	ldr	w8, [x21, #12]
	add	w8, w8, w25
	str	w8, [x21, #12]
	cmp	w8, #9
	cset	w0, lt
	bl	_OPENSSL_assert
	ldp	w8, w9, [x21, #8]
	cmp	w8, w9
	cset	w0, ge
	bl	_OPENSSL_assert
	cmp	w26, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x21, #12]
	b	LBB0_5
LBB0_8:
	mov	w25, #0
	str	xzr, [x24]
	cbz	x20, LBB0_28
; %bb.9:
	cmp	w22, #1
	b.lt	LBB0_28
; %bb.10:
	mov	w25, #0
Lloh3:
	adrp	x8, _B64_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B64_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x27, _BIO_FLAGS_BASE64_NO_NL@GOTPAGE
Lloh6:
	ldr	x27, [x27, _BIO_FLAGS_BASE64_NO_NL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	w22, w22, w26
	add	x20, x20, w26, sxtw
	str	xzr, [x24]
	cmp	w22, #0
Lloh7:
	adrp	x8, _B64_BLOCK_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _B64_BLOCK_SIZE@GOTPAGEOFF]
Lloh9:
	adrp	x27, _BIO_FLAGS_BASE64_NO_NL@GOTPAGE
Lloh10:
	ldr	x27, [x27, _BIO_FLAGS_BASE64_NO_NL@GOTPAGEOFF]
	b.le	LBB0_28
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
	ldr	w8, [x8]
	cmp	w22, w8
	csel	w26, w22, w8, lt
	mov	x0, x19
	bl	_BIO_get_flags
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w8, #4
	cset	w0, lo
	bl	_OPENSSL_assert
	ldrsw	x8, [x21, #16]
	mov	w9, #3
	sub	w9, w9, w8
	cmp	w9, w22
	csel	w26, w9, w22, lt
	ldr	x9, [x21, #40]
	add	x0, x9, x8, lsl #2
	mov	x1, x20
	mov	x2, x26
	bl	_memcpy
	ldr	w8, [x21, #16]
	add	w2, w8, w26
	str	w2, [x21, #16]
	add	w25, w26, w25
	cmp	w2, #3
	b.lt	LBB0_28
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x21, #24]
	ldr	x1, [x21, #40]
	bl	_EVP_EncodeBlock
	str	w0, [x21, #8]
	cmp	w0, #9
	cset	w0, lt
	bl	_OPENSSL_assert
	ldp	w8, w9, [x21, #8]
	cmp	w8, w9
	cset	w0, ge
	bl	_OPENSSL_assert
	str	wzr, [x21, #16]
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x21, #32]
	ldr	x1, [x21, #24]
	mov	x2, x24
	mov	x3, x20
	mov	x4, x26
	bl	_EVP_EncodeUpdate
	cbz	w0, LBB0_29
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x21, #8]
	cmp	w8, #9
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w26, #2
	b.le	LBB0_30
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	umull	x8, w26, w8
	lsr	x8, x8, #33
	add	w26, w8, w8, lsl #1
	ldr	x0, [x21, #24]
	mov	x1, x20
	mov	x2, x26
	bl	_EVP_EncodeBlock
	str	w0, [x21, #8]
	cmp	w0, #9
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	cset	w0, lt
	bl	_OPENSSL_assert
	ldp	w8, w9, [x21, #8]
	cmp	w8, w9
	cset	w0, ge
	bl	_OPENSSL_assert
	add	w25, w26, w25
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	str	wzr, [x21, #12]
	ldr	w27, [x21, #8]
	cmp	w27, #1
	b.lt	LBB0_11
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x1, [x21, #24]
LBB0_23:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x2, x27
	bl	_BIO_write
	mov	x28, x0
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	subs	w27, w27, w28
	cset	w0, hs
	bl	_OPENSSL_assert
	ldr	w8, [x21, #12]
	add	w8, w8, w28
	str	w8, [x21, #12]
	cmp	w8, #9
	cset	w0, lt
	bl	_OPENSSL_assert
	ldp	w8, w9, [x21, #8]
	cmp	w8, w9
	cset	w0, ge
	bl	_OPENSSL_assert
	cmp	w27, #1
	b.lt	LBB0_11
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=2
	ldrsw	x8, [x21, #12]
	ldr	x9, [x21, #24]
	add	x1, x9, x8, lsl #2
	b	LBB0_23
LBB0_26:
	mov	x0, x19
	bl	_BIO_copy_next_retry
	b	LBB0_28
LBB0_27:
	mov	x0, x19
	bl	_BIO_copy_next_retry
	cmp	w25, #0
	csel	w25, w28, w25, eq
LBB0_28:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_29:
	cmp	w25, #0
	csinv	w25, w25, wzr, ne
	b	LBB0_28
LBB0_30:
	ldr	x0, [x21, #40]
	mov	x1, x20
	mov	x2, x26
	bl	_memcpy
	str	w26, [x21, #16]
	add	w25, w26, w25
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_B64_ENCODE,8,3                 ; @B64_ENCODE
	.comm	_B64_BLOCK_SIZE,4,2             ; @B64_BLOCK_SIZE
	.comm	_BIO_FLAGS_BASE64_NO_NL,4,2     ; @BIO_FLAGS_BASE64_NO_NL
	.no_dead_strip	_b64_write
.subsections_via_symbols
