	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elm_load_syndrome
_elm_load_syndrome:                     ## @elm_load_syndrome
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_13
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_2:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	12(%r12), %edi
	callq	_cpu_to_be32
	sarl	$4, %eax
	movl	8(%r12), %edx
	shll	$28, %edx
	orl	%eax, %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_elm_write_reg
	addl	$4, %r13d
	movl	(%r12), %edi
	callq	_cpu_to_be32
	sarl	$12, %eax
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_elm_write_reg
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	8(%r15), %rax
	leaq	(%r12,%rax,4), %r12
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14,%rbx,8)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_elm_configure_page_mode
	movq	_SYNDROME_FRAGMENT_REG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	imull	%ebx, %r13d
	movq	_ELM_SYNDROME_FRAGMENT_0@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	movl	4(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$129, %eax
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	36(%r12), %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_elm_write_reg
	leal	4(%r13), %r14d
	movl	20(%r12), %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_elm_write_reg
	leal	8(%r13), %r14d
	movl	4(%r12), %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_elm_write_reg
	addl	$12, %r13d
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	88(%r12), %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_elm_write_reg
	leal	4(%r13), %r14d
	movl	72(%r12), %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_elm_write_reg
	leal	8(%r13), %r14d
	movl	56(%r12), %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_elm_write_reg
	leal	12(%r13), %r14d
	movl	40(%r12), %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_elm_write_reg
	leal	16(%r13), %r14d
	movl	24(%r12), %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_elm_write_reg
	leal	20(%r13), %r14d
	movl	8(%r12), %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_elm_write_reg
	addl	$24, %r13d
	movl	(%r12), %edi
	callq	_cpu_to_be32
	sarl	$16, %eax
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELM_SYNDROME_FRAGMENT_0,4,2    ## @ELM_SYNDROME_FRAGMENT_0
	.comm	_SYNDROME_FRAGMENT_REG_SIZE,4,2 ## @SYNDROME_FRAGMENT_REG_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid config bch_type\n"

	.no_dead_strip	_elm_load_syndrome
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elm_load_syndrome
_elm_load_syndrome:                     ; @elm_load_syndrome
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
Lloh0:
	adrp	x26, _ELM_SYNDROME_FRAGMENT_0@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ELM_SYNDROME_FRAGMENT_0@GOTPAGEOFF]
Lloh2:
	adrp	x27, _SYNDROME_FRAGMENT_REG_SIZE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SYNDROME_FRAGMENT_REG_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #12]
	bl	_cpu_to_be32
	ldr	w8, [x19, #8]
	lsl	w8, w8, #28
	orr	w2, w8, w0, asr #4
	mov	x0, x21
	mov	x1, x24
	bl	_elm_write_reg
	add	w24, w24, #4
	ldr	w0, [x19]
	bl	_cpu_to_be32
	asr	w2, w0, #12
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x24
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_elm_write_reg
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x21, #8]
	add	x19, x19, x8, lsl #2
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, x22, lsl #3]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	bl	_elm_configure_page_mode
	ldr	w8, [x26]
	ldr	w9, [x27]
	madd	w24, w9, w22, w8
	ldr	w8, [x21, #4]
	cmp	w8, #130
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #129
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #36]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_elm_write_reg
	add	w25, w24, #4
	ldr	w0, [x19, #20]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_elm_write_reg
	add	w25, w24, #8
	ldr	w0, [x19, #4]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_elm_write_reg
	add	w1, w24, #12
	ldr	w2, [x19]
	mov	x0, x21
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #88]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_elm_write_reg
	add	w25, w24, #4
	ldr	w0, [x19, #72]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_elm_write_reg
	add	w25, w24, #8
	ldr	w0, [x19, #56]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_elm_write_reg
	add	w25, w24, #12
	ldr	w0, [x19, #40]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_elm_write_reg
	add	w25, w24, #16
	ldr	w0, [x19, #24]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_elm_write_reg
	add	w25, w24, #20
	ldr	w0, [x19, #8]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_elm_write_reg
	add	w24, w24, #24
	ldr	w0, [x19]
	bl	_cpu_to_be32
	asr	w2, w0, #16
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_pr_err
	b	LBB0_5
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ELM_SYNDROME_FRAGMENT_0,4,2    ; @ELM_SYNDROME_FRAGMENT_0
	.comm	_SYNDROME_FRAGMENT_REG_SIZE,4,2 ; @SYNDROME_FRAGMENT_REG_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid config bch_type\n"

	.no_dead_strip	_elm_load_syndrome
.subsections_via_symbols
