	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_poly1305_ctrl
_pkey_poly1305_ctrl:                    ## @pkey_poly1305_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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_EVP_PKEY_CTX_get_data
	movq	%rax, %r14
	cmpl	$130, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_9
## %bb.2:
	movl	$-2, %r13d
	cmpl	$128, %ebx
	jne	LBB0_10
## %bb.3:
	movslq	%r12d, %rax
	movq	%rax, -48(%rbp)
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	callq	_EVP_PKEY_CTX_get0_pkey
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_EVP_PKEY_get0_poly1305
	movq	%rax, %r15
LBB0_5:
	xorl	%r13d, %r13d
	testq	%r15, %r15
	je	LBB0_10
## %bb.6:
	movq	-48(%rbp), %rdx
	movq	_POLY1305_KEY_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ASN1_OCTET_STRING_set
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%r14, %rdi
	callq	_ASN1_STRING_get0_data
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_Poly1305_Init
LBB0_9:
	movl	$1, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLY1305_KEY_SIZE,8,3          ## @POLY1305_KEY_SIZE
	.no_dead_strip	_pkey_poly1305_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_poly1305_ctrl
_pkey_poly1305_ctrl:                    ; @pkey_poly1305_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_EVP_PKEY_CTX_get_data
	mov	x19, x0
	cmp	w22, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_10
; %bb.3:
	sxtw	x8, w21
	str	x8, [sp, #8]
	cbnz	x20, LBB0_5
	b	LBB0_9
LBB0_4:
	mov	x0, x23
	bl	_EVP_PKEY_CTX_get0_pkey
	add	x1, sp, #8
	bl	_EVP_PKEY_get0_poly1305
	mov	x20, x0
	cbz	x20, LBB0_9
LBB0_5:
	ldr	x2, [sp, #8]
Lloh0:
	adrp	x8, _POLY1305_KEY_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLY1305_KEY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_ASN1_OCTET_STRING_set
	cbz	w0, LBB0_11
; %bb.7:
	add	x20, x19, #4
	mov	x0, x19
	bl	_ASN1_STRING_get0_data
	mov	x1, x0
	mov	x0, x20
	bl	_Poly1305_Init
LBB0_8:
	mov	w0, #1
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	w0, #-2
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_POLY1305_KEY_SIZE,8,3          ; @POLY1305_KEY_SIZE
	.no_dead_strip	_pkey_poly1305_ctrl
.subsections_via_symbols
