	.file	"extr_mz_crypt_apple.c_mz_crypt_sha_begin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mz_crypt_sha_begin
	.type	mz_crypt_sha_begin, @function
mz_crypt_sha_begin:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L12
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	mz_crypt_sha_reset@PLT
	mov	rdx, QWORD PTR [rbx]
	cmp	rdx, QWORD PTR MZ_HASH_SHA1[rip]
	je	.L13
	cmp	rdx, QWORD PTR MZ_HASH_SHA256[rip]
	mov	eax, DWORD PTR MZ_PARAM_ERROR[rip]
	je	.L14
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore 3
	mov	eax, DWORD PTR MZ_PARAM_ERROR[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	lea	rdi, 16[rbx]
	call	CC_SHA256_Init@PLT
	mov	DWORD PTR 12[rbx], eax
	test	eax, eax
	je	.L15
.L7:
	mov	DWORD PTR 8[rbx], 1
	mov	eax, DWORD PTR MZ_OK[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, 20[rbx]
	call	CC_SHA1_Init@PLT
	mov	DWORD PTR 12[rbx], eax
	test	eax, eax
	jne	.L7
.L15:
	mov	eax, DWORD PTR MZ_HASH_ERROR[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mz_crypt_sha_begin, .-mz_crypt_sha_begin
	.comm	MZ_PARAM_ERROR,4,4
	.comm	MZ_OK,4,4
	.comm	MZ_HASH_SHA256,8,8
	.comm	MZ_HASH_SHA1,8,8
	.comm	MZ_HASH_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mz_crypt_apple.c_mz_crypt_sha_begin.c"
	.text
	.align	2
	.global	mz_crypt_sha_begin
	.syntax unified
	.arm
	.fpu softvfp
	.type	mz_crypt_sha_begin, %function
mz_crypt_sha_begin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	beq	.L6
	bl	mz_crypt_sha_reset
	ldr	r2, .L12
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L12+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
.L6:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L11:
	add	r0, r4, #12
	bl	CC_SHA256_Init
	str	r0, [r4, #8]
.L5:
	cmp	r0, #0
	movne	r2, #1
	ldreq	r3, .L12+12
	ldrne	r3, .L12+16
	strne	r2, [r4, #4]
	ldr	r0, [r3]
	pop	{r4, pc}
.L10:
	add	r0, r4, #16
	bl	CC_SHA1_Init
	str	r0, [r4, #8]
	b	.L5
.L13:
	.align	2
.L12:
	.word	MZ_HASH_SHA1
	.word	MZ_HASH_SHA256
	.word	MZ_PARAM_ERROR
	.word	MZ_HASH_ERROR
	.word	MZ_OK
	.size	mz_crypt_sha_begin, .-mz_crypt_sha_begin
	.comm	MZ_PARAM_ERROR,4,4
	.comm	MZ_OK,4,4
	.comm	MZ_HASH_SHA256,4,4
	.comm	MZ_HASH_SHA1,4,4
	.comm	MZ_HASH_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
