	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_sha_info_init
_mtk_sha_info_init:                     ## @mtk_sha_info_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_SHA_CT_CTRL_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	_SHA_CT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_SHA_TFM_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%rdi), %edi
	callq	_SIZE_IN_WORDS
	movl	%eax, %edi
	callq	_SHA_TFM_SIZE
	orl	%r14d, %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_SHA_FLAGS_ALGO_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rbx), %edx
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_2
## %bb.1:
	movslq	%edx, %rdx
	leaq	l_switch.table.mtk_sha_info_init(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx)
	movq	_SHA_TFM_HASH_STORE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rcx)
	movq	_SHA_TFM_CONTINUE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_SHA_TFM_START@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	24(%rbx), %rdx
	movl	%eax, (%rdx)
	movl	4(%rcx), %eax
	movl	%eax, 4(%rdx)
	movq	_SHA_CMD0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_SHA_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_SHA_CMD2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%rbx), %edi
	callq	_SIZE_IN_WORDS
	movl	%eax, %edi
	callq	_SHA_TFM_DIGEST
	orl	%r14d, %eax
	movq	32(%rbx), %rcx
	movl	%eax, 8(%rcx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA_CT_CTRL_HDR,4,2            ## @SHA_CT_CTRL_HDR
	.comm	_SHA_CT_SIZE,4,2                ## @SHA_CT_SIZE
	.comm	_SHA_TFM_HASH,4,2               ## @SHA_TFM_HASH
	.comm	_SHA_FLAGS_ALGO_MSK,4,2         ## @SHA_FLAGS_ALGO_MSK
	.comm	_SHA_TFM_SHA1,4,2               ## @SHA_TFM_SHA1
	.comm	_SHA_TFM_SHA224,4,2             ## @SHA_TFM_SHA224
	.comm	_SHA_TFM_SHA256,4,2             ## @SHA_TFM_SHA256
	.comm	_SHA_TFM_SHA384,4,2             ## @SHA_TFM_SHA384
	.comm	_SHA_TFM_SHA512,4,2             ## @SHA_TFM_SHA512
	.comm	_SHA_TFM_HASH_STORE,4,2         ## @SHA_TFM_HASH_STORE
	.comm	_SHA_TFM_CONTINUE,4,2           ## @SHA_TFM_CONTINUE
	.comm	_SHA_TFM_START,4,2              ## @SHA_TFM_START
	.comm	_SHA_CMD0,4,2                   ## @SHA_CMD0
	.comm	_SHA_CMD1,4,2                   ## @SHA_CMD1
	.comm	_SHA_CMD2,4,2                   ## @SHA_CMD2
	.no_dead_strip	_mtk_sha_info_init
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mtk_sha_info_init
l_switch.table.mtk_sha_info_init:
	.quad	_SHA_TFM_SHA512
	.quad	_SHA_TFM_SHA384
	.quad	_SHA_TFM_SHA256
	.quad	_SHA_TFM_SHA224
	.quad	_SHA_TFM_SHA1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_sha_info_init
_mtk_sha_info_init:                     ; @mtk_sha_info_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _SHA_CT_CTRL_HDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHA_CT_CTRL_HDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SHA_CT_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SHA_CT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh6:
	adrp	x8, _SHA_TFM_HASH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHA_TFM_HASH@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	w0, [x0, #4]
	bl	_SIZE_IN_WORDS
	bl	_SHA_TFM_SIZE
	orr	w9, w0, w20
	ldr	x8, [x19, #16]
	str	w9, [x8]
	ldr	w10, [x19]
Lloh9:
	adrp	x11, _SHA_FLAGS_ALGO_MSK@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SHA_FLAGS_ALGO_MSK@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	and	w10, w11, w10
	sub	w10, w10, #128
	cmp	w10, #4
	b.hi	LBB0_2
; %bb.1:
Lloh12:
	adrp	x11, l_switch.table.mtk_sha_info_init@PAGE
Lloh13:
	add	x11, x11, l_switch.table.mtk_sha_info_init@PAGEOFF
	ldr	x10, [x11, w10, sxtw #3]
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
Lloh14:
	adrp	x10, _SHA_TFM_HASH_STORE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SHA_TFM_HASH_STORE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _SHA_TFM_CONTINUE@GOTPAGE
Lloh18:
	ldr	x11, [x11, _SHA_TFM_CONTINUE@GOTPAGEOFF]
	str	w10, [x8, #4]
Lloh19:
	ldr	w10, [x11]
	orr	w9, w10, w9
Lloh20:
	adrp	x10, _SHA_TFM_START@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SHA_TFM_START@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldp	x10, x11, [x19, #24]
	str	w9, [x10]
	ldr	w8, [x8, #4]
	str	w8, [x10, #4]
Lloh23:
	adrp	x8, _SHA_CMD0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SHA_CMD0@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x11]
Lloh26:
	adrp	x8, _SHA_CMD1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SHA_CMD1@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x11, #4]
Lloh29:
	adrp	x8, _SHA_CMD2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SHA_CMD2@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
	ldr	w0, [x19, #4]
	bl	_SIZE_IN_WORDS
	bl	_SHA_TFM_DIGEST
	orr	w8, w0, w20
	ldr	x9, [x19, #32]
	str	w8, [x9, #8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA_CT_CTRL_HDR,4,2            ; @SHA_CT_CTRL_HDR
	.comm	_SHA_CT_SIZE,4,2                ; @SHA_CT_SIZE
	.comm	_SHA_TFM_HASH,4,2               ; @SHA_TFM_HASH
	.comm	_SHA_FLAGS_ALGO_MSK,4,2         ; @SHA_FLAGS_ALGO_MSK
	.comm	_SHA_TFM_SHA1,4,2               ; @SHA_TFM_SHA1
	.comm	_SHA_TFM_SHA224,4,2             ; @SHA_TFM_SHA224
	.comm	_SHA_TFM_SHA256,4,2             ; @SHA_TFM_SHA256
	.comm	_SHA_TFM_SHA384,4,2             ; @SHA_TFM_SHA384
	.comm	_SHA_TFM_SHA512,4,2             ; @SHA_TFM_SHA512
	.comm	_SHA_TFM_HASH_STORE,4,2         ; @SHA_TFM_HASH_STORE
	.comm	_SHA_TFM_CONTINUE,4,2           ; @SHA_TFM_CONTINUE
	.comm	_SHA_TFM_START,4,2              ; @SHA_TFM_START
	.comm	_SHA_CMD0,4,2                   ; @SHA_CMD0
	.comm	_SHA_CMD1,4,2                   ; @SHA_CMD1
	.comm	_SHA_CMD2,4,2                   ; @SHA_CMD2
	.no_dead_strip	_mtk_sha_info_init
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mtk_sha_info_init
l_switch.table.mtk_sha_info_init:
	.quad	_SHA_TFM_SHA512
	.quad	_SHA_TFM_SHA384
	.quad	_SHA_TFM_SHA256
	.quad	_SHA_TFM_SHA224
	.quad	_SHA_TFM_SHA1

.subsections_via_symbols
