	.file	"extr_mz_crypt_apple.c_mz_crypt_aes_set_decrypt_key.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mz_crypt_aes_set_decrypt_key
	.type	mz_crypt_aes_set_decrypt_key, @function
mz_crypt_aes_set_decrypt_key:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	test	rsi, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	sete	dl
	test	rbp, rbp
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sete	al
	or	dl, al
	jne	.L6
	mov	rbx, rdi
	test	rdi, rdi
	jne	.L2
.L6:
	mov	rax, QWORD PTR MZ_PARAM_ERROR[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12, rsi
	call	mz_crypt_aes_reset@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rax, 8[rbx]
	xor	r9d, r9d
	push	rax
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR kCCOptionECBMode[rip]
	mov	rcx, r12
	mov	r8, rbp
	mov	esi, DWORD PTR kCCAlgorithmAES[rip]
	mov	edi, DWORD PTR kCCDecrypt[rip]
	call	CCCryptorCreate@PLT
	mov	rdx, rax
	cmp	rdx, QWORD PTR kCCSuccess[rip]
	mov	QWORD PTR [rbx], rax
	pop	rax
	.cfi_def_cfa_offset 40
	mov	rax, QWORD PTR MZ_OK[rip]
	pop	rcx
	.cfi_def_cfa_offset 32
	je	.L1
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rax, QWORD PTR MZ_HASH_ERROR[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mz_crypt_aes_set_decrypt_key, .-mz_crypt_aes_set_decrypt_key
	.comm	kCCSuccess,8,8
	.comm	kCCOptionECBMode,4,4
	.comm	kCCDecrypt,4,4
	.comm	kCCAlgorithmAES,4,4
	.comm	MZ_PARAM_ERROR,8,8
	.comm	MZ_OK,8,8
	.comm	MZ_HASH_ERROR,8,8
	.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_aes_set_decrypt_key.c"
	.text
	.align	2
	.global	mz_crypt_aes_set_decrypt_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	mz_crypt_aes_set_decrypt_key, %function
mz_crypt_aes_set_decrypt_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	ip, r2
	cmp	r1, #0
	lsr	ip, ip, #5
	moveq	ip, #1
	cmp	r0, #0
	push	{r4, r5, r6, r7, lr}
	movne	r4, ip
	moveq	r4, #1
	cmp	r4, #0
	sub	sp, sp, #20
	beq	.L2
	ldr	r3, .L7
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r6, r2
	mov	r7, r0
	mov	r5, r1
	bl	mz_crypt_aes_reset
	ldr	r2, .L7+4
	ldr	r1, .L7+8
	ldr	r0, .L7+12
	str	r4, [sp, #4]
	str	r6, [sp]
	add	ip, r7, #4
	mov	r3, r5
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	ip, [sp, #8]
	bl	CCCryptorCreate
	ldr	r3, .L7+16
	str	r0, [r7]
	ldr	r3, [r3]
	cmp	r0, r3
	ldrne	r3, .L7+20
	ldreq	r3, .L7+24
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	MZ_PARAM_ERROR
	.word	kCCOptionECBMode
	.word	kCCAlgorithmAES
	.word	kCCDecrypt
	.word	kCCSuccess
	.word	MZ_HASH_ERROR
	.word	MZ_OK
	.size	mz_crypt_aes_set_decrypt_key, .-mz_crypt_aes_set_decrypt_key
	.comm	kCCSuccess,4,4
	.comm	kCCOptionECBMode,4,4
	.comm	kCCDecrypt,4,4
	.comm	kCCAlgorithmAES,4,4
	.comm	MZ_PARAM_ERROR,4,4
	.comm	MZ_OK,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
