	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtmpe_gen_pub_key           ## -- Begin function ff_rtmpe_gen_pub_key
	.p2align	4, 0x90
_ff_rtmpe_gen_pub_key:                  ## @ff_rtmpe_gen_pub_key
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movl	$1024, %edi                     ## imm = 0x400
	callq	_ff_dh_init
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	movl	$768, %esi                      ## imm = 0x300
	movl	$632, %edx                      ## imm = 0x278
	movl	$8, %ecx
	callq	_ff_rtmp_calc_digest_pos
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	callq	_ff_dh_generate_public_key
	testl	%eax, %eax
	js	LBB0_3
## %bb.7:
	movl	(%rbx), %edi
	movl	%r15d, %eax
	leaq	(%r14,%rax,4), %rsi
	movl	$128, %edx
	callq	_ff_dh_write_public_key
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtmpe_gen_pub_key           ; -- Begin function ff_rtmpe_gen_pub_key
	.p2align	2
_ff_rtmpe_gen_pub_key:                  ; @ff_rtmpe_gen_pub_key
	.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	x19, x1
	ldr	x21, [x0]
	mov	w0, #1024
	bl	_ff_dh_init
	str	w0, [x21]
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #768
	mov	w2, #632
	mov	w3, #8
	bl	_ff_rtmp_calc_digest_pos
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [x21]
	bl	_ff_dh_generate_public_key
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w0, [x21]
	add	x1, x19, w20, uxtw #2
	mov	w2, #128
	bl	_ff_dh_write_public_key
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	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
	b	_AVERROR
LBB0_5:
	mov	x20, x0
LBB0_6:
	mov	x0, x20
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
