	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_grh_header_version
_get_grh_header_version:                ## @get_grh_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
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_be32toh
	leaq	20(%rbx), %rsi
	andl	$-268435456, %eax               ## imm = 0xF0000000
	cmpl	$1610612736, %eax               ## imm = 0x60000000
	jne	LBB0_1
## %bb.3:
	movl	$6, %eax
	cmpl	$5, 24(%rbx)
	jne	LBB0_5
## %bb.4:
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	$0, -24(%rbp)
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_ipv4_calc_hdr_csum
	xorl	%ecx, %ecx
	cmpq	%rax, 28(%rbx)
	setne	%cl
	leal	(%rcx,%rcx), %eax
	addl	$4, %eax
	jmp	LBB0_5
LBB0_1:
	movl	$4, %eax
	cmpl	$4, (%rsi)
	je	LBB0_5
## %bb.2:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_get_grh_header_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_grh_header_version
_get_grh_header_version:                ; @get_grh_header_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	mov	x21, x0
	ldr	w0, [x21], #20
	bl	_be32toh
	lsr	w8, w0, #28
	cmp	w8, #6
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20, #24]
	mov	w19, #6
	cmp	w8, #5
	b.ne	LBB0_6
; %bb.2:
	mov	x0, sp
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	str	xzr, [sp, #8]
	mov	x0, sp
	mov	w1, #10
	bl	_ipv4_calc_hdr_csum
	ldur	x8, [x20, #28]
	cmp	x8, x0
	mov	w8, #4
	csel	w19, w8, w19, eq
	b	LBB0_6
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, #4
	b.ne	LBB0_5
; %bb.4:
	mov	w19, #4
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	w19, #-1
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_get_grh_header_version
.subsections_via_symbols
