	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc4xx_edac_generate_ecc_message
_ppc4xx_edac_generate_ecc_message:      ## @ppc4xx_edac_generate_ecc_message
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_ppc4xx_edac_generate_bank_message
	movl	%eax, %r13d
	xorl	%eax, %eax
	testl	%r13d, %r13d
	js	LBB0_6
## %bb.1:
	movl	%r13d, %ecx
	cmpq	%rbx, %rcx
	jae	LBB0_6
## %bb.2:
	addq	%rcx, %r14
	subq	%rcx, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_ppc4xx_edac_generate_checkbit_message
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %edx
	movl	%eax, %ecx
	movl	%r13d, %eax
	subq	%rcx, %rbx
	jbe	LBB0_6
## %bb.5:
	addq	%rcx, %r14
	addl	%r13d, %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%edx, %r15d
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_ppc4xx_edac_generate_lane_message
	movslq	%eax, %rcx
	xorl	%edx, %edx
	cmpq	%rcx, %rbx
	movl	$0, %eax
	cmoval	%ecx, %eax
	testl	%ecx, %ecx
	cmovsl	%edx, %eax
	addl	%r15d, %eax
	jmp	LBB0_6
LBB0_3:
	movl	%r13d, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ppc4xx_edac_generate_ecc_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc4xx_edac_generate_ecc_message
_ppc4xx_edac_generate_ecc_message:      ; @ppc4xx_edac_generate_ecc_message
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	bl	_ppc4xx_edac_generate_bank_message
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w8, w0
	cmp	x8, x22
	b.hs	LBB0_5
; %bb.2:
	add	x23, x23, x8
	sub	x22, x22, x8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_ppc4xx_edac_generate_checkbit_message
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	w8, w0
	subs	x22, x22, x8
	b.ls	LBB0_6
; %bb.4:
	add	x2, x23, x8
	add	w20, w0, w20
	mov	x0, x21
	mov	x1, x19
	mov	x3, x22
	bl	_ppc4xx_edac_generate_lane_message
	cmp	x22, w0, sxtw
	mov	w8, #-1
	ccmp	w0, w8, #4, hi
	csel	w8, w0, wzr, gt
	add	w20, w20, w8
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ppc4xx_edac_generate_ecc_message
.subsections_via_symbols
