	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FFmpegApi_av_base64_encode
_FFmpegApi_av_base64_encode:            ## @FFmpegApi_av_base64_encode
	.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
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	%edx, %esi
	callq	*(%rax)
	testq	%rax, %rax
	jle	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	(%rbx), %rax
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	*24(%rax)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%r15, %rdi
	callq	_AV_BASE64_SIZE
	movl	%eax, %r13d
	leal	1(%r13), %edi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movslq	%r13d, %rax
	movb	$0, (%r12,%rax)
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_av_base64_encode
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*16(%rax)
	movq	%rax, %r13
	jmp	LBB0_8
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	movq	(%rbx), %rax
	movq	_JNI_ABORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	*8(%rax)
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_free
LBB0_10:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JNI_ABORT,4,2                  ## @JNI_ABORT
	.no_dead_strip	_FFmpegApi_av_base64_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FFmpegApi_av_base64_encode
_FFmpegApi_av_base64_encode:            ; @FFmpegApi_av_base64_encode
	.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	x19, x2
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x2
	blr	x8
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	x8, [x20]
	ldr	x8, [x8, #24]
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	blr	x8
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x0, x23
	bl	_AV_BASE64_SIZE
	mov	x24, x0
	add	w0, w0, #1
	bl	_malloc
	mov	x22, x0
	cbz	x0, LBB0_6
; %bb.3:
	strb	wzr, [x22, w24, sxtw]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x3, x23
	bl	_av_base64_encode
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	mov	x23, x0
	b	LBB0_7
LBB0_5:
	mov	x23, #0
	b	LBB0_9
LBB0_6:
	mov	x23, #0
LBB0_7:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _JNI_ABORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _JNI_ABORT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	blr	x8
	cbz	x22, LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_free
LBB0_9:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_JNI_ABORT,4,2                  ; @JNI_ABORT
	.no_dead_strip	_FFmpegApi_av_base64_encode
.subsections_via_symbols
