	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jz4725b_bch_read_parity
_jz4725b_bch_read_parity:               ## @jz4725b_bch_read_parity
	.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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%ebx, %r12d
	andl	$3, %r12d
	xorl	%edi, %edi
	cmpq	$4, %rdx
	jb	LBB0_4
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	shrq	$2, %rbx
	xorl	%edi, %edi
	movq	_BCH_BHPAR0@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %r12
	movl	(%r15), %edi
	addl	(%r13), %edi
	addl	%r12d, %edi
	callq	_readl_relaxed
	leaq	4(%r12), %rdi
	movl	%eax, (%r14,%r12)
	decq	%rbx
	jne	LBB0_2
## %bb.3:
	addq	%rdi, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_4:
	movq	_BCH_BHPAR0@GOTPCREL(%rip), %rax
	addl	(%r15), %edi
	addl	(%rax), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_readl_relaxed
	cmpl	$1, %r12d
	je	LBB0_9
## %bb.5:
	cmpl	$2, %r12d
	je	LBB0_8
## %bb.6:
	cmpl	$3, %r12d
	jne	LBB0_10
## %bb.7:
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%r14)
LBB0_8:
	movzbl	%ah, %ecx
	movl	%ecx, 4(%r14)
LBB0_9:
	movzbl	%al, %eax
	movl	%eax, (%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCH_BHPAR0,4,2                 ## @BCH_BHPAR0
	.no_dead_strip	_jz4725b_bch_read_parity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jz4725b_bch_read_parity
_jz4725b_bch_read_parity:               ; @jz4725b_bch_read_parity
	.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, x1
	mov	x20, x0
	and	x21, x2, #0x3
Lloh0:
	adrp	x22, _BCH_BHPAR0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BCH_BHPAR0@GOTPAGEOFF]
	cmp	x2, #4
	b.hs	LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_5
LBB0_2:
	mov	x23, #0
	lsr	x24, x2, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x24, x24, #1
	ldr	w8, [x20]
	ldr	w9, [x22]
	add	w8, w8, w9
	add	w0, w23, w8
	bl	_readl_relaxed
	str	w0, [x19, x23]
	add	x23, x23, #4
	cbnz	x24, LBB0_3
; %bb.4:
	add	x19, x19, x23
LBB0_5:
	ldr	w8, [x20]
	ldr	w9, [x22]
	add	w8, w8, w23
	add	w0, w8, w9
	bl	_readl_relaxed
	cmp	x21, #1
	b.eq	LBB0_10
; %bb.6:
	cmp	x21, #2
	b.eq	LBB0_9
; %bb.7:
	cmp	x21, #3
	b.ne	LBB0_11
; %bb.8:
	ubfx	w8, w0, #16, #8
	str	w8, [x19, #8]
LBB0_9:
	ubfx	w8, w0, #8, #8
	str	w8, [x19, #4]
LBB0_10:
	and	w8, w0, #0xff
	str	w8, [x19]
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BCH_BHPAR0,4,2                 ; @BCH_BHPAR0
	.no_dead_strip	_jz4725b_bch_read_parity
.subsections_via_symbols
