	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CSignedMsgData_Sign
_CSignedMsgData_Sign:                   ## @CSignedMsgData_Sign
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.2:
	movq	%r14, %rcx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rcx
	movq	(%rcx,%r14), %rsi
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AT_SIGNATURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rax), %rax
	leaq	(%rax,%r13), %r9
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rcx
	leaq	(%rcx,%r14), %rdx
	cmpq	$0, 16(%rax,%r13)
	leaq	4(%rcx,%r14), %rax
	cmoveq	%rdx, %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_CryptSignHashW
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movl	(%rax,%r13), %edi
	callq	_CryptMemAlloc
	movq	(%r15), %rcx
	movq	16(%rcx), %r9
	movq	%rax, 8(%r9,%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r13, %r9
	movl	%r12d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rax, %r8
	callq	_CryptSignHashW
	movl	$0, %ebx
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	movq	(%r12), %rax
	movq	16(%rax), %rdi
	addq	%r13, %rdi
	callq	_CRYPT_ReverseBytes
	movq	%r15, %rbx
	movq	%r12, %rcx
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movq	(%rcx), %rax
	addq	$8, %r14
	addq	$24, %r13
	movq	%rsi, %rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpq	(%rax), %rsi
	jb	LBB0_4
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p)\n"

	.comm	_AT_SIGNATURE,8,3               ## @AT_SIGNATURE
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_CSignedMsgData_Sign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CSignedMsgData_Sign
_CSignedMsgData_Sign:                   ; @CSignedMsgData_Sign
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	cbz	x20, LBB0_10
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x8]
	cbz	x9, LBB0_10
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
Lloh5:
	adrp	x25, _AT_SIGNATURE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _AT_SIGNATURE@GOTPAGEOFF]
Lloh7:
	adrp	x26, _FALSE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x8, #8]
	ldr	x9, [x9, x23]
	ldr	x10, [x25]
	cmp	x9, #0
	csel	x20, x10, x9, eq
	add	x5, x8, x22
	ldr	x8, [x5, #16]
	ldr	x9, [x19, #8]
	add	x9, x9, x23
	add	x10, x9, #4
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w21, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_CryptSignHashW
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w0, [x8, x22]
	bl	_CryptMemAlloc
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	add	x5, x8, x22
	str	x0, [x5, #8]
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	mov	w3, #0
	bl	_CryptSignHashW
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	add	x0, x8, x22
	bl	_CRYPT_ReverseBytes
	cbnz	x20, LBB0_8
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x26]
	cbz	x20, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x8, [x19]
	ldr	x9, [x8]
	add	x23, x23, #8
	add	x22, x22, #24
	cmp	x24, x9
	b.lo	LBB0_3
	b	LBB0_10
LBB0_9:
	mov	x20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p)\n"

	.comm	_AT_SIGNATURE,8,3               ; @AT_SIGNATURE
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_CSignedMsgData_Sign
.subsections_via_symbols
