	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_QuerySignedMessage
_CRYPT_QuerySignedMessage:              ## @CRYPT_QuerySignedMessage
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rax
	movq	_PKCS_7_ASN_ENCODING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	orq	(%rax), %r13
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CryptMsgOpenToDecode
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_CryptMsgUpdate
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	$8, -64(%rbp)
	movq	_CMSG_TYPE_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_CryptMsgGetParam
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r15
	movq	-72(%rbp), %rax
	movq	_CMSG_SIGNED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.10:
	movq	_ERROR_INVALID_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_4
LBB0_11:
	movq	%rbx, %rdi
	callq	_CryptMsgClose
	movq	_CMSG_SIGNED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CryptMsgOpenToDecode
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	%rax, %rbx
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_CryptMsgUpdate
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %r15
	jmp	LBB0_4
LBB0_15:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_16
LBB0_4:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movq	%r13, (%r12)
LBB0_6:
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	_CERT_QUERY_CONTENT_PKCS7_SIGNED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
LBB0_8:
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.9:
	movq	%rbx, (%rcx)
	jmp	LBB0_17
LBB0_14:
	movq	%rbx, %rdi
	callq	_CryptMsgClose
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_ASN_ENCODING,8,3          ## @X509_ASN_ENCODING
	.comm	_PKCS_7_ASN_ENCODING,8,3        ## @PKCS_7_ASN_ENCODING
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CMSG_TYPE_PARAM,4,2            ## @CMSG_TYPE_PARAM
	.comm	_CMSG_SIGNED,8,3                ## @CMSG_SIGNED
	.comm	_ERROR_INVALID_DATA,4,2         ## @ERROR_INVALID_DATA
	.comm	_CERT_QUERY_CONTENT_PKCS7_SIGNED,8,3 ## @CERT_QUERY_CONTENT_PKCS7_SIGNED
	.no_dead_strip	_CRYPT_QuerySignedMessage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_QuerySignedMessage
_CRYPT_QuerySignedMessage:              ; @CRYPT_QuerySignedMessage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _X509_ASN_ENCODING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PKCS_7_ASN_ENCODING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PKCS_7_ASN_ENCODING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	orr	x22, x9, x8
Lloh6:
	adrp	x27, _FALSE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
	ldr	x25, [x27]
	mov	x0, x22
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_CryptMsgOpenToDecode
	mov	x23, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldp	w2, w1, [x24]
Lloh8:
	adrp	x26, _TRUE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x0, x23
	bl	_CryptMsgUpdate
Lloh10:
	adrp	x28, _CMSG_SIGNED@GOTPAGE
Lloh11:
	ldr	x28, [x28, _CMSG_SIGNED@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.2:
	mov	w8, #8
	str	x8, [sp]
Lloh12:
	adrp	x8, _CMSG_TYPE_PARAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMSG_TYPE_PARAM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x23
	mov	w2, #0
	bl	_CryptMsgGetParam
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x25, x0
	b	LBB0_9
LBB0_5:
	cbnz	x25, LBB0_9
	b	LBB0_17
LBB0_6:
Lloh15:
	adrp	x8, _ERROR_INVALID_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR_INVALID_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_SetLastError
	ldr	x25, [x27]
	cbnz	x25, LBB0_9
LBB0_7:
	mov	x0, x23
	bl	_CryptMsgClose
	ldr	x2, [x28]
	mov	x0, x22
	mov	w1, #0
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_CryptMsgOpenToDecode
	cbz	x0, LBB0_15
; %bb.8:
	mov	x23, x0
	ldp	w2, w1, [x24]
	ldr	w3, [x26]
	bl	_CryptMsgUpdate
	mov	x25, x0
	cbz	x0, LBB0_16
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
	str	x22, [x21]
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
Lloh18:
	adrp	x8, _CERT_QUERY_CONTENT_PKCS7_SIGNED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CERT_QUERY_CONTENT_PKCS7_SIGNED@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_13:
	cbz	x19, LBB0_17
; %bb.14:
	str	x23, [x19]
	b	LBB0_17
LBB0_15:
	mov	x25, #0
	b	LBB0_17
LBB0_16:
	mov	x0, x23
	bl	_CryptMsgClose
LBB0_17:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_ASN_ENCODING,8,3          ; @X509_ASN_ENCODING
	.comm	_PKCS_7_ASN_ENCODING,8,3        ; @PKCS_7_ASN_ENCODING
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CMSG_TYPE_PARAM,4,2            ; @CMSG_TYPE_PARAM
	.comm	_CMSG_SIGNED,8,3                ; @CMSG_SIGNED
	.comm	_ERROR_INVALID_DATA,4,2         ; @ERROR_INVALID_DATA
	.comm	_CERT_QUERY_CONTENT_PKCS7_SIGNED,8,3 ; @CERT_QUERY_CONTENT_PKCS7_SIGNED
	.no_dead_strip	_CRYPT_QuerySignedMessage
.subsections_via_symbols
