	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_sb_1_csum
_calc_sb_1_csum:                        ## @calc_sb_1_csum
	.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	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movl	(%r14), %eax
	movl	$0, (%r14)
	cmpl	$-126, %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jl	LBB0_1
## %bb.2:
	leal	(%r15,%r15), %r12d
	leaq	4(%r14), %rbx
	xorl	%edi, %edi
	callq	_le32_to_cpu
	movslq	%eax, %r13
	addl	$252, %r12d
	cmpl	$-124, %r15d
	jl	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	addq	$4, %rbx
	callq	_le32_to_cpu
	cltq
	addq	%rax, %r13
	leal	-4(%r12), %eax
	cmpl	$7, %r12d
	movl	%eax, %r12d
	jg	LBB0_4
	jmp	LBB0_5
LBB0_1:
	leal	(%r15,%r15), %eax
	addl	$256, %eax                      ## imm = 0x100
	xorl	%r13d, %r13d
	movq	%r14, %rbx
LBB0_5:
	cmpl	$2, %eax
	jne	LBB0_7
LBB0_6:
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	addq	%rax, %r13
LBB0_7:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %eax
	shrq	$32, %r13
	addq	%rax, %r13
	movl	%ecx, (%r14)
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_to_le32                    ## TAILCALL
LBB0_3:
	movl	%r12d, %eax
	cmpl	$2, %eax
	je	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_sb_1_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_sb_1_csum
_calc_sb_1_csum:                        ; @calc_sb_1_csum
	.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, x0
	ldr	w0, [x0, #4]
	bl	_le32_to_cpu
	lsl	w24, w0, #1
	ldr	w21, [x19]
	str	wzr, [x19]
	cmn	w0, #126
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x0
	add	x23, x19, #4
	mov	w0, #0
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	add	w24, w24, #252
	cmn	w20, #124
	b.lt	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23], #4
	bl	_le32_to_cpu
	add	x22, x22, w0, sxtw
	sub	w8, w24, #4
	cmp	w24, #7
	mov	x24, x8
	b.gt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x22, #0
	add	w8, w24, #256
	mov	x23, x19
LBB0_4:
	cmp	w8, #2
	b.ne	LBB0_6
LBB0_5:
	ldr	w0, [x23]
	bl	_le16_to_cpu
	add	x22, x0, x22
LBB0_6:
	lsr	x8, x22, #32
	add	x0, x8, w22, uxtw
	str	w21, [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	_cpu_to_le32
LBB0_7:
	mov	x8, x24
	cmp	w8, #2
	b.eq	LBB0_5
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_sb_1_csum
.subsections_via_symbols
