	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_pkcs7_signed_attrib
_do_pkcs7_signed_attrib:                ## @do_pkcs7_signed_attrib
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_NID_pkcs9_signingTime@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_PKCS7_get_signed_attribute
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_PKCS7_add0_attrib_signing_time
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_EVP_DigestFinal_ex
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_PKCS7_add1_attrib_digest
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_PKCS7_SIGNER_INFO_sign
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_9
LBB0_4:
	movq	_PKCS7_F_DO_PKCS7_SIGNED_ATTRIB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_PKCS7_F_DO_PKCS7_SIGNED_ATTRIB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	callq	_PKCS7err
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_PKCS7_F_DO_PKCS7_SIGNED_ATTRIB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS7err
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_NID_pkcs9_signingTime,4,2      ## @NID_pkcs9_signingTime
	.comm	_PKCS7_F_DO_PKCS7_SIGNED_ATTRIB,4,2 ## @PKCS7_F_DO_PKCS7_SIGNED_ATTRIB
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
	.no_dead_strip	_do_pkcs7_signed_attrib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_pkcs7_signed_attrib
_do_pkcs7_signed_attrib:                ; @do_pkcs7_signed_attrib
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _NID_pkcs9_signingTime@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NID_pkcs9_signingTime@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_PKCS7_get_signed_attribute
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	bl	_PKCS7_add0_attrib_signing_time
	cbz	w0, LBB0_5
LBB0_2:
	sub	x2, x29, #44
	mov	x0, x20
	mov	x1, x21
	bl	_EVP_DigestFinal_ex
	cbz	w0, LBB0_6
; %bb.3:
	ldur	w2, [x29, #-44]
	mov	x0, x19
	mov	x1, x21
	bl	_PKCS7_add1_attrib_digest
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_PKCS7_SIGNER_INFO_sign
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _PKCS7_F_DO_PKCS7_SIGNED_ATTRIB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PKCS7_F_DO_PKCS7_SIGNED_ATTRIB@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _PKCS7_F_DO_PKCS7_SIGNED_ATTRIB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PKCS7_F_DO_PKCS7_SIGNED_ATTRIB@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	bl	_PKCS7err
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #32
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_NID_pkcs9_signingTime,4,2      ; @NID_pkcs9_signingTime
	.comm	_PKCS7_F_DO_PKCS7_SIGNED_ATTRIB,4,2 ; @PKCS7_F_DO_PKCS7_SIGNED_ATTRIB
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
	.no_dead_strip	_do_pkcs7_signed_attrib
.subsections_via_symbols
