	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_fmc2_bch_decode
_stm32_fmc2_bch_decode:                 ## @stm32_fmc2_bch_decode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movl	%edi, -100(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdx), %ecx
	movl	4(%rdx), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	8(%rdx), %r12d
	movl	12(%rdx), %r15d
	movl	16(%rdx), %r14d
	movq	_FMC2_BCHDSR0_DEF@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	movl	%ecx, %ebx
	andl	%ecx, %eax
	sete	%dil
	callq	_likely
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	movl	%r14d, -88(%rbp)                ## 4-byte Spill
	movl	-100(%rbp), %r12d               ## 4-byte Reload
	movl	%r15d, -92(%rbp)                ## 4-byte Spill
	movq	_FMC2_BCHDSR0_DUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_EBADMSG@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.11:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_FMC2_BCHDSR1_EBP1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %edi
	movl	%edi, -80(%rbp)
	movq	_FMC2_BCHDSR1_EBP2_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_FMC2_BCHDSR1_EBP2_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movl	%edx, -76(%rbp)
	movq	_FMC2_BCHDSR2_EBP3_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %eax
	movl	%eax, -72(%rbp)
	movq	_FMC2_BCHDSR2_EBP4_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_FMC2_BCHDSR2_EBP4_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movl	%edx, -68(%rbp)
	movq	_FMC2_BCHDSR3_EBP5_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %eax
	movq	_FMC2_BCHDSR3_EBP6_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_FMC2_BCHDSR3_EBP6_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	%eax, -64(%rbp)
	movq	_FMC2_BCHDSR4_EBP7_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	andl	%esi, %eax
	movq	_FMC2_BCHDSR4_EBP8_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movq	_FMC2_BCHDSR4_EBP8_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movl	%edx, -60(%rbp)
	movl	%eax, -56(%rbp)
	movl	%esi, -52(%rbp)
	movq	_FMC2_BCHDSR0_DEN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_FMC2_BCHDSR0_DEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.6:
	movl	%r12d, %r15d
	shll	$3, %r15d
	movl	%ebx, %r14d
	xorl	%r13d, %r13d
	movl	$1, %ebx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	cmpl	%r15d, %edi
	jge	LBB0_9
	.p2align	4, 0x90
LBB0_8:
	movq	%r12, %rsi
	callq	_change_bit
	incl	%r13d
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r14
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-80(%rbp,%rbx,4), %edi
	incq	%rbx
	cmpl	%r15d, %edi
	jl	LBB0_8
	jmp	LBB0_9
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FMC2_BCHDSR0_DEF,4,2           ## @FMC2_BCHDSR0_DEF
	.comm	_FMC2_BCHDSR0_DUE,4,2           ## @FMC2_BCHDSR0_DUE
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_FMC2_BCHDSR1_EBP1_MASK,4,2     ## @FMC2_BCHDSR1_EBP1_MASK
	.comm	_FMC2_BCHDSR1_EBP2_MASK,4,2     ## @FMC2_BCHDSR1_EBP2_MASK
	.comm	_FMC2_BCHDSR1_EBP2_SHIFT,4,2    ## @FMC2_BCHDSR1_EBP2_SHIFT
	.comm	_FMC2_BCHDSR2_EBP3_MASK,4,2     ## @FMC2_BCHDSR2_EBP3_MASK
	.comm	_FMC2_BCHDSR2_EBP4_MASK,4,2     ## @FMC2_BCHDSR2_EBP4_MASK
	.comm	_FMC2_BCHDSR2_EBP4_SHIFT,4,2    ## @FMC2_BCHDSR2_EBP4_SHIFT
	.comm	_FMC2_BCHDSR3_EBP5_MASK,4,2     ## @FMC2_BCHDSR3_EBP5_MASK
	.comm	_FMC2_BCHDSR3_EBP6_MASK,4,2     ## @FMC2_BCHDSR3_EBP6_MASK
	.comm	_FMC2_BCHDSR3_EBP6_SHIFT,4,2    ## @FMC2_BCHDSR3_EBP6_SHIFT
	.comm	_FMC2_BCHDSR4_EBP7_MASK,4,2     ## @FMC2_BCHDSR4_EBP7_MASK
	.comm	_FMC2_BCHDSR4_EBP8_MASK,4,2     ## @FMC2_BCHDSR4_EBP8_MASK
	.comm	_FMC2_BCHDSR4_EBP8_SHIFT,4,2    ## @FMC2_BCHDSR4_EBP8_SHIFT
	.comm	_FMC2_BCHDSR0_DEN_MASK,4,2      ## @FMC2_BCHDSR0_DEN_MASK
	.comm	_FMC2_BCHDSR0_DEN_SHIFT,4,2     ## @FMC2_BCHDSR0_DEN_SHIFT
	.no_dead_strip	_stm32_fmc2_bch_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_fmc2_bch_decode
