	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_osi_cksum               ## -- Begin function create_osi_cksum
	.p2align	4, 0x90
_create_osi_cksum:                      ## @create_osi_cksum
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leal	1(%rsi), %r8d
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.3:
	xorl	%r11d, %r11d
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	testb	$1, %dl
	jne	LBB0_14
	jmp	LBB0_18
LBB0_1:
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	jmp	LBB0_19
LBB0_4:
	movl	%edx, %r10d
	andl	$-2, %r10d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rdi
	addl	%r9d, %ecx
	leal	2(%r11), %eax
	cmpl	%r10d, %eax
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r11d
	cmpl	%eax, %esi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r8d, %r11d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	(%rdi), %r9d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	%r9d, %ecx
	leal	1(%r11), %eax
	cmpl	%esi, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%esi, %r11d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	4(%rdi), %r9d
	jmp	LBB0_11
LBB0_12:
	addl	$2, %r11d
	testb	$1, %dl
	je	LBB0_18
LBB0_14:
	cmpl	%esi, %r11d
	je	LBB0_17
## %bb.15:
	cmpl	%r8d, %r11d
	je	LBB0_17
## %bb.16:
	addl	(%rdi), %r9d
LBB0_17:
	addl	%r9d, %ecx
LBB0_18:
	movslq	%ecx, %rax
	imulq	$-2139062143, %rax, %rcx        ## imm = 0x80808081
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edi
	shrl	$31, %edi
	sarl	$7, %ecx
	addl	%edi, %ecx
	movl	%ecx, %edi
	shll	$8, %edi
	subl	%edi, %ecx
	addl	%eax, %ecx
	popq	%rbp
LBB0_19:
	movslq	%r9d, %r8
	imulq	$-2139062143, %r8, %rdi         ## imm = 0x80808081
	shrq	$32, %rdi
	addl	%r8d, %edi
	movl	%edi, %eax
	shrl	$31, %eax
	sarl	$7, %edi
	addl	%eax, %edi
	movl	%edi, %eax
	shll	$8, %eax
	subl	%eax, %edi
	addl	%r8d, %edi
	subl	%esi, %edx
	imull	%edi, %edx
	addl	%ecx, %edi
	subl	%edx, %ecx
	subl	%edi, %edx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setle	%al
	subl	%eax, %ecx
	movl	%edx, %eax
	sarl	$31, %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$-2139062143, %rdx, %rax        ## imm = 0x80808081
	shrq	$32, %rax
	addl	%edx, %eax
	movl	%eax, %esi
	shrl	$31, %esi
	sarl	$7, %eax
	addl	%esi, %eax
	movl	%eax, %esi
	shll	$8, %esi
	subl	%esi, %eax
	addl	%edx, %eax
	movslq	%ecx, %rcx
	imulq	$-2139062143, %rcx, %rdx        ## imm = 0x80808081
	shrq	$32, %rdx
	addl	%ecx, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$7, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	shll	$8, %esi
	subl	%esi, %edx
	addl	%ecx, %edx
	movzbl	%dl, %ecx
	movl	$255, %edx
	cmovnel	%ecx, %edx
	movl	%eax, %ecx
	shll	$8, %ecx
	testl	%eax, %eax
	movl	$65280, %eax                    ## imm = 0xFF00
	cmovnel	%ecx, %eax
	orl	%edx, %eax
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_osi_cksum               ; -- Begin function create_osi_cksum
	.p2align	2
_create_osi_cksum:                      ; @create_osi_cksum
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w9, #0
	mov	w8, #0
	neg	w10, w1
	mov	x11, x2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #4
	add	w9, w8, w9
	add	w10, w10, #1
	subs	w11, w11, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, #1
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x0]
	add	w8, w12, w8
	b	LBB0_2
LBB0_6:
	mov	w10, #32897
	movk	w10, #32896, lsl #16
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w10, w10, w9
	asr	w11, w10, #7
	add	w10, w11, w10, lsr #31
	sub	w10, w10, w10, lsl #8
	add	w9, w9, w10
	b	LBB0_8
LBB0_7:
	mov	w8, #0
	mov	w9, #0
LBB0_8:
	mov	w10, #32897
	movk	w10, #32896, lsl #16
	smull	x11, w8, w10
	lsr	x11, x11, #32
	add	w11, w11, w8
	asr	w12, w11, #7
	add	w11, w12, w11, lsr #31
	sub	w11, w11, w11, lsl #8
	sub	w12, w2, w1
	add	w8, w8, w11
	add	w11, w9, w8
	mul	w8, w8, w12
	sub	w11, w8, w11
	sub	w8, w9, w8
	cmp	w8, #1
	cset	w9, lt
	sub	w8, w8, w9
	add	w9, w11, w11, asr #31
	smull	x11, w9, w10
	lsr	x11, x11, #32
	add	w11, w11, w9
	asr	w12, w11, #7
	add	w11, w12, w11, lsr #31
	sub	w11, w11, w11, lsl #8
	add	w9, w9, w11
	smull	x10, w8, w10
	lsr	x10, x10, #32
	add	w10, w10, w8
	asr	w11, w10, #7
	add	w10, w11, w10, lsr #31
	sub	w10, w10, w10, lsl #8
	adds	w8, w8, w10
	and	w8, w8, #0xff
	mov	w10, #255
	csel	w8, w10, w8, eq
	lsl	w10, w9, #8
	mov	w11, #65280
	cmp	w9, #0
	csel	w9, w11, w10, eq
	orr	w0, w9, w8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
