	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_buffer_crc                 ## -- Begin function get_buffer_crc
	.p2align	4, 0x90
_get_buffer_crc:                        ## @get_buffer_crc
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	jle	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %r8
	movl	$2147483648, %edi               ## imm = 0x80000000
	leaq	2147483647(%rdi), %rax
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r8,%r9), %r10d
	movl	%eax, %edx
	andl	$-2147483648, %edx              ## imm = 0x80000000
	addq	%rax, %rax
	movq	%rdx, %rcx
	xorq	%rdi, %rcx
	testb	$-128, %r10b
	cmoveq	%rdx, %rcx
	movq	%rax, %rdx
	xorq	$79764919, %rdx                 ## imm = 0x4C11DB7
	testq	%rcx, %rcx
	cmoveq	%rax, %rdx
	movl	%edx, %eax
	andl	$-2147483648, %eax              ## imm = 0x80000000
	addq	%rdx, %rdx
	movq	%rax, %rcx
	xorq	%rdi, %rcx
	testb	$64, %r10b
	cmoveq	%rax, %rcx
	movq	%rdx, %rax
	xorq	$79764919, %rax                 ## imm = 0x4C11DB7
	testq	%rcx, %rcx
	cmoveq	%rdx, %rax
	movl	%eax, %ecx
	andl	$-2147483648, %ecx              ## imm = 0x80000000
	addq	%rax, %rax
	movq	%rcx, %rdx
	xorq	%rdi, %rdx
	testb	$32, %r10b
	cmoveq	%rcx, %rdx
	movq	%rax, %rcx
	xorq	$79764919, %rcx                 ## imm = 0x4C11DB7
	testq	%rdx, %rdx
	cmoveq	%rax, %rcx
	movl	%ecx, %eax
	andl	$-2147483648, %eax              ## imm = 0x80000000
	addq	%rcx, %rcx
	movq	%rax, %rdx
	xorq	%rdi, %rdx
	testb	$16, %r10b
	cmoveq	%rax, %rdx
	movq	%rcx, %rax
	xorq	$79764919, %rax                 ## imm = 0x4C11DB7
	testq	%rdx, %rdx
	cmoveq	%rcx, %rax
	movl	%eax, %ecx
	andl	$-2147483648, %ecx              ## imm = 0x80000000
	addq	%rax, %rax
	movq	%rcx, %rdx
	xorq	%rdi, %rdx
	testb	$8, %r10b
	cmoveq	%rcx, %rdx
	movq	%rax, %rcx
	xorq	$79764919, %rcx                 ## imm = 0x4C11DB7
	testq	%rdx, %rdx
	cmoveq	%rax, %rcx
	movl	%ecx, %eax
	andl	$-2147483648, %eax              ## imm = 0x80000000
	addq	%rcx, %rcx
	movq	%rax, %rdx
	xorq	%rdi, %rdx
	testb	$4, %r10b
	cmoveq	%rax, %rdx
	movq	%rcx, %rax
	xorq	$79764919, %rax                 ## imm = 0x4C11DB7
	testq	%rdx, %rdx
	cmoveq	%rcx, %rax
	movl	%eax, %ecx
	andl	$-2147483648, %ecx              ## imm = 0x80000000
	addq	%rax, %rax
	movq	%rcx, %rdx
	xorq	%rdi, %rdx
	testb	$2, %r10b
	cmoveq	%rcx, %rdx
	movq	%rax, %rcx
	xorq	$79764919, %rcx                 ## imm = 0x4C11DB7
	testq	%rdx, %rdx
	cmoveq	%rax, %rcx
	movl	%ecx, %eax
	andl	$-2147483648, %eax              ## imm = 0x80000000
	addq	%rcx, %rcx
	movq	%rax, %rdx
	xorq	%rdi, %rdx
	testb	$1, %r10b
	cmoveq	%rax, %rdx
	movq	%rcx, %rax
	xorq	$79764919, %rax                 ## imm = 0x4C11DB7
	testq	%rdx, %rdx
	cmoveq	%rcx, %rax
	incq	%r9
	cmpq	%r9, %rsi
	jne	LBB0_3
