	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tun_ip_ver
_get_tun_ip_ver:                        ## @get_tun_ip_ver
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	_DEV_TYPE_TUN@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.1:
	movl	$0, (%rbx)
	movq	%r15, %rdi
	callq	_BLEN
	xorl	%edi, %edi
	cmpl	$4, %eax
	setge	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_BPTR
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OPENVPN_IPH_GET_VER            ## TAILCALL
LBB0_4:
	movq	_DEV_TYPE_TAP@GOTPCREL(%rip), %rax
	movl	$-1, %r14d
	cmpl	%edi, (%rax)
	jne	LBB0_8
## %bb.5:
	movl	$4, (%rbx)
	movq	%r15, %rdi
	callq	_BLEN
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	setge	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_BPTR
	movl	(%rax), %edi
	callq	_ntohs
	movq	_OPENVPN_ETH_P_IPV6@GOTPCREL(%rip), %rcx
	movl	$6, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_OPENVPN_ETH_P_IPV4@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leal	(%rdx,%rdx,4), %r14d
	decl	%r14d
	jmp	LBB0_8
LBB0_2:
	movl	$-1, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_TYPE_TUN,4,2               ## @DEV_TYPE_TUN
	.comm	_DEV_TYPE_TAP,4,2               ## @DEV_TYPE_TAP
	.comm	_OPENVPN_ETH_P_IPV6,8,3         ## @OPENVPN_ETH_P_IPV6
	.comm	_OPENVPN_ETH_P_IPV4,8,3         ## @OPENVPN_ETH_P_IPV4
	.no_dead_strip	_get_tun_ip_ver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tun_ip_ver
_get_tun_ip_ver:                        ; @get_tun_ip_ver
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _DEV_TYPE_TUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_TYPE_TUN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
	str	wzr, [x20]
	mov	x0, x19
	bl	_BLEN
	cmp	w0, #3
	cset	w0, gt
	bl	_likely
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_BPTR
	ldr	w0, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_OPENVPN_IPH_GET_VER
LBB0_3:
Lloh3:
	adrp	x8, _DEV_TYPE_TAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEV_TYPE_TAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_7
; %bb.4:
	mov	w8, #4
	str	w8, [x20]
	mov	x0, x19
	bl	_BLEN
	ldr	w8, [x20]
	cmp	w0, w8
	cset	w0, ge
	bl	_likely
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_BPTR
	ldr	w0, [x0]
	bl	_ntohs
Lloh6:
	adrp	x8, _OPENVPN_ETH_P_IPV6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPENVPN_ETH_P_IPV6@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.6:
	mov	w0, #6
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh9:
	adrp	x8, _OPENVPN_ETH_P_IPV4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPENVPN_ETH_P_IPV4@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	mov	w8, #4
	csinv	w0, w8, wzr, eq
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_TYPE_TUN,4,2               ; @DEV_TYPE_TUN
	.comm	_DEV_TYPE_TAP,4,2               ; @DEV_TYPE_TAP
	.comm	_OPENVPN_ETH_P_IPV6,8,3         ; @OPENVPN_ETH_P_IPV6
	.comm	_OPENVPN_ETH_P_IPV4,8,3         ; @OPENVPN_ETH_P_IPV4
	.no_dead_strip	_get_tun_ip_ver
.subsections_via_symbols
