	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cryp_get_hw_mode
_stm32_cryp_get_hw_mode:                ## @stm32_cryp_get_hw_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_is_aes
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_ecb
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_CR_AES_ECB@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_3:
	movq	%rbx, %rdi
	callq	_is_aes
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_is_cbc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_CR_AES_CBC@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_6:
	movq	%rbx, %rdi
	callq	_is_aes
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_is_ctr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_CR_AES_CTR@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_9:
	movq	%rbx, %rdi
	callq	_is_aes
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_is_gcm
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_CR_AES_GCM@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_12:
	movq	%rbx, %rdi
	callq	_is_aes
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	callq	_is_ccm
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_CR_AES_CCM@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_15:
	movq	%rbx, %rdi
	callq	_is_des
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rbx, %rdi
	callq	_is_ecb
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_CR_DES_ECB@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_18:
	movq	%rbx, %rdi
	callq	_is_des
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	%rbx, %rdi
	callq	_is_cbc
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_CR_DES_CBC@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_21:
	movq	%rbx, %rdi
	callq	_is_tdes
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	%rbx, %rdi
	callq	_is_ecb
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	_CR_TDES_ECB@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_24:
	movq	%rbx, %rdi
	callq	_is_tdes
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movq	%rbx, %rdi
	callq	_is_cbc
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	_CR_TDES_CBC@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_27:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_CR_AES_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR_AES_ECB,4,2                 ## @CR_AES_ECB
	.comm	_CR_AES_CBC,4,2                 ## @CR_AES_CBC
	.comm	_CR_AES_CTR,4,2                 ## @CR_AES_CTR
	.comm	_CR_AES_GCM,4,2                 ## @CR_AES_GCM
	.comm	_CR_AES_CCM,4,2                 ## @CR_AES_CCM
	.comm	_CR_DES_ECB,4,2                 ## @CR_DES_ECB
	.comm	_CR_DES_CBC,4,2                 ## @CR_DES_CBC
	.comm	_CR_TDES_ECB,4,2                ## @CR_TDES_ECB
	.comm	_CR_TDES_CBC,4,2                ## @CR_TDES_CBC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown mode\n"

	.comm	_CR_AES_UNKNOWN,4,2             ## @CR_AES_UNKNOWN
	.no_dead_strip	_stm32_cryp_get_hw_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_cryp_get_hw_mode
_stm32_cryp_get_hw_mode:                ; @stm32_cryp_get_hw_mode
	.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
	bl	_is_aes
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_is_ecb
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _CR_AES_ECB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CR_AES_ECB@GOTPAGEOFF]
	b	LBB0_28
LBB0_3:
	mov	x0, x19
	bl	_is_aes
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_is_cbc
	cbz	x0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _CR_AES_CBC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CR_AES_CBC@GOTPAGEOFF]
	b	LBB0_28
LBB0_6:
	mov	x0, x19
	bl	_is_aes
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_is_ctr
	cbz	x0, LBB0_9
; %bb.8:
Lloh4:
	adrp	x8, _CR_AES_CTR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CR_AES_CTR@GOTPAGEOFF]
	b	LBB0_28
LBB0_9:
	mov	x0, x19
	bl	_is_aes
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_is_gcm
	cbz	x0, LBB0_12
; %bb.11:
Lloh6:
	adrp	x8, _CR_AES_GCM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CR_AES_GCM@GOTPAGEOFF]
	b	LBB0_28
LBB0_12:
	mov	x0, x19
	bl	_is_aes
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_is_ccm
	cbz	x0, LBB0_15
; %bb.14:
Lloh8:
	adrp	x8, _CR_AES_CCM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CR_AES_CCM@GOTPAGEOFF]
	b	LBB0_28
LBB0_15:
	mov	x0, x19
	bl	_is_des
	cbz	x0, LBB0_18
; %bb.16:
	mov	x0, x19
	bl	_is_ecb
	cbz	x0, LBB0_18
; %bb.17:
Lloh10:
	adrp	x8, _CR_DES_ECB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CR_DES_ECB@GOTPAGEOFF]
	b	LBB0_28
LBB0_18:
	mov	x0, x19
	bl	_is_des
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_is_cbc
	cbz	x0, LBB0_21
; %bb.20:
Lloh12:
	adrp	x8, _CR_DES_CBC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CR_DES_CBC@GOTPAGEOFF]
	b	LBB0_28
LBB0_21:
	mov	x0, x19
	bl	_is_tdes
	cbz	x0, LBB0_24
; %bb.22:
	mov	x0, x19
	bl	_is_ecb
	cbz	x0, LBB0_24
; %bb.23:
Lloh14:
	adrp	x8, _CR_TDES_ECB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CR_TDES_ECB@GOTPAGEOFF]
	b	LBB0_28
LBB0_24:
	mov	x0, x19
	bl	_is_tdes
	cbz	x0, LBB0_27
; %bb.25:
	mov	x0, x19
	bl	_is_cbc
	cbz	x0, LBB0_27
; %bb.26:
Lloh16:
	adrp	x8, _CR_TDES_CBC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CR_TDES_CBC@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh20:
	adrp	x8, _CR_AES_UNKNOWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CR_AES_UNKNOWN@GOTPAGEOFF]
LBB0_28:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CR_AES_ECB,4,2                 ; @CR_AES_ECB
	.comm	_CR_AES_CBC,4,2                 ; @CR_AES_CBC
	.comm	_CR_AES_CTR,4,2                 ; @CR_AES_CTR
	.comm	_CR_AES_GCM,4,2                 ; @CR_AES_GCM
	.comm	_CR_AES_CCM,4,2                 ; @CR_AES_CCM
	.comm	_CR_DES_ECB,4,2                 ; @CR_DES_ECB
	.comm	_CR_DES_CBC,4,2                 ; @CR_DES_CBC
	.comm	_CR_TDES_ECB,4,2                ; @CR_TDES_ECB
	.comm	_CR_TDES_CBC,4,2                ; @CR_TDES_CBC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown mode\n"

	.comm	_CR_AES_UNKNOWN,4,2             ; @CR_AES_UNKNOWN
	.no_dead_strip	_stm32_cryp_get_hw_mode
.subsections_via_symbols
