	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksign_signature_check
_ksign_signature_check:                 ## @ksign_signature_check
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA1_DIGEST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%r13), %rdi
	callq	_ksign_get_public_key
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdx
	movq	16(%r13), %rcx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_4:
	movq	8(%r13), %rsi
	cmpq	$4, %rsi
	jl	LBB0_6
## %bb.5:
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_SHA1_putc
LBB0_6:
	movl	24(%r13), %esi
	movq	%r12, %rdi
	callq	_SHA1_putc
	cmpq	$3, 8(%r13)
	jg	LBB0_8
## %bb.7:
	movl	16(%r13), %ebx
	movl	%ebx, %eax
	shrl	$24, %eax
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_SHA1_putc
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %esi
	movq	%r12, %rdi
	callq	_SHA1_putc
	movzbl	%bh, %esi
	movq	%r12, %rdi
	callq	_SHA1_putc
	movzbl	%bl, %esi
	movq	%r12, %rdi
	callq	_SHA1_putc
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	(%rax), %rsi
	movq	8(%rax), %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	_ENOKEY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_8:
	movq	_PUBKEY_ALGO_DSA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_SHA1_putc
	movq	_DIGEST_ALGO_SHA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_SHA1_putc
	movq	32(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.10:
	movl	(%rsi), %eax
	shll	$8, %eax
	orl	4(%rsi), %eax
	movslq	%eax, %rbx
	leal	2(%rbx), %edx
	movq	%r12, %rdi
	callq	_SHA1_write
	addq	$6, %rbx
	jmp	LBB0_11
LBB0_9:
	movl	$6, %ebx
LBB0_11:
	movl	8(%r13), %eax
	movl	%eax, -80(%rbp)
	movl	$255, -76(%rbp)
	movq	%rbx, %rax
	shrq	$24, %rax
	movl	%eax, -72(%rbp)
	movq	%rbx, %rax
	shrq	$16, %rax
	movl	%eax, -68(%rbp)
	movq	%rbx, %rax
	shrq	$8, %rax
	movl	%eax, -64(%rbp)
	movl	%ebx, -60(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_SHA1_write
LBB0_12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_crypto_shash_final
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_SHA1_DIGEST_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_BYTES_PER_MPI_LIMB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	callq	_mpi_alloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_mpi_set_buffer
	testl	%eax, %eax
	js	LBB0_15
## %bb.14:
	movl	40(%r13), %esi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movq	%r12, %rdi
	callq	_DSA_verify
LBB0_15:
	movl	%eax, %ebx
LBB0_16:
	movq	%r12, %rdi
	callq	_mpi_free
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_ksign_put_public_key
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA1_DIGEST_SIZE,4,2           ## @SHA1_DIGEST_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ksign: module signed with unknown public key\n"

L_.str.1:                               ## @.str.1
	.asciz	"- signature keyid: %08x%08x ver=%u\n"

	.comm	_ENOKEY,4,2                     ## @ENOKEY
L_.str.2:                               ## @.str.2
	.asciz	"ksign: public key is %lu seconds newer than the signature [%lx < %lx]\n"

	.comm	_PUBKEY_ALGO_DSA,4,2            ## @PUBKEY_ALGO_DSA
	.comm	_DIGEST_ALGO_SHA1,4,2           ## @DIGEST_ALGO_SHA1
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BYTES_PER_MPI_LIMB,4,2         ## @BYTES_PER_MPI_LIMB
	.no_dead_strip	_ksign_signature_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ksign_signature_check
lCPI0_0:
	.quad	-24                             ; 0xffffffffffffffe8
	.quad	-16                             ; 0xfffffffffffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ksign_signature_check:                 ; @ksign_signature_check
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x22, 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, #-56]
Lloh3:
	adrp	x23, _SHA1_DIGEST_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SHA1_DIGEST_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x0, [x0]
	bl	_ksign_get_public_key
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x10, [x19, #16]
	subs	x9, x8, x10
	b.le	LBB0_3
; %bb.2:
	sub	sp, sp, #32
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	add	sp, sp, #32
LBB0_3:
	ldr	x1, [x19, #8]
	cmp	x1, #4
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_SHA1_putc
LBB0_5:
	ldr	w1, [x19, #24]
	mov	x0, x22
	bl	_SHA1_putc
	ldr	x8, [x19, #8]
	cmp	x8, #3
	b.gt	LBB0_8
; %bb.6:
	ldr	w24, [x19, #16]
	lsr	w1, w24, #24
	mov	x0, x22
	bl	_SHA1_putc
	ubfx	w1, w24, #16, #8
	mov	x0, x22
	bl	_SHA1_putc
	ubfx	w1, w24, #8, #8
	mov	x0, x22
	bl	_SHA1_putc
	and	w1, w24, #0xff
	mov	x0, x22
	bl	_SHA1_putc
	b	LBB0_12
LBB0_7:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	ldp	x8, x9, [x19]
	ldp	x10, x8, [x8]
	sub	sp, sp, #32
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	add	sp, sp, #32
Lloh13:
	adrp	x8, _ENOKEY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOKEY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_8:
Lloh16:
	adrp	x8, _PUBKEY_ALGO_DSA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PUBKEY_ALGO_DSA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_SHA1_putc
Lloh19:
	adrp	x8, _DIGEST_ALGO_SHA1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DIGEST_ALGO_SHA1@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_SHA1_putc
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_10
; %bb.9:
	ldp	w8, w9, [x1]
	orr	w8, w9, w8, lsl #8
	sxtw	x24, w8
	add	w2, w8, #2
	mov	x0, x22
	bl	_SHA1_write
	add	x8, x24, #6
	b	LBB0_11
LBB0_10:
	mov	w8, #6
LBB0_11:
	ldr	x9, [x19, #8]
	mov	w10, #255
	stp	w9, w10, [x29, #-80]
	dup.2d	v0, x8
Lloh22:
	adrp	x9, lCPI0_0@PAGE
Lloh23:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	ushl.2d	v0, v0, v1
	xtn.2s	v0, v0
	stur	d0, [x29, #-72]
	lsr	x9, x8, #8
	stp	w9, w8, [x29, #-64]
	sub	x1, x29, #80
	mov	x0, x22
	mov	w2, #6
	bl	_SHA1_write
LBB0_12:
	mov	x0, x22
	mov	x1, x21
	bl	_crypto_shash_final
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
	ldr	w8, [x23]
Lloh27:
	adrp	x9, _BYTES_PER_MPI_LIMB@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BYTES_PER_MPI_LIMB@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w8, w8, #1
	sdiv	w0, w8, w9
	bl	_mpi_alloc
	mov	x22, x0
	cbz	x0, LBB0_16
; %bb.13:
	ldr	w2, [x23]
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	bl	_mpi_set_buffer
	tbnz	w0, #31, LBB0_15
; %bb.14:
	ldr	w1, [x19, #40]
	ldr	w2, [x20, #8]
	mov	x0, x22
	bl	_DSA_verify
LBB0_15:
	mov	x21, x0
	b	LBB0_17
LBB0_16:
	neg	w21, w24
LBB0_17:
	mov	x0, x22
	bl	_mpi_free
	mov	x0, x20
	bl	_ksign_put_public_key
LBB0_18:
	ldur	x8, [x29, #-56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA1_DIGEST_SIZE,4,2           ; @SHA1_DIGEST_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ksign: module signed with unknown public key\n"

l_.str.1:                               ; @.str.1
	.asciz	"- signature keyid: %08x%08x ver=%u\n"

	.comm	_ENOKEY,4,2                     ; @ENOKEY
l_.str.2:                               ; @.str.2
	.asciz	"ksign: public key is %lu seconds newer than the signature [%lx < %lx]\n"

	.comm	_PUBKEY_ALGO_DSA,4,2            ; @PUBKEY_ALGO_DSA
	.comm	_DIGEST_ALGO_SHA1,4,2           ; @DIGEST_ALGO_SHA1
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BYTES_PER_MPI_LIMB,4,2         ; @BYTES_PER_MPI_LIMB
	.no_dead_strip	_ksign_signature_check
.subsections_via_symbols
