	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_fmc2_ham_correct
_stm32_fmc2_ham_correct:                ## @stm32_fmc2_ham_correct
	.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	%rsi, %r14
	movl	(%rcx), %eax
	xorl	(%rdx), %eax
	movq	4(%rcx), %rcx
	xorq	4(%rdx), %rcx
	movq	%rcx, %xmm0
	movdqa	%xmm0, %xmm1
	pslld	$16, %xmm1
	pslld	$8, %xmm0
	movd	%xmm0, %ecx
	pextrd	$1, %xmm1, %ebx
	orl	%eax, %ecx
	xorl	%edi, %edi
	orl	%ecx, %ebx
	sete	%dil
	callq	_likely
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_40
## %bb.1:
	leal	3(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	andl	$-4, %ecx
	movl	%ebx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.4:
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_2:
	xorl	%ecx, %ecx
LBB0_5:
	movl	%ebx, %eax
	sarl	$2, %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	andl	$-4, %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.7:
	orl	$2, %ecx
LBB0_8:
	movl	%ebx, %eax
	sarl	$4, %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	andl	$-4, %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.10:
	orl	$4, %ecx
LBB0_11:
	movl	%ebx, %eax
	sarl	$6, %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	andl	$-4, %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	je	LBB0_12
## %bb.13:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.14:
	movl	$1, %edx
	jmp	LBB0_15
LBB0_12:
	xorl	%edx, %edx
LBB0_15:
	movl	%ebx, %eax
	sarl	$8, %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	andl	$-4, %esi
	subl	%esi, %eax
	cmpl	$1, %eax
	je	LBB0_18
## %bb.16:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.17:
	orl	$2, %edx
LBB0_18:
	movl	%ebx, %eax
	sarl	$10, %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	andl	$-4, %esi
	subl	%esi, %eax
	cmpl	$1, %eax
	je	LBB0_21
## %bb.19:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.20:
	orl	$4, %edx
LBB0_21:
	movl	%ebx, %eax
	sarl	$12, %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	andl	$-4, %esi
	subl	%esi, %eax
	cmpl	$1, %eax
	je	LBB0_24
## %bb.22:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.23:
	orl	$8, %edx
LBB0_24:
	movl	%ebx, %eax
	sarl	$14, %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	andl	$-4, %esi
	subl	%esi, %eax
	cmpl	$1, %eax
	je	LBB0_27
## %bb.25:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.26:
	orl	$16, %edx
LBB0_27:
	movl	%ebx, %eax
	shrl	$16, %eax
	leal	3(%rax), %esi
	testw	%ax, %ax
	cmovnsl	%eax, %esi
	andl	$-4, %esi
	subl	%esi, %eax
	cwtl
	cmpl	$1, %eax
	je	LBB0_30
## %bb.28:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.29:
	orl	$32, %edx
LBB0_30:
	movl	%ebx, %eax
	sarl	$18, %eax
	leal	3(%rax), %esi
	testw	%ax, %ax
	cmovnsl	%eax, %esi
	andl	$-4, %esi
	subl	%esi, %eax
	cwtl
	cmpl	$1, %eax
	je	LBB0_33
## %bb.31:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.32:
	orl	$64, %edx
LBB0_33:
	movl	%ebx, %eax
	sarl	$20, %eax
	leal	3(%rax), %esi
	testw	%ax, %ax
	cmovnsl	%eax, %esi
	andl	$-4, %esi
	subl	%esi, %eax
	cwtl
	cmpl	$1, %eax
	je	LBB0_36
## %bb.34:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.35:
	orl	$128, %edx
LBB0_36:
	sarl	$22, %ebx
	leal	3(%rbx), %eax
	testw	%bx, %bx
	cmovnsl	%ebx, %eax
	andl	$-4, %eax
	subl	%eax, %ebx
	movswl	%bx, %eax
	cmpl	$1, %eax
	je	LBB0_39
## %bb.37:
	cmpl	$2, %eax
	jne	LBB0_41
## %bb.38:
	orl	$256, %edx                      ## imm = 0x100
LBB0_39:
	movl	$1, %eax
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	%edx, %ecx
	xorl	%esi, (%r14,%rcx,4)
	jmp	LBB0_40
LBB0_41:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_40:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.no_dead_strip	_stm32_fmc2_ham_correct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function stm32_fmc2_ham_correct
lCPI0_0:
	.long	8                               ; 0x8
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_stm32_fmc2_ham_correct:                ; @stm32_fmc2_ham_correct
	.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, x1
	ldr	w8, [x2]
	ldr	w9, [x3]
	ldur	d0, [x2, #4]
	ldur	d1, [x3, #4]
	eor.8b	v0, v1, v0
Lloh0:
	adrp	x10, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x10, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	mov.s	w10, v0[1]
	eor	w8, w9, w8
	fmov	w9, s0
	orr	w8, w9, w8
	orr	w20, w8, w10
	cmp	w20, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_42
LBB0_2:
	negs	w8, w20
	and	w8, w8, #0x3
	and	w9, w20, #0x3
	csneg	w8, w9, w8, mi
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #2
	b.ne	LBB0_41
; %bb.4:
	mov	w8, #1
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	asr	w9, w20, #2
	negs	w10, w9
	and	w10, w10, #0x3
	and	w9, w9, #0x3
	csneg	w9, w9, w10, mi
	cmp	w9, #1
	b.eq	LBB0_9
; %bb.7:
	cmp	w9, #2
	b.ne	LBB0_41
; %bb.8:
	orr	w8, w8, #0x2
LBB0_9:
	asr	w9, w20, #4
	negs	w10, w9
	and	w10, w10, #0x3
	and	w9, w9, #0x3
	csneg	w9, w9, w10, mi
	cmp	w9, #1
	b.eq	LBB0_12
; %bb.10:
	cmp	w9, #2
	b.ne	LBB0_41
; %bb.11:
	orr	w8, w8, #0x4
LBB0_12:
	asr	w9, w20, #6
	negs	w10, w9
	and	w10, w10, #0x3
	and	w9, w9, #0x3
	csneg	w9, w9, w10, mi
	cmp	w9, #1
	b.eq	LBB0_15
; %bb.13:
	cmp	w9, #2
	b.ne	LBB0_41
; %bb.14:
	mov	w9, #1
	b	LBB0_16
LBB0_15:
	mov	w9, #0
LBB0_16:
	asr	w10, w20, #8
	negs	w11, w10
	and	w11, w11, #0x3
	and	w10, w10, #0x3
	csneg	w10, w10, w11, mi
	cmp	w10, #1
	b.eq	LBB0_19
; %bb.17:
	cmp	w10, #2
	b.ne	LBB0_41
; %bb.18:
	orr	w9, w9, #0x2
LBB0_19:
	asr	w10, w20, #10
	negs	w11, w10
	and	w11, w11, #0x3
	and	w10, w10, #0x3
	csneg	w10, w10, w11, mi
	cmp	w10, #1
	b.eq	LBB0_22
; %bb.20:
	cmp	w10, #2
	b.ne	LBB0_41
; %bb.21:
	orr	w9, w9, #0x4
LBB0_22:
	asr	w10, w20, #12
	negs	w11, w10
	and	w11, w11, #0x3
	and	w10, w10, #0x3
	csneg	w10, w10, w11, mi
	cmp	w10, #1
	b.eq	LBB0_25
; %bb.23:
	cmp	w10, #2
	b.ne	LBB0_41
; %bb.24:
	orr	w9, w9, #0x8
LBB0_25:
	asr	w10, w20, #14
	negs	w11, w10
	and	w11, w11, #0x3
	and	w10, w10, #0x3
	csneg	w10, w10, w11, mi
	cmp	w10, #1
	b.eq	LBB0_28
; %bb.26:
	cmp	w10, #2
	b.ne	LBB0_41
; %bb.27:
	orr	w9, w9, #0x10
LBB0_28:
	lsr	w10, w20, #16
	asr	w11, w20, #31
	ubfx	w11, w11, #14, #2
	add	w11, w10, w11
	and	w11, w11, #0xfffc
	sub	w10, w10, w11
	and	w11, w10, #0xffff
	cmp	w11, #1
	b.eq	LBB0_31
; %bb.29:
	sxth	w10, w10
	cmp	w10, #2
	b.ne	LBB0_41
; %bb.30:
	orr	w9, w9, #0x20
LBB0_31:
	asr	w10, w20, #18
	ubfx	w11, w10, #14, #2
	add	w11, w10, w11
	and	w11, w11, #0xfffffffc
	sub	w10, w10, w11
	cmp	w10, #1
	b.eq	LBB0_34
; %bb.32:
	cmp	w10, #2
	b.ne	LBB0_41
; %bb.33:
	orr	w9, w9, #0x40
LBB0_34:
	asr	w10, w20, #20
	ubfx	w11, w10, #14, #2
	add	w11, w10, w11
	and	w11, w11, #0xfffffffc
	sub	w10, w10, w11
	cmp	w10, #1
	b.eq	LBB0_37
; %bb.35:
	cmp	w10, #2
	b.ne	LBB0_41
; %bb.36:
	orr	w9, w9, #0x80
LBB0_37:
	asr	w10, w20, #22
	ubfx	w11, w10, #14, #2
	add	w11, w10, w11
	and	w11, w11, #0xfffffffc
	sub	w10, w10, w11
	cmp	w10, #1
	b.eq	LBB0_40
; %bb.38:
	cmp	w10, #2
	b.ne	LBB0_41
; %bb.39:
	orr	w9, w9, #0x100
LBB0_40:
	mov	w0, #1
	lsl	w8, w0, w8
	mov	w9, w9
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	eor	w8, w10, w8
	str	w8, [x19, x9]
	b	LBB0_42
LBB0_41:
Lloh2:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_42:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.no_dead_strip	_stm32_fmc2_ham_correct
.subsections_via_symbols
