	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_hash_write_ctrl
_stm32_hash_write_ctrl:                 ## @stm32_hash_write_ctrl
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_ahash_request_ctx
	movq	%rax, %r14
	movl	8(%rbx), %edi
	callq	_crypto_ahash_reqtfm
	movq	%rax, %rdi
	callq	_crypto_ahash_ctx
	movl	(%rbx), %edx
	movq	_HASH_FLAGS_INIT@GOTPCREL(%rip), %r15
	testl	%edx, (%r15)
	je	LBB0_1
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_HASH_CR_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r14), %esi
	movq	_HASH_FLAGS_ALGO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	addl	$-128, %ecx
	cmpl	$2, %ecx
	ja	LBB0_2
## %bb.3:
	movslq	%ecx, %r8
	leaq	l_switch.table.stm32_hash_write_ctrl(%rip), %rcx
	movq	(%rcx,%r8,8), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_HASH_CR_ALGO_MD5@GOTPCREL(%rip), %rcx
LBB0_4:
	orl	(%rcx), %edi
	movl	4(%r14), %r14d
	movq	_HASH_CR_DATATYPE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	orl	%edi, %r14d
	movq	_HASH_FLAGS_HMAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%esi, %ecx
	je	LBB0_7
## %bb.5:
	orl	%edx, %ecx
	movl	%ecx, (%rbx)
	movq	_HASH_CR_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movq	(%rax), %rax
	movq	_HASH_LONG_KEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movq	_HASH_CR_LKEY@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_7:
	movq	_HASH_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HASH_DCIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stm32_hash_write
	movq	_HASH_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stm32_hash_write
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_CR_INIT,4,2               ## @HASH_CR_INIT
	.comm	_HASH_FLAGS_INIT,4,2            ## @HASH_FLAGS_INIT
	.comm	_HASH_FLAGS_ALGO_MASK,4,2       ## @HASH_FLAGS_ALGO_MASK
	.comm	_HASH_CR_ALGO_MD5,4,2           ## @HASH_CR_ALGO_MD5
	.comm	_HASH_CR_ALGO_SHA1,4,2          ## @HASH_CR_ALGO_SHA1
	.comm	_HASH_CR_ALGO_SHA224,4,2        ## @HASH_CR_ALGO_SHA224
	.comm	_HASH_CR_ALGO_SHA256,4,2        ## @HASH_CR_ALGO_SHA256
	.comm	_HASH_CR_DATATYPE_POS,4,2       ## @HASH_CR_DATATYPE_POS
	.comm	_HASH_FLAGS_HMAC,4,2            ## @HASH_FLAGS_HMAC
	.comm	_HASH_CR_MODE,4,2               ## @HASH_CR_MODE
	.comm	_HASH_LONG_KEY,8,3              ## @HASH_LONG_KEY
	.comm	_HASH_CR_LKEY,4,2               ## @HASH_CR_LKEY
	.comm	_HASH_IMR,4,2                   ## @HASH_IMR
	.comm	_HASH_DCIE,4,2                  ## @HASH_DCIE
	.comm	_HASH_CR,4,2                    ## @HASH_CR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write Control %x\n"

	.no_dead_strip	_stm32_hash_write_ctrl
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.stm32_hash_write_ctrl
l_switch.table.stm32_hash_write_ctrl:
	.quad	_HASH_CR_ALGO_SHA256
	.quad	_HASH_CR_ALGO_SHA224
	.quad	_HASH_CR_ALGO_SHA1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_hash_write_ctrl
