	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_btsocket_rfcomm_crc
_ng_btsocket_rfcomm_crc:                ## @ng_btsocket_rfcomm_crc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_ng_btsocket_rfcomm_crc_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leal	-1(%rsi), %eax
	cmpl	$3, %eax
	jae	LBB0_4
## %bb.3:
	movl	$255, %eax
	jmp	LBB0_6
LBB0_1:
	movl	$255, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%esi, %r9d
	andl	$-4, %r9d
	movl	$255, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rdx
	xorq	(%r8,%rax,8), %rcx
	xorq	(%r8,%rcx,8), %rdx
	movq	24(%rdi), %rax
	addq	$32, %rdi
	xorq	(%r8,%rdx,8), %rax
	movq	(%r8,%rax,8), %rax
	addl	$-4, %r9d
	jne	LBB0_5
LBB0_6:
	testb	$3, %sil
	je	LBB0_9
## %bb.7:
	andl	$3, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorq	(%rdi,%rdx,8), %rax
	movq	(%r8,%rax,8), %rax
	incq	%rdx
	cmpl	%edx, %esi
	jne	LBB0_8
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ng_btsocket_rfcomm_crc_table,8,3 ## @ng_btsocket_rfcomm_crc_table
	.no_dead_strip	_ng_btsocket_rfcomm_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_btsocket_rfcomm_crc
_ng_btsocket_rfcomm_crc:                ; @ng_btsocket_rfcomm_crc
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ng_btsocket_rfcomm_crc_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ng_btsocket_rfcomm_crc_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	mov	w8, #255
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0], #8
	eor	x8, x10, x8
	ldr	x8, [x9, x8, lsl #3]
	subs	w1, w1, #1
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x8
	ret
LBB0_4:
	mov	w8, #255
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ng_btsocket_rfcomm_crc_table,8,3 ; @ng_btsocket_rfcomm_crc_table
	.no_dead_strip	_ng_btsocket_rfcomm_crc
.subsections_via_symbols