_stm32_fmc2_bch_decode:                 ; @stm32_fmc2_bch_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldp	w21, w25, [x2]
	ldp	w24, w23, [x2, #8]
	ldr	w22, [x2, #16]
Lloh3:
	adrp	x8, _FMC2_BCHDSR0_DEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FMC2_BCHDSR0_DEF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
LBB0_1:
	mov	w21, #0
	b	LBB0_9
LBB0_2:
Lloh6:
	adrp	x8, _FMC2_BCHDSR0_DUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FMC2_BCHDSR0_DUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w0, w8, w21
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_4:
Lloh12:
	adrp	x8, _FMC2_BCHDSR1_EBP1_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FMC2_BCHDSR1_EBP1_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _FMC2_BCHDSR1_EBP2_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FMC2_BCHDSR1_EBP2_MASK@GOTPAGEOFF]
	and	w0, w8, w25
Lloh17:
	ldr	w8, [x9]
	and	w8, w8, w25
Lloh18:
	adrp	x9, _FMC2_BCHDSR1_EBP2_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FMC2_BCHDSR1_EBP2_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	asr	w8, w8, w9
	stp	w0, w8, [sp, #8]
Lloh21:
	adrp	x8, _FMC2_BCHDSR2_EBP3_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FMC2_BCHDSR2_EBP3_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w8, w8, w24
Lloh24:
	adrp	x9, _FMC2_BCHDSR2_EBP4_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FMC2_BCHDSR2_EBP4_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _FMC2_BCHDSR2_EBP4_SHIFT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _FMC2_BCHDSR2_EBP4_SHIFT@GOTPAGEOFF]
	and	w9, w9, w24
Lloh29:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh30:
	adrp	x10, _FMC2_BCHDSR3_EBP5_MASK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _FMC2_BCHDSR3_EBP5_MASK@GOTPAGEOFF]
	stp	w8, w9, [sp, #16]
Lloh32:
	ldr	w8, [x10]
	and	w8, w8, w23
Lloh33:
	adrp	x9, _FMC2_BCHDSR3_EBP6_MASK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _FMC2_BCHDSR3_EBP6_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	and	w9, w9, w23
Lloh36:
	adrp	x10, _FMC2_BCHDSR3_EBP6_SHIFT@GOTPAGE
Lloh37:
	ldr	x10, [x10, _FMC2_BCHDSR3_EBP6_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	asr	w9, w9, w10
	stp	w8, w9, [sp, #24]
Lloh39:
	adrp	x8, _FMC2_BCHDSR4_EBP7_MASK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FMC2_BCHDSR4_EBP7_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _FMC2_BCHDSR4_EBP8_MASK@GOTPAGE
Lloh43:
	ldr	x9, [x9, _FMC2_BCHDSR4_EBP8_MASK@GOTPAGEOFF]
	and	w10, w8, w22
Lloh44:
	ldr	w8, [x9]
	and	w8, w8, w22
Lloh45:
	adrp	x9, _FMC2_BCHDSR4_EBP8_SHIFT@GOTPAGE
Lloh46:
	ldr	x9, [x9, _FMC2_BCHDSR4_EBP8_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	asr	w9, w8, w9
Lloh48:
	adrp	x8, _FMC2_BCHDSR0_DEN_MASK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _FMC2_BCHDSR0_DEN_MASK@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x11, _FMC2_BCHDSR0_DEN_SHIFT@GOTPAGE
Lloh52:
	ldr	x11, [x11, _FMC2_BCHDSR0_DEN_SHIFT@GOTPAGEOFF]
	and	w8, w8, w21
Lloh53:
	ldr	w11, [x11]
	asr	w8, w8, w11
	stp	w10, w9, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.5:
	mov	w21, #0
	lsl	w20, w20, #3
	add	x9, sp, #8
	add	x22, x9, #4
	sub	x23, x8, #1
	cmp	w0, w20
	b.ge	LBB0_8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x22], #4
	sub	x23, x23, #1
	cmp	w0, w20
	b.ge	LBB0_8
LBB0_7:
	mov	x1, x19
	bl	_change_bit
	add	w21, w21, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x23, LBB0_6
LBB0_9:
	ldr	x8, [sp, #40]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_FMC2_BCHDSR0_DEF,4,2           ; @FMC2_BCHDSR0_DEF
	.comm	_FMC2_BCHDSR0_DUE,4,2           ; @FMC2_BCHDSR0_DUE
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_FMC2_BCHDSR1_EBP1_MASK,4,2     ; @FMC2_BCHDSR1_EBP1_MASK
	.comm	_FMC2_BCHDSR1_EBP2_MASK,4,2     ; @FMC2_BCHDSR1_EBP2_MASK
	.comm	_FMC2_BCHDSR1_EBP2_SHIFT,4,2    ; @FMC2_BCHDSR1_EBP2_SHIFT
	.comm	_FMC2_BCHDSR2_EBP3_MASK,4,2     ; @FMC2_BCHDSR2_EBP3_MASK
	.comm	_FMC2_BCHDSR2_EBP4_MASK,4,2     ; @FMC2_BCHDSR2_EBP4_MASK
	.comm	_FMC2_BCHDSR2_EBP4_SHIFT,4,2    ; @FMC2_BCHDSR2_EBP4_SHIFT
	.comm	_FMC2_BCHDSR3_EBP5_MASK,4,2     ; @FMC2_BCHDSR3_EBP5_MASK
	.comm	_FMC2_BCHDSR3_EBP6_MASK,4,2     ; @FMC2_BCHDSR3_EBP6_MASK
	.comm	_FMC2_BCHDSR3_EBP6_SHIFT,4,2    ; @FMC2_BCHDSR3_EBP6_SHIFT
	.comm	_FMC2_BCHDSR4_EBP7_MASK,4,2     ; @FMC2_BCHDSR4_EBP7_MASK
	.comm	_FMC2_BCHDSR4_EBP8_MASK,4,2     ; @FMC2_BCHDSR4_EBP8_MASK
	.comm	_FMC2_BCHDSR4_EBP8_SHIFT,4,2    ; @FMC2_BCHDSR4_EBP8_SHIFT
	.comm	_FMC2_BCHDSR0_DEN_MASK,4,2      ; @FMC2_BCHDSR0_DEN_MASK
	.comm	_FMC2_BCHDSR0_DEN_SHIFT,4,2     ; @FMC2_BCHDSR0_DEN_SHIFT
	.no_dead_strip	_stm32_fmc2_bch_decode
.subsections_via_symbols
