	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ead_encrypt_message            ## -- Begin function ead_encrypt_message
	.p2align	4, 0x90
_ead_encrypt_message:                   ## @ead_encrypt_message
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_EAD_DATA
	movq	%rax, %rbx
	leal	24(%r14), %eax
	movq	_EAD_ENC_PAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	divl	%ecx
	movl	%ecx, %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edx, (%rbx)
	addl	%edx, %r14d
	addl	$24, %r14d
	movl	%r14d, %edi
	callq	_htonl
	movq	%rax, (%r15)
	xorl	%eax, %eax
	callq	_ead_get_tx_iv
	movl	%eax, %edi
	callq	_htonl
	movq	%rax, 16(%rbx)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ead_hash_message
	movl	-64(%rbp), %edi
	callq	_htonl
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	-60(%rbp), %edi
	callq	_htonl
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	-56(%rbp), %edi
	callq	_htonl
	movq	8(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movl	-52(%rbp), %edi
	callq	_htonl
	movq	8(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movl	-48(%rbp), %edi
	callq	_htonl
	movq	8(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	8(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%r14d, %ecx
	callq	_DEBUG
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	movq	_aes_enc_ctx@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_rijndaelEncrypt
	addq	$16, %rbx
	leal	-16(%r14), %eax
	cmpl	$16, %r14d
	movl	%eax, %r14d
	ja	LBB0_2
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAD_ENC_PAD,4,2                ## @EAD_ENC_PAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHA1 generate (0x%08x), len=%d\n"

	.comm	_aes_enc_ctx,4,2                ## @aes_enc_ctx
	.comm	_enc,8,3                        ## @enc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ead_encrypt_message            ; -- Begin function ead_encrypt_message
	.p2align	2
_ead_encrypt_message:                   ; @ead_encrypt_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_EAD_DATA
	mov	x19, x0
	add	w8, w20, #24
Lloh3:
	adrp	x9, _EAD_ENC_PAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EAD_ENC_PAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	udiv	w10, w8, w9
	neg	w11, w8
	madd	w10, w10, w9, w11
	add	w10, w9, w10
	udiv	w11, w10, w9
	msub	w9, w11, w9, w10
	str	w9, [x0]
	add	w20, w9, w8
	mov	x0, x20
	bl	_htonl
	str	x0, [x21]
	bl	_ead_get_tx_iv
	bl	_htonl
	str	x0, [x19, #16]
	add	x1, sp, #4
	mov	x0, x19
	mov	x2, x20
	bl	_ead_hash_message
	ldr	w0, [sp, #4]
	bl	_htonl
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	w0, [sp, #8]
	bl	_htonl
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	w0, [sp, #12]
	bl	_htonl
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	ldr	w0, [sp, #16]
	bl	_htonl
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	ldr	w0, [sp, #20]
	bl	_htonl
	ldr	x8, [x19, #8]
	str	x0, [x8, #32]
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x3, x20
	bl	_DEBUG
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
Lloh8:
	adrp	x21, _aes_enc_ctx@GOTPAGE
Lloh9:
	ldr	x21, [x21, _aes_enc_ctx@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	mov	x2, x19
	bl	_rijndaelEncrypt
	add	x19, x19, #16
	subs	w20, w20, #16
	b.hi	LBB0_2
LBB0_3:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EAD_ENC_PAD,4,2                ; @EAD_ENC_PAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHA1 generate (0x%08x), len=%d\n"

	.comm	_aes_enc_ctx,4,2                ; @aes_enc_ctx
	.comm	_enc,8,3                        ; @enc
.subsections_via_symbols
