	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_get_header_version
_ib_get_header_version:                 ## @ib_get_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	(%rdi), %ecx
	movq	_IPV6_VERSION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_IPV6_VERSION@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	$6, %eax
	cmpl	$5, 4(%rdi)
	jne	LBB0_4
## %bb.3:
	leaq	-24(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	setne	%al
	addl	%eax, %eax
	addl	$4, %eax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	cmpl	$4, %ecx
	sete	%al
	shll	$2, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPV6_VERSION_MASK,4,2          ## @IPV6_VERSION_MASK
	.comm	_IPV6_VERSION,4,2               ## @IPV6_VERSION
	.no_dead_strip	_ib_get_header_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_get_header_version
_ib_get_header_version:                 ; @ib_get_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]
Lloh0:
	adrp	x9, _IPV6_VERSION_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPV6_VERSION_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _IPV6_VERSION@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IPV6_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	mov	w20, #6
	cmp	w8, #5
	b.ne	LBB0_4
; %bb.2:
	mov	x0, sp
	mov	x1, x19
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x19, #8]
	cmp	x8, #0
	mov	w8, #4
	csel	w20, w8, w20, eq
	b	LBB0_4
LBB0_3:
	cmp	w8, #4
	cset	w8, eq
	lsl	w20, w8, #2
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IPV6_VERSION_MASK,4,2          ; @IPV6_VERSION_MASK
	.comm	_IPV6_VERSION,4,2               ; @IPV6_VERSION
	.no_dead_strip	_ib_get_header_version
.subsections_via_symbols
