	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jz4725b_correct
_jz4725b_correct:                       ## @jz4725b_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_jz4725b_bch_reset
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	movl	16(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_13
LBB0_2:
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_jz4725b_bch_write_data
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_jz4725b_bch_write_data
	movq	_BCH_BHINT_DECF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_jz4725b_bch_wait_complete
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movl	16(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_13
LBB0_4:
	movl	-44(%rbp), %eax
	movq	_BCH_BHINT_ALL_F@GOTPCREL(%rip), %rcx
	movq	_BCH_BHINT_ALL_0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%r13d, %r13d
	testl	%eax, %edx
	jne	LBB0_13
## %bb.5:
	movq	_BCH_BHINT_UNCOR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_EBADMSG@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_13:
	movq	%r15, %rdi
	callq	_jz4725b_bch_disable
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_BCH_BHINT_ERRC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_BCH_BHINT_ERRC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	movl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	leal	(,%r12,4), %edi
	addq	8(%r15), %rdi
	movq	_BCH_BHERR0@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_readl
	movl	%eax, %ebx
	movl	%eax, -44(%rbp)
	movq	_BCH_BHERR_INDEX0_MASK@GOTPCREL(%rip), %rax
	movq	_BCH_BHERR_INDEX0_SHIFT@GOTPCREL(%rip), %rcx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	andl	(%rax), %ebx
	movzbl	(%rcx), %ecx
	sarl	%cl, %ebx
	movl	%ebx, %edi
	andl	$7, %edi
	callq	_BIT
	sarl	$3, %ebx
	movslq	%ebx, %rcx
	xorl	%eax, (%r14,%rcx,4)
	incq	%r12
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r12b
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %ebx
	movq	_BCH_BHERR_INDEX1_MASK@GOTPCREL(%rip), %rax
	movq	_BCH_BHERR_INDEX1_SHIFT@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to init BCH with given parameters\n"

	.comm	_BCH_BHINT_DECF,4,2             ## @BCH_BHINT_DECF
L_.str.1:                               ## @.str.1
	.asciz	"timed out while correcting data\n"

	.comm	_BCH_BHINT_ALL_F,4,2            ## @BCH_BHINT_ALL_F
	.comm	_BCH_BHINT_ALL_0,4,2            ## @BCH_BHINT_ALL_0
	.comm	_BCH_BHINT_UNCOR,4,2            ## @BCH_BHINT_UNCOR
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_BCH_BHINT_ERRC_MASK,4,2        ## @BCH_BHINT_ERRC_MASK
	.comm	_BCH_BHINT_ERRC_SHIFT,4,2       ## @BCH_BHINT_ERRC_SHIFT
	.comm	_BCH_BHERR_INDEX1_MASK,4,2      ## @BCH_BHERR_INDEX1_MASK
	.comm	_BCH_BHERR_INDEX1_SHIFT,4,2     ## @BCH_BHERR_INDEX1_SHIFT
	.comm	_BCH_BHERR0,8,3                 ## @BCH_BHERR0
	.comm	_BCH_BHERR_INDEX0_MASK,4,2      ## @BCH_BHERR_INDEX0_MASK
	.comm	_BCH_BHERR_INDEX0_SHIFT,4,2     ## @BCH_BHERR_INDEX0_SHIFT
	.no_dead_strip	_jz4725b_correct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jz4725b_correct
_jz4725b_correct:                       ; @jz4725b_correct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_jz4725b_bch_reset
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_2:
	ldr	w2, [x23, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_jz4725b_bch_write_data
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	_jz4725b_bch_write_data
Lloh2:
	adrp	x8, _BCH_BHINT_DECF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCH_BHINT_DECF@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_jz4725b_bch_wait_complete
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_4:
	ldr	w8, [sp, #12]
Lloh7:
	adrp	x9, _BCH_BHINT_ALL_F@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BCH_BHINT_ALL_F@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _BCH_BHINT_ALL_0@GOTPAGE
Lloh11:
	ldr	x10, [x10, _BCH_BHINT_ALL_0@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
LBB0_5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x9, _BCH_BHINT_UNCOR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BCH_BHINT_UNCOR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh16:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x19
	bl	_jz4725b_bch_disable
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh19:
	adrp	x9, _BCH_BHINT_ERRC_MASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BCH_BHINT_ERRC_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh22:
	adrp	x9, _BCH_BHINT_ERRC_SHIFT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BCH_BHINT_ERRC_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	asr	w22, w8, w9
	cbz	w22, LBB0_5
; %bb.10:
	mov	x23, #0
Lloh25:
	adrp	x25, _BCH_BHERR_INDEX0_SHIFT@GOTPAGE
Lloh26:
	ldr	x25, [x25, _BCH_BHERR_INDEX0_SHIFT@GOTPAGEOFF]
Lloh27:
	adrp	x26, _BCH_BHERR_INDEX0_MASK@GOTPAGE
Lloh28:
	ldr	x26, [x26, _BCH_BHERR_INDEX0_MASK@GOTPAGEOFF]
Lloh29:
	adrp	x27, _BCH_BHERR_INDEX1_SHIFT@GOTPAGE
Lloh30:
	ldr	x27, [x27, _BCH_BHERR_INDEX1_SHIFT@GOTPAGEOFF]
Lloh31:
	adrp	x28, _BCH_BHERR_INDEX1_MASK@GOTPAGE
Lloh32:
	ldr	x28, [x28, _BCH_BHERR_INDEX1_MASK@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #8]
Lloh33:
	adrp	x9, _BCH_BHERR0@GOTPAGE
Lloh34:
	ldr	x9, [x9, _BCH_BHERR0@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	lsl	w10, w23, #2
	add	x8, x8, x10
	add	x0, x8, x9
	bl	_readl
	str	w0, [sp, #12]
	mov	x8, x26
	mov	x9, x25
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [x9]
	asr	w24, w8, w9
	and	w0, w24, #0x7
	bl	_BIT
	mov	w21, #0
	asr	w8, w24, #3
	sbfiz	x8, x8, #2, #32
	ldr	w9, [x20, x8]
	eor	w9, w9, w0
	str	w9, [x20, x8]
	add	x23, x23, #1
	cmp	x23, x22
	b.eq	LBB0_8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	tbz	w23, #0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [sp, #12]
	mov	x8, x28
	mov	x9, x27
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to init BCH with given parameters\n"

	.comm	_BCH_BHINT_DECF,4,2             ; @BCH_BHINT_DECF
l_.str.1:                               ; @.str.1
	.asciz	"timed out while correcting data\n"

	.comm	_BCH_BHINT_ALL_F,4,2            ; @BCH_BHINT_ALL_F
	.comm	_BCH_BHINT_ALL_0,4,2            ; @BCH_BHINT_ALL_0
	.comm	_BCH_BHINT_UNCOR,4,2            ; @BCH_BHINT_UNCOR
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_BCH_BHINT_ERRC_MASK,4,2        ; @BCH_BHINT_ERRC_MASK
	.comm	_BCH_BHINT_ERRC_SHIFT,4,2       ; @BCH_BHINT_ERRC_SHIFT
	.comm	_BCH_BHERR_INDEX1_MASK,4,2      ; @BCH_BHERR_INDEX1_MASK
	.comm	_BCH_BHERR_INDEX1_SHIFT,4,2     ; @BCH_BHERR_INDEX1_SHIFT
	.comm	_BCH_BHERR0,8,3                 ; @BCH_BHERR0
	.comm	_BCH_BHERR_INDEX0_MASK,4,2      ; @BCH_BHERR_INDEX0_MASK
	.comm	_BCH_BHERR_INDEX0_SHIFT,4,2     ; @BCH_BHERR_INDEX0_SHIFT
	.no_dead_strip	_jz4725b_correct
.subsections_via_symbols
