	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs_set_sum                     ## -- Begin function cs_set_sum
	.p2align	4, 0x90
_cs_set_sum:                            ## @cs_set_sum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	%rsi, -24(%rbp)
	movq	_CKSUM_MAGIC_NUMBER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorl	%eax, %eax
	testl	%edx, %edx
	sete	%al
	movq	_SEEK_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	-8(,%rax,8), %esi
	callq	_fseek
	leaq	-16(%rbp), %rdi
	movl	$1, %esi
	movl	$4, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$4, %ecx
	jl	LBB0_2
## %bb.1:
	leaq	-24(%rbp), %rdi
	movl	$1, %esi
	movl	$4, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$4, %ecx
	setge	%al
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CKSUM_MAGIC_NUMBER,8,3         ## @CKSUM_MAGIC_NUMBER
	.comm	_SEEK_END,4,2                   ## @SEEK_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs_set_sum                     ; -- Begin function cs_set_sum
	.p2align	2
_cs_set_sum:                            ; @cs_set_sum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	x1, [sp, #8]
Lloh0:
	adrp	x8, _CKSUM_MAGIC_NUMBER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CKSUM_MAGIC_NUMBER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh3:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #-8
	cmp	w2, #0
	csel	w1, wzr, w9, eq
	mov	x2, x8
	bl	_fseek
	mov	x0, sp
	mov	w1, #1
	mov	w2, #4
	mov	x3, x19
	bl	_fwrite
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #4
	mov	x3, x19
	bl	_fwrite
	cmp	w0, #3
	cset	w0, gt
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CKSUM_MAGIC_NUMBER,8,3         ; @CKSUM_MAGIC_NUMBER
	.comm	_SEEK_END,4,2                   ; @SEEK_END
.subsections_via_symbols
