	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_bm_cmd_prepare          ## -- Begin function i2400m_bm_cmd_prepare
	.p2align	4, 0x90
_i2400m_bm_cmd_prepare:                 ## @i2400m_bm_cmd_prepare
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_i2400m_brh_get_use_checksum
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%r14), %eax
	cmpl	$4, %eax
	jl	LBB0_2
## %bb.3:
	movq	32(%r14), %r15
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r12,4), %edi
	callq	_cpu_to_le32
	addl	%eax, %ebx
	movl	(%r14), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movslq	%ebx, %rbx
	sarl	$2, %ecx
	incq	%r12
	cmpl	%ecx, %r12d
	jl	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	addl	%eax, %ebx
	addl	24(%r14), %ebx
	addl	16(%r14), %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_bm_cmd_prepare          ; -- Begin function i2400m_bm_cmd_prepare
	.p2align	2
_i2400m_bm_cmd_prepare:                 ; @i2400m_bm_cmd_prepare
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_i2400m_brh_get_use_checksum
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #4
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
	mov	x20, #0
	ldr	x22, [x19, #32]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, x21, lsl #2]
	bl	_cpu_to_le32
	add	w8, w0, w20
	sxtw	x20, w8
	ldr	w8, [x19]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	add	x21, x21, #1
	cmp	w21, w9, asr #2
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x20, #0
LBB0_5:
	ldr	w9, [x19, #24]
	ldr	w10, [x19, #16]
	add	w8, w20, w8
	add	w8, w8, w9
	add	w0, w8, w10
	bl	_cpu_to_le32
	str	x0, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
