	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_icrc_hdr                   ## -- Begin function rxe_icrc_hdr
	.p2align	4, 0x90
_rxe_icrc_hdr:                          ## @rxe_icrc_hdr
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	xorl	%ecx, %ecx
	cmpq	%rax, %rbx
	sete	%cl
	leal	20(,%rcx,4), %r15d
	movq	_RXE_BTH_BYTES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	80(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r12), %r13
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%r12, %rdi
	cmpq	%rax, %r13
	jne	LBB0_2
## %bb.1:
	callq	_ip_hdr
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	leaq	16(%rbx), %r12
	movl	$255, (%rbx)
	movq	_CSUM_MANGLED_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_3
LBB0_2:
	callq	_ipv6_hdr
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	leaq	12(%rbx), %r12
	movl	8(%rbx), %edi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	movl	$15, (%rbx)
	movq	_CSUM_MANGLED_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movl	$255, 4(%rbx)
	movq	%rax, (%r12)
	movl	%r15d, %r12d
	leaq	(%rbx,%r12,4), %rdi
	movq	8(%r14), %rsi
	movq	_RXE_BTH_BYTES@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_memcpy
	movq	_BTH_QPN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	callq	_cpu_to_be32
	orl	%eax, (%rbx,%r12,4)
	addl	(%r13), %r15d
	movl	16(%r14), %edi
	movl	$-558161693, %esi               ## imm = 0xDEBB20E3
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_rxe_crc32
	movl	16(%r14), %edi
	movslq	(%r13), %rdx
	movq	_rxe_opcode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r14), %rsi
	movl	(%rcx,%rsi,4), %ecx
	subl	%edx, %ecx
	shlq	$2, %rdx
	addq	8(%r14), %rdx
	movl	%eax, %esi
	callq	_rxe_crc32
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_RXE_BTH_BYTES,4,2              ## @RXE_BTH_BYTES
	.comm	_CSUM_MANGLED_0,8,3             ## @CSUM_MANGLED_0
	.comm	_BTH_QPN_MASK,4,2               ## @BTH_QPN_MASK
	.comm	_rxe_opcode,8,3                 ## @rxe_opcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_icrc_hdr                   ; -- Begin function rxe_icrc_hdr
	.p2align	2
_rxe_icrc_hdr:                          ; @rxe_icrc_hdr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x20, [x1]
Lloh3:
	adrp	x24, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ETH_P_IP@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_htons
	cmp	x20, x0
	mov	w8, #20
	mov	w9, #24
	csel	w20, w9, w8, eq
Lloh5:
	adrp	x23, _RXE_BTH_BYTES@GOTPAGE
Lloh6:
	ldr	x23, [x23, _RXE_BTH_BYTES@GOTPAGEOFF]
	ldrsw	x8, [x23]
	lsl	x8, x8, #2
	add	x9, x8, #80
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #95
	and	x8, x8, #0xfffffffffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x25, [x22]
	ldr	w0, [x24]
	bl	_htons
	cmp	x25, x0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_ip_hdr
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
	add	x22, x21, #16
	mov	w8, #255
	str	w8, [x21]
Lloh9:
	adrp	x8, _CSUM_MANGLED_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CSUM_MANGLED_0@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_ipv6_hdr
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
	add	x22, x21, #12
	ldr	w0, [x21, #8]
	mov	w1, #255
	mov	w2, #4
	bl	_memset
	mov	w8, #15
	str	w8, [x21]
Lloh12:
	adrp	x8, _CSUM_MANGLED_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CSUM_MANGLED_0@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
LBB0_3:
	mov	w9, #255
	str	w9, [x21, #4]
	str	x8, [x22]
	add	x22, x21, w20, uxtw #2
	ldr	x1, [x19, #8]
	ldr	w2, [x23]
	mov	x0, x22
	bl	_memcpy
Lloh15:
	adrp	x8, _BTH_QPN_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTH_QPN_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mvn	w0, w8
	bl	_cpu_to_be32
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	w8, [x22]
	ldr	w8, [x23]
	add	w3, w8, w20
	ldr	w0, [x19, #16]
	mov	w1, #8419
	movk	w1, #57019, lsl #16
	mov	x2, x21
	bl	_rxe_crc32
	mov	x1, x0
	ldr	w0, [x19, #16]
	ldrsw	x8, [x23]
	ldp	x10, x9, [x19]
	add	x2, x9, x8, lsl #2
Lloh18:
	adrp	x9, _rxe_opcode@GOTPAGE
Lloh19:
	ldr	x9, [x9, _rxe_opcode@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	w9, [x9, x10, lsl #2]
	sub	w3, w9, w8
	bl	_rxe_crc32
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_RXE_BTH_BYTES,4,2              ; @RXE_BTH_BYTES
	.comm	_CSUM_MANGLED_0,8,3             ; @CSUM_MANGLED_0
	.comm	_BTH_QPN_MASK,4,2               ; @BTH_QPN_MASK
	.comm	_rxe_opcode,8,3                 ; @rxe_opcode
.subsections_via_symbols
