	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_pkey_ctrl
_rsa_pkey_ctrl:                         ## @rsa_pkey_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	$0, -32(%rbp)
	movl	$-2, %ebx
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_25
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	testq	%r15, %r15
	jne	LBB0_7
## %bb.3:
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PKCS7_SIGNER_INFO_get0_algs
	jmp	LBB0_7
LBB0_4:
	callq	_pkey_is_pss
	testl	%eax, %eax
	jne	LBB0_25
## %bb.5:
	testq	%r15, %r15
	jne	LBB0_7
## %bb.6:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_PKCS7_RECIP_INFO_get0_alg
	jmp	LBB0_7
LBB0_21:
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.22:
	leaq	-40(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_rsa_pss_get_param
	testl	%eax, %eax
	je	LBB0_23
## %bb.24:
	movq	-40(%rbp), %rdi
	callq	_EVP_MD_type
	movl	%eax, (%r14)
	movl	$2, %ebx
	jmp	LBB0_25
LBB0_9:
	cmpq	$1, %r15
	je	LBB0_12
## %bb.10:
	testq	%r15, %r15
	jne	LBB0_7
## %bb.11:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rsa_cms_sign                   ## TAILCALL
LBB0_18:
	callq	_pkey_is_pss
	testl	%eax, %eax
	jne	LBB0_25
## %bb.19:
	movq	_CMS_RECIPINFO_TRANS@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_13:
	callq	_pkey_is_pss
	testl	%eax, %eax
	jne	LBB0_25
## %bb.14:
	cmpq	$1, %r15
	je	LBB0_17
## %bb.15:
	testq	%r15, %r15
	jne	LBB0_7
## %bb.16:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rsa_cms_encrypt                ## TAILCALL
LBB0_7:
	movq	-32(%rbp), %r14
	movl	$1, %ebx
	testq	%r14, %r14
	je	LBB0_25
## %bb.8:
	movq	_NID_rsaEncryption@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OBJ_nid2obj
	movq	_V_ASN1_NULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_X509_ALGOR_set0
	jmp	LBB0_25
LBB0_26:
	movq	_NID_sha256@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$1, %ebx
	jmp	LBB0_25
LBB0_12:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rsa_cms_verify                 ## TAILCALL
LBB0_23:
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_RSAerr
LBB0_25:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rsa_cms_decrypt                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_21
	.long	L0_0_set_9
	.long	L0_0_set_18
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_CMS_RECIPINFO_TRANS,4,2        ## @CMS_RECIPINFO_TRANS
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_NID_sha256,4,2                 ## @NID_sha256
	.comm	_NID_rsaEncryption,4,2          ## @NID_rsaEncryption
	.comm	_V_ASN1_NULL,4,2                ## @V_ASN1_NULL
	.no_dead_strip	_rsa_pkey_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_pkey_ctrl
_rsa_pkey_ctrl:                         ; @rsa_pkey_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	str	xzr, [sp, #24]
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_16
; %bb.1:
	mov	x19, x3
	mov	x20, x2
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:
	cbnz	x20, LBB0_22
; %bb.3:
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_PKCS7_SIGNER_INFO_get0_algs
	b	LBB0_22
LBB0_4:
	bl	_pkey_is_pss
	cbnz	w0, LBB0_16
; %bb.5:
	cbnz	x20, LBB0_22
; %bb.6:
	add	x1, sp, #24
	mov	x0, x19
	bl	_PKCS7_RECIP_INFO_get0_alg
	b	LBB0_22
LBB0_7:
	ldr	x8, [x0]
	ldr	x0, [x8]
	cbz	x0, LBB0_17
; %bb.8:
	add	x1, sp, #16
	add	x2, sp, #8
	add	x3, sp, #4
	bl	_rsa_pss_get_param
	cbz	w0, LBB0_27
; %bb.9:
	ldr	x0, [sp, #16]
	bl	_EVP_MD_type
	str	w0, [x19]
	mov	w0, #2
	b	LBB0_25
LBB0_10:
	cmp	x20, #1
	b.eq	LBB0_26
; %bb.11:
	cbnz	x20, LBB0_22
; %bb.12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_rsa_cms_sign
LBB0_13:
	bl	_pkey_is_pss
	cbnz	w0, LBB0_16
; %bb.14:
Lloh2:
	adrp	x8, _CMS_RECIPINFO_TRANS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMS_RECIPINFO_TRANS@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	bl	_pkey_is_pss
	cbz	w0, LBB0_19
LBB0_16:
	mov	w0, #-2
	b	LBB0_25
LBB0_17:
Lloh4:
	adrp	x8, _NID_sha256@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NID_sha256@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_24
LBB0_19:
	cmp	x20, #1
	b.eq	LBB0_28
; %bb.20:
	cbnz	x20, LBB0_22
; %bb.21:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_rsa_cms_encrypt
LBB0_22:
	ldr	x19, [sp, #24]
	cbz	x19, LBB0_24
; %bb.23:
Lloh6:
	adrp	x8, _NID_rsaEncryption@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NID_rsaEncryption@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_OBJ_nid2obj
	mov	x1, x0
Lloh9:
	adrp	x8, _V_ASN1_NULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V_ASN1_NULL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_X509_ALGOR_set0
LBB0_24:
	mov	w0, #1
LBB0_25:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_26:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_rsa_cms_verify
LBB0_27:
Lloh12:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_RSAerr
	mov	w0, #0
	b	LBB0_25
LBB0_28:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_rsa_cms_decrypt
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_CMS_RECIPINFO_TRANS,4,2        ; @CMS_RECIPINFO_TRANS
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_NID_sha256,4,2                 ; @NID_sha256
	.comm	_NID_rsaEncryption,4,2          ; @NID_rsaEncryption
	.comm	_V_ASN1_NULL,4,2                ; @V_ASN1_NULL
	.no_dead_strip	_rsa_pkey_ctrl
.subsections_via_symbols
