	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CMSRC2CBCParam_set
_CMSRC2CBCParam_set:                    ## @CMSRC2CBCParam_set
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%edi, %r13d
	movl	(%rsi), %eax
	movl	4(%rsi), %edi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movl	%eax, %esi
	callq	_decode_CMSRC2CBCParameter
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
LBB0_2:
	movl	%r13d, %edi
	callq	_hx509_clear_error_string
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	-48(%rbp), %eax
	cmpl	$58, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$120, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$160, %eax
	jne	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	callq	_EVP_rc2_40_cbc
	movl	$40, %ecx
	jmp	LBB0_12
LBB0_4:
	leaq	-48(%rbp), %rdi
	callq	_free_CMSRC2CBCParameter
	movl	%r13d, %edi
	callq	_hx509_clear_error_string
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_9:
	xorl	%eax, %eax
	callq	_EVP_rc2_cbc
	movl	$128, %ecx
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
	callq	_EVP_rc2_64_cbc
	movl	$64, %ecx
LBB0_12:
	movl	%eax, 8(%r14)
	movl	%ecx, (%r12)
	testq	%r15, %r15
	je	LBB0_13
## %bb.16:
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	callq	_der_copy_octet_string
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_free_CMSRC2CBCParameter
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.17:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_2
LBB0_13:
	leaq	-48(%rbp), %rdi
	callq	_free_CMSRC2CBCParameter
LBB0_14:
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_10:
	movq	%r12, %rdi
	callq	_free
	leaq	-48(%rbp), %rdi
	callq	_free_CMSRC2CBCParameter
	movq	_HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HX509_CRYPTO_SIG_INVALID_FORMAT,4,2 ## @HX509_CRYPTO_SIG_INVALID_FORMAT
	.no_dead_strip	_CMSRC2CBCParam_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CMSRC2CBCParam_set
_CMSRC2CBCParam_set:                    ; @CMSRC2CBCParam_set
	.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	x21, x3
	mov	x20, x2
	mov	x19, x0
	ldp	w1, w0, [x1]
	add	x2, sp, #8
	mov	x3, sp
	bl	_decode_CMSRC2CBCParameter
	cbz	w0, LBB0_4
; %bb.1:
	mov	x23, x0
LBB0_2:
	mov	x0, x19
	bl	_hx509_clear_error_string
LBB0_3:
	mov	x0, x23
	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
LBB0_4:
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x22, x0
	ldr	w8, [sp, #8]
	cmp	w8, #58
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #120
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, #160
	b.ne	LBB0_17
; %bb.8:
	mov	w23, #40
	bl	_EVP_rc2_40_cbc
	b	LBB0_12
LBB0_9:
	add	x0, sp, #8
	bl	_free_CMSRC2CBCParameter
	mov	x0, x19
	bl	_hx509_clear_error_string
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	b	LBB0_3
LBB0_10:
	mov	w23, #128
	bl	_EVP_rc2_cbc
	b	LBB0_12
LBB0_11:
	mov	w23, #64
	bl	_EVP_rc2_64_cbc
LBB0_12:
	str	w0, [x20, #8]
	str	w23, [x22]
	cbz	x21, LBB0_15
; %bb.13:
	add	x8, sp, #8
	orr	x0, x8, #0x4
	mov	x1, x21
	bl	_der_copy_octet_string
	mov	x23, x0
	add	x0, sp, #8
	bl	_free_CMSRC2CBCParameter
	cbz	w23, LBB0_16
; %bb.14:
	mov	x0, x22
	bl	_free
	b	LBB0_2
LBB0_15:
	add	x0, sp, #8
	bl	_free_CMSRC2CBCParameter
LBB0_16:
	mov	w23, #0
	str	x22, [x20]
	b	LBB0_3
LBB0_17:
	mov	x0, x22
	bl	_free
	add	x0, sp, #8
	bl	_free_CMSRC2CBCParameter
Lloh3:
	adrp	x8, _HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HX509_CRYPTO_SIG_INVALID_FORMAT,4,2 ; @HX509_CRYPTO_SIG_INVALID_FORMAT
	.no_dead_strip	_CMSRC2CBCParam_set
.subsections_via_symbols
