	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS7_set_type                 ## -- Begin function PKCS7_set_type
	.p2align	4, 0x90
_PKCS7_set_type:                        ## @PKCS7_set_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_OBJ_nid2obj
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_18
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_6:
	movq	%rax, 48(%r14)
	xorl	%eax, %eax
	callq	_PKCS7_SIGN_ENVELOPE_new
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movl	8(%rax), %edi
	movl	$1, %ebx
	movl	$1, %esi
	callq	_ASN1_INTEGER_set
	testl	%eax, %eax
	je	LBB0_19
## %bb.8:
	movl	$133, %edi
	callq	_OBJ_nid2obj
	movq	24(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_20
LBB0_18:
	movq	_PKCS7_F_PKCS7_SET_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS7_R_UNSUPPORTED_CONTENT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS7err
	jmp	LBB0_19
LBB0_2:
	movq	%rax, 48(%r14)
	xorl	%eax, %eax
	callq	_PKCS7_SIGNED_new
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movl	(%rax), %edi
	movl	$1, %ebx
	movl	$1, %esi
	callq	_ASN1_INTEGER_set
	testl	%eax, %eax
	jne	LBB0_20
## %bb.4:
	movq	40(%r14), %rdi
	callq	_PKCS7_SIGNED_free
	movq	$0, 40(%r14)
	jmp	LBB0_19
LBB0_9:
	movq	%rax, 48(%r14)
	xorl	%eax, %eax
	callq	_PKCS7_ENVELOPE_new
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movl	8(%rax), %edi
	xorl	%esi, %esi
	callq	_ASN1_INTEGER_set
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:
	movl	$133, %edi
	callq	_OBJ_nid2obj
	movq	16(%r14), %rcx
	jmp	LBB0_12
LBB0_13:
	movq	%rax, 48(%r14)
	xorl	%eax, %eax
	callq	_PKCS7_ENCRYPT_new
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movl	8(%rax), %edi
	xorl	%esi, %esi
	callq	_ASN1_INTEGER_set
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movl	$133, %edi
	callq	_OBJ_nid2obj
	movq	8(%r14), %rcx
LBB0_12:
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_20
LBB0_16:
	movq	%rax, 48(%r14)
	xorl	%eax, %eax
	callq	_PKCS7_DIGEST_new
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ASN1_INTEGER_set
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_19
LBB0_5:
	movq	%rax, 48(%r14)
	xorl	%eax, %eax
	callq	_ASN1_OCTET_STRING_new
	movq	%rax, 32(%r14)
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_20
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_PKCS7_F_PKCS7_SET_TYPE,4,2     ## @PKCS7_F_PKCS7_SET_TYPE
	.comm	_PKCS7_R_UNSUPPORTED_CONTENT_TYPE,4,2 ## @PKCS7_R_UNSUPPORTED_CONTENT_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS7_set_type                 ; -- Begin function PKCS7_set_type
	.p2align	2
_PKCS7_set_type:                        ; @PKCS7_set_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_OBJ_nid2obj
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.1:
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:
	str	x0, [x19, #48]
	bl	_PKCS7_SIGN_ENVELOPE_new
	str	x0, [x19, #24]
	cbz	x0, LBB0_18
; %bb.3:
	ldr	w0, [x0, #8]
	mov	w1, #1
	bl	_ASN1_INTEGER_set
	cbz	w0, LBB0_18
; %bb.4:
	mov	w0, #133
	bl	_OBJ_nid2obj
	ldr	x8, [x19, #24]
	b	LBB0_15
LBB0_5:
Lloh2:
	adrp	x8, _PKCS7_F_PKCS7_SET_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PKCS7_F_PKCS7_SET_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _PKCS7_R_UNSUPPORTED_CONTENT_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PKCS7_R_UNSUPPORTED_CONTENT_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_PKCS7err
	b	LBB0_18
LBB0_6:
	str	x0, [x19, #48]
	bl	_PKCS7_SIGNED_new
	str	x0, [x19, #40]
	cbz	x0, LBB0_18
; %bb.7:
	ldr	w0, [x0]
	mov	w20, #1
	mov	w1, #1
	bl	_ASN1_INTEGER_set
	cbnz	w0, LBB0_19
; %bb.8:
	ldr	x0, [x19, #40]
	bl	_PKCS7_SIGNED_free
	str	xzr, [x19, #40]
	b	LBB0_18
LBB0_9:
	str	x0, [x19, #48]
	bl	_PKCS7_ENVELOPE_new
	str	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.10:
	ldr	w0, [x0, #8]
	mov	w1, #0
	bl	_ASN1_INTEGER_set
	cbz	w0, LBB0_18
; %bb.11:
	mov	w0, #133
	bl	_OBJ_nid2obj
	ldr	x8, [x19, #16]
	b	LBB0_15
LBB0_12:
	str	x0, [x19, #48]
	bl	_PKCS7_ENCRYPT_new
	str	x0, [x19, #8]
	cbz	x0, LBB0_18
; %bb.13:
	ldr	w0, [x0, #8]
	mov	w1, #0
	bl	_ASN1_INTEGER_set
	cbz	w0, LBB0_18
; %bb.14:
	mov	w0, #133
	bl	_OBJ_nid2obj
	ldr	x8, [x19, #8]
LBB0_15:
	ldr	x8, [x8]
	str	x0, [x8]
	mov	w20, #1
	b	LBB0_19
LBB0_16:
	str	x0, [x19, #48]
	bl	_PKCS7_DIGEST_new
	str	x0, [x19]
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w0, [x0]
	mov	w1, #0
	bl	_ASN1_INTEGER_set
	cbnz	w0, LBB0_21
LBB0_18:
	mov	w20, #0
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_20:
	str	x0, [x19, #48]
	bl	_ASN1_OCTET_STRING_new
	str	x0, [x19, #32]
	cbz	x0, LBB0_18
LBB0_21:
	mov	w20, #1
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
                                        ; -- End function
	.comm	_PKCS7_F_PKCS7_SET_TYPE,4,2     ; @PKCS7_F_PKCS7_SET_TYPE
	.comm	_PKCS7_R_UNSUPPORTED_CONTENT_TYPE,4,2 ; @PKCS7_R_UNSUPPORTED_CONTENT_TYPE
.subsections_via_symbols
