	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elm_decode_bch_error_page      ## -- Begin function elm_decode_bch_error_page
	.p2align	4, 0x90
_elm_decode_bch_error_page:             ## @elm_decode_bch_error_page
	.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	%rdx, %r14
	movq	%rsi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_ELM_IRQSTATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_elm_read_reg
	movl	(%r12), %esi
	movq	_INTR_STATUS_PAGE_VALID@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_elm_write_reg
	movq	_ELM_IRQENABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_INTR_EN_PAGE_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_elm_write_reg
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_elm_load_syndrome
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_elm_start_processing
	movq	%rbx, %rdi
	callq	_wait_for_completion
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_elm_read_reg
	movl	(%r12), %esi
	movl	(%r13), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	callq	_elm_write_reg
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elm_error_correction           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ELM_IRQSTATUS,4,2              ## @ELM_IRQSTATUS
	.comm	_INTR_STATUS_PAGE_VALID,4,2     ## @INTR_STATUS_PAGE_VALID
	.comm	_ELM_IRQENABLE,4,2              ## @ELM_IRQENABLE
	.comm	_INTR_EN_PAGE_MASK,4,2          ## @INTR_EN_PAGE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elm_decode_bch_error_page      ; -- Begin function elm_decode_bch_error_page
	.p2align	2
_elm_decode_bch_error_page:             ; @elm_decode_bch_error_page
	.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	x19, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x22, _ELM_IRQSTATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ELM_IRQSTATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_elm_read_reg
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _INTR_STATUS_PAGE_VALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTR_STATUS_PAGE_VALID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w2, w8, w0
	mov	x0, x20
	bl	_elm_write_reg
Lloh5:
	adrp	x22, _ELM_IRQENABLE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ELM_IRQENABLE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x23, _INTR_EN_PAGE_MASK@GOTPAGE
Lloh8:
	ldr	x23, [x23, _INTR_EN_PAGE_MASK@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_elm_write_reg
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_elm_load_syndrome
	mov	x0, x20
	mov	x1, x19
	bl	_elm_start_processing
	mov	x0, x20
	bl	_wait_for_completion
	ldr	w1, [x22]
	mov	x0, x20
	bl	_elm_read_reg
	ldr	w1, [x22]
	ldr	w8, [x23]
	bic	w2, w0, w8
	mov	x0, x20
	bl	_elm_write_reg
	mov	x0, x20
	mov	x1, x19
	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
	b	_elm_error_correction
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ELM_IRQSTATUS,4,2              ; @ELM_IRQSTATUS
	.comm	_INTR_STATUS_PAGE_VALID,4,2     ; @INTR_STATUS_PAGE_VALID
	.comm	_ELM_IRQENABLE,4,2              ; @ELM_IRQENABLE
	.comm	_INTR_EN_PAGE_MASK,4,2          ; @INTR_EN_PAGE_MASK
.subsections_via_symbols
