	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_pkcs7_parse_signeddata
_r_pkcs7_parse_signeddata:              ## @r_pkcs7_parse_signeddata
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.2:
	cmpl	$4, 16(%r15)
	jl	LBB0_16
## %bb.3:
	movq	%rdi, %r14
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	24(%r15), %r12
	movq	(%r12), %rax
	movq	32(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	24(%r14), %rdi
	movq	8(%r12), %rsi
	callq	_r_pkcs7_parse_digestalgorithmidentifier
	leaq	20(%r14), %rdi
	movq	16(%r12), %rsi
	callq	_r_pkcs7_parse_contentinfo
	movl	16(%r15), %eax
	movl	$3, %ecx
	cmpl	$4, %eax
	jl	LBB0_14
## %bb.4:
	movq	24(%r12), %rsi
	movl	$3, %ebx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.5:
	movq	(%rsi), %rcx
	movq	_CLASS_CONTEXT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.6:
	cmpl	$0, 8(%rsi)
	jne	LBB0_8
## %bb.7:
	leaq	16(%r14), %rdi
	callq	_r_pkcs7_parse_extendedcertificatesandcertificates
	movl	16(%r15), %eax
	movl	$4, %ebx
	movl	$4, %ecx
	cmpl	$4, %eax
	jl	LBB0_14
LBB0_8:
	movl	%eax, %edx
	movl	$4, %ecx
	cmpq	%rdx, %rbx
	jae	LBB0_14
## %bb.9:
	movq	(%r12,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.10:
	movq	(%rsi), %rcx
	movq	_CLASS_CONTEXT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.11:
	cmpl	$1, 8(%rsi)
	jne	LBB0_13
## %bb.12:
	leaq	12(%r14), %rdi
	callq	_r_pkcs7_parse_certificaterevocationlists
	incq	%rbx
	movl	16(%r15), %eax
LBB0_13:
	movq	%rbx, %rcx
LBB0_14:
	cltq
	movl	$1, %ebx
	cmpq	%rax, %rcx
	jae	LBB0_16
## %bb.15:
	addq	$8, %r14
	movq	(%r12,%rcx,8), %rsi
	movq	%r14, %rdi
	callq	_r_pkcs7_parse_signerinfos
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLASS_CONTEXT,8,3              ## @CLASS_CONTEXT
	.no_dead_strip	_r_pkcs7_parse_signeddata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_pkcs7_parse_signeddata
_r_pkcs7_parse_signeddata:              ; @r_pkcs7_parse_signeddata
	.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	x19, x0
	mov	w0, #0
	cbz	x19, LBB0_19
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_19
; %bb.2:
	ldr	w8, [x20, #16]
	cmp	w8, #4
	b.ge	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_19
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x22, [x20, #24]
	ldp	x8, x1, [x22]
	ldr	x8, [x8, #32]
	ldr	x8, [x8]
	mov	x21, x19
	str	x8, [x21], #20
	add	x0, x19, #24
	bl	_r_pkcs7_parse_digestalgorithmidentifier
	ldr	x1, [x22, #16]
	mov	x0, x21
	bl	_r_pkcs7_parse_contentinfo
	ldr	w8, [x20, #16]
	cmp	w8, #4
	b.lt	LBB0_14
; %bb.5:
	ldr	x1, [x22, #24]
	cbz	x1, LBB0_8
; %bb.6:
	ldr	x9, [x1]
Lloh0:
	adrp	x10, _CLASS_CONTEXT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CLASS_CONTEXT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:
	ldr	w9, [x1, #8]
	cbz	w9, LBB0_20
LBB0_8:
	mov	w21, #3
LBB0_9:
	cmp	x21, w8, uxtw
	b.hs	LBB0_15
; %bb.10:
	ldr	x1, [x22, x21, lsl #3]
	cbz	x1, LBB0_16
; %bb.11:
	ldr	x9, [x1]
Lloh3:
	adrp	x10, _CLASS_CONTEXT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CLASS_CONTEXT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_16
; %bb.12:
	ldr	w9, [x1, #8]
	cmp	w9, #1
	b.ne	LBB0_16
; %bb.13:
	add	x0, x19, #12
	bl	_r_pkcs7_parse_certificaterevocationlists
	add	x21, x21, #1
	ldr	w8, [x20, #16]
	b	LBB0_16
LBB0_14:
	mov	w21, #3
	b	LBB0_16
LBB0_15:
	mov	w21, #4
LBB0_16:
	cmp	x21, w8, sxtw
	b.hs	LBB0_18
; %bb.17:
	add	x0, x19, #8
	ldr	x1, [x22, x21, lsl #3]
	bl	_r_pkcs7_parse_signerinfos
LBB0_18:
	mov	w0, #1
LBB0_19:
	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_20:
	add	x0, x19, #16
	bl	_r_pkcs7_parse_extendedcertificatesandcertificates
	ldr	w8, [x20, #16]
	mov	w21, #4
	cmp	w8, #4
	b.ge	LBB0_9
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CLASS_CONTEXT,8,3              ; @CLASS_CONTEXT
	.no_dead_strip	_r_pkcs7_parse_signeddata
.subsections_via_symbols
