	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS7_ctrl                     ## -- Begin function PKCS7_ctrl
	.p2align	4, 0x90
_PKCS7_ctrl:                            ## @PKCS7_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_OBJ_obj2nid
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_12
## %bb.2:
	movq	_NID_pkcs7_signed@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.3:
	movq	%r15, %rax
	shlq	$32, %rax
	movslq	%r15d, %rbx
	movq	%rbx, (%r14)
	je	LBB0_14
## %bb.4:
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	callq	_PKCS7_type_is_data
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	callq	_ASN1_OCTET_STRING_free
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	$0, 8(%rax)
	jmp	LBB0_15
LBB0_6:
	movq	_NID_pkcs7_signed@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.7:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	sete	%bl
	movq	%rbx, (%r14)
	jmp	LBB0_15
LBB0_12:
	movq	_PKCS7_F_PKCS7_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS7_R_UNKNOWN_OPERATION@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_PKCS7_F_PKCS7_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	callq	_PKCS7err
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$1, %ebx
	movq	%rbx, (%r14)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_pkcs7_signed,4,2           ## @NID_pkcs7_signed
	.comm	_PKCS7_F_PKCS7_CTRL,4,2         ## @PKCS7_F_PKCS7_CTRL
	.comm	_PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE,4,2 ## @PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE
	.comm	_PKCS7_R_UNKNOWN_OPERATION,4,2  ## @PKCS7_R_UNKNOWN_OPERATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS7_ctrl                     ; -- Begin function PKCS7_ctrl
	.p2align	2
_PKCS7_ctrl:                            ; @PKCS7_ctrl
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_OBJ_obj2nid
	cmp	w21, #129
	b.eq	LBB0_6
; %bb.1:
	cmp	w21, #128
	b.ne	LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _NID_pkcs7_signed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_pkcs7_signed@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.3:
	lsl	x8, x20, #32
	sxtw	x20, w20
	str	x20, [x19]
	cbz	x8, LBB0_12
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_PKCS7_type_is_data
	cbz	w0, LBB0_13
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	bl	_ASN1_OCTET_STRING_free
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	xzr, [x8, #8]
	b	LBB0_13
LBB0_6:
Lloh3:
	adrp	x8, _NID_pkcs7_signed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_pkcs7_signed@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.8:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w20, eq
	str	x20, [x19]
	b	LBB0_13
LBB0_9:
Lloh6:
	adrp	x8, _PKCS7_F_PKCS7_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKCS7_F_PKCS7_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _PKCS7_R_UNKNOWN_OPERATION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PKCS7_R_UNKNOWN_OPERATION@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _PKCS7_F_PKCS7_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PKCS7_F_PKCS7_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	bl	_PKCS7err
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x20
	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
LBB0_14:
	mov	w20, #1
	str	x20, [x19]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_pkcs7_signed,4,2           ; @NID_pkcs7_signed
	.comm	_PKCS7_F_PKCS7_CTRL,4,2         ; @PKCS7_F_PKCS7_CTRL
	.comm	_PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE,4,2 ; @PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE
	.comm	_PKCS7_R_UNKNOWN_OPERATION,4,2  ; @PKCS7_R_UNKNOWN_OPERATION
.subsections_via_symbols
