	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_get_rdma_header_version     ## -- Begin function ib_get_rdma_header_version
	.p2align	4, 0x90
_ib_get_rdma_header_version:            ## @ib_get_rdma_header_version
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %ecx
	cmpl	$6, %ecx
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	$6, %eax
	cmpl	$5, 4(%rdi)
	jne	LBB0_4
## %bb.3:
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	$0, -24(%rbp)
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_ip_fast_csum
	xorl	%ecx, %ecx
	cmpq	%rax, 8(%rbx)
	setne	%cl
	leal	(%rcx,%rcx), %eax
	addl	$4, %eax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	cmpl	$4, %ecx
	sete	%al
	shll	$2, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_get_rdma_header_version     ; -- Begin function ib_get_rdma_header_version
	.p2align	2
_ib_get_rdma_header_version:            ; @ib_get_rdma_header_version
	.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
	ldr	w8, [x0]
	cmp	w8, #6
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #4]
	mov	w19, #6
	cmp	w8, #5
	b.ne	LBB0_4
; %bb.2:
	mov	x0, sp
	mov	x1, x20
	mov	w2, #16
	bl	_memcpy
	str	xzr, [sp, #8]
	mov	x0, sp
	mov	w1, #5
	bl	_ip_fast_csum
	ldr	x8, [x20, #8]
	cmp	x8, x0
	mov	w8, #4
	csel	w19, w8, w19, eq
	b	LBB0_4
LBB0_3:
	cmp	w8, #4
	cset	w8, eq
	lsl	w19, w8, #2
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