_stm32_hash_write_ctrl:                 ; @stm32_hash_write_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	w0, [x0, #8]
	bl	_ahash_request_ctx
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_crypto_ahash_reqtfm
	bl	_crypto_ahash_ctx
	ldr	w8, [x19]
Lloh0:
	adrp	x21, _HASH_FLAGS_INIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HASH_FLAGS_INIT@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x9, _HASH_CR_INIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HASH_CR_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
	ldr	w9, [x20]
Lloh5:
	adrp	x11, _HASH_FLAGS_ALGO_MASK@GOTPAGE
Lloh6:
	ldr	x11, [x11, _HASH_FLAGS_ALGO_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	and	w11, w11, w9
	sub	w11, w11, #128
	cmp	w11, #2
	b.hi	LBB0_4
; %bb.3:
Lloh8:
	adrp	x12, l_switch.table.stm32_hash_write_ctrl@PAGE
Lloh9:
	add	x12, x12, l_switch.table.stm32_hash_write_ctrl@PAGEOFF
	ldr	x11, [x12, w11, sxtw #3]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x11, _HASH_CR_ALGO_MD5@GOTPAGE
Lloh11:
	ldr	x11, [x11, _HASH_CR_ALGO_MD5@GOTPAGEOFF]
LBB0_5:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	w11, [x20, #4]
Lloh12:
	adrp	x12, _HASH_CR_DATATYPE_POS@GOTPAGE
Lloh13:
	ldr	x12, [x12, _HASH_CR_DATATYPE_POS@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	lsl	w11, w11, w12
	orr	w20, w10, w11
Lloh15:
	adrp	x10, _HASH_FLAGS_HMAC@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HASH_FLAGS_HMAC@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.6:
	orr	w8, w10, w8
	str	w8, [x19]
Lloh18:
	adrp	x8, _HASH_CR_MODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HASH_CR_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	x8, [x0]
Lloh21:
	adrp	x9, _HASH_LONG_KEY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HASH_LONG_KEY@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.7:
Lloh24:
	adrp	x8, _HASH_CR_LKEY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HASH_CR_LKEY@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_8:
Lloh27:
	adrp	x8, _HASH_IMR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HASH_IMR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _HASH_DCIE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HASH_DCIE@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stm32_hash_write
Lloh33:
	adrp	x8, _HASH_CR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HASH_CR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_stm32_hash_write
	ldr	w8, [x21]
	ldp	w9, w0, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_CR_INIT,4,2               ; @HASH_CR_INIT
	.comm	_HASH_FLAGS_INIT,4,2            ; @HASH_FLAGS_INIT
	.comm	_HASH_FLAGS_ALGO_MASK,4,2       ; @HASH_FLAGS_ALGO_MASK
	.comm	_HASH_CR_ALGO_MD5,4,2           ; @HASH_CR_ALGO_MD5
	.comm	_HASH_CR_ALGO_SHA1,4,2          ; @HASH_CR_ALGO_SHA1
	.comm	_HASH_CR_ALGO_SHA224,4,2        ; @HASH_CR_ALGO_SHA224
	.comm	_HASH_CR_ALGO_SHA256,4,2        ; @HASH_CR_ALGO_SHA256
	.comm	_HASH_CR_DATATYPE_POS,4,2       ; @HASH_CR_DATATYPE_POS
	.comm	_HASH_FLAGS_HMAC,4,2            ; @HASH_FLAGS_HMAC
	.comm	_HASH_CR_MODE,4,2               ; @HASH_CR_MODE
	.comm	_HASH_LONG_KEY,8,3              ; @HASH_LONG_KEY
	.comm	_HASH_CR_LKEY,4,2               ; @HASH_CR_LKEY
	.comm	_HASH_IMR,4,2                   ; @HASH_IMR
	.comm	_HASH_DCIE,4,2                  ; @HASH_DCIE
	.comm	_HASH_CR,4,2                    ; @HASH_CR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write Control %x\n"

	.no_dead_strip	_stm32_hash_write_ctrl
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.stm32_hash_write_ctrl
l_switch.table.stm32_hash_write_ctrl:
	.quad	_HASH_CR_ALGO_SHA256
	.quad	_HASH_CR_ALGO_SHA224
	.quad	_HASH_CR_ALGO_SHA1

.subsections_via_symbols
