	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipgre_tap_validate
_ipgre_tap_validate:                    ## @ipgre_tap_validate
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_IFLA_ADDRESS@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rdi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	callq	_nla_len
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	(%r15), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_nla_data
	movl	%eax, %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	movq	_IFLA_GRE_REMOTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_nla_data
	leaq	-28(%rbp), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memcpy
	cmpl	$0, -28(%rbp)
	je	LBB0_2
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ipgre_tunnel_validate
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_ADDRESS,8,3               ## @IFLA_ADDRESS
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_IFLA_GRE_REMOTE,8,3            ## @IFLA_GRE_REMOTE
	.no_dead_strip	_ipgre_tap_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipgre_tap_validate
_ipgre_tap_validate:                    ; @ipgre_tap_validate
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _IFLA_ADDRESS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IFLA_ADDRESS@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x0, x8, lsl #3]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_nla_len
Lloh2:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x21]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_data
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_8
LBB0_3:
	cbz	x19, LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _IFLA_GRE_REMOTE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFLA_GRE_REMOTE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_nla_data
	mov	x1, x0
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_ipgre_tunnel_validate
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_ADDRESS,8,3               ; @IFLA_ADDRESS
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_IFLA_GRE_REMOTE,8,3            ; @IFLA_GRE_REMOTE
	.no_dead_strip	_ipgre_tap_validate
.subsections_via_symbols