## %bb.4:
	movl	%eax, %eax
	addq	$2147483647, %rdi               ## imm = 0x7FFFFFFF
	xorq	%rax, %rdi
	popq	%rbp
	jmp	LBB0_5
LBB0_1:
	xorl	%edi, %edi
LBB0_5:
	movq	%rdi, %rax
	shrq	$24, %rax
	movl	%edi, %ecx
	shrl	$8, %ecx
	andl	$65280, %ecx                    ## imm = 0xFF00
	movl	%edi, %edx
	shll	$8, %edx
	andl	$16711680, %edx                 ## imm = 0xFF0000
	shll	$24, %edi
	orl	%eax, %edi
	orl	%ecx, %edi
	orl	%edx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	jmp	_reverse_endian32               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_buffer_crc                 ; -- Begin function get_buffer_crc
	.p2align	2
_get_buffer_crc:                        ; @get_buffer_crc
	.cfi_startproc
; %bb.0:
	cmp	x1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w10, #-1
	mov	w8, #7607
	movk	w8, #1217, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x0], #1
	and	x11, x10, #0x80000000
	lsl	x10, x10, #1
	eor	x12, x11, #0x80000000
	tst	x9, #0x80
	csel	x11, x11, x12, eq
	eor	x12, x10, x8
	cmp	x11, #0
	csel	x10, x10, x12, eq
	and	x11, x10, #0x80000000
	lsl	x10, x10, #1
	eor	x12, x11, #0x80000000
	tst	x9, #0x40
	csel	x11, x11, x12, eq
	eor	x12, x10, x8
	cmp	x11, #0
	csel	x10, x10, x12, eq
	and	x11, x10, #0x80000000
	lsl	x10, x10, #1
	eor	x12, x11, #0x80000000
	tst	x9, #0x20
	csel	x11, x11, x12, eq
	eor	x12, x10, x8
	cmp	x11, #0
	csel	x10, x10, x12, eq
	and	x11, x10, #0x80000000
	lsl	x10, x10, #1
	eor	x12, x11, #0x80000000
	tst	x9, #0x10
	csel	x11, x11, x12, eq
	eor	x12, x10, x8
	cmp	x11, #0
	csel	x10, x10, x12, eq
	and	x11, x10, #0x80000000
	lsl	x10, x10, #1
	eor	x12, x11, #0x80000000
	tst	x9, #0x8
	csel	x11, x11, x12, eq
	eor	x12, x10, x8
	cmp	x11, #0
	csel	x10, x10, x12, eq
	and	x11, x10, #0x80000000
	lsl	x10, x10, #1
	eor	x12, x11, #0x80000000
	tst	x9, #0x4
	csel	x11, x11, x12, eq
	eor	x12, x10, x8
	cmp	x11, #0
	csel	x10, x10, x12, eq
	and	x11, x10, #0x80000000
	lsl	x10, x10, #1
	eor	x12, x11, #0x80000000
	tst	x9, #0x2
	csel	x11, x11, x12, eq
	eor	x12, x10, x8
	cmp	x11, #0
	csel	x10, x10, x12, eq
	and	x11, x10, #0x80000000
	lsl	x10, x10, #1
	eor	x12, x11, #0x80000000
	tst	x9, #0x1
	csel	x9, x11, x12, eq
	eor	x11, x10, x8
	cmp	x9, #0
	csel	x10, x10, x11, eq
	subs	x1, x1, #1
	b.ne	LBB0_2
; %bb.3:
	mvn	w8, w10
	b	LBB0_5
LBB0_4:
	mov	x8, #0
LBB0_5:
	lsr	x9, x8, #24
	lsr	w10, w8, #8
	ubfx	x11, x8, #8, #24
	and	w11, w11, #0xff00
	bfi	w9, w8, #24, #8
	orr	w0, w9, w11
	bfi	w0, w10, #16, #8
	b	_reverse_endian32
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
