	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function veth_xdp_set
_veth_xdp_set:                          ## @veth_xdp_set
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	(%rax), %r15
	movq	%rbx, (%rax)
	movl	8(%rax), %edi
	callq	_rtnl_dereference
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_2
## %bb.4:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_VETH_XDP_HEADROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	(%r12), %ebx
	movl	$4, %edi
	callq	_SKB_DATA_ALIGN
	addl	%ebx, %eax
	subl	%eax, %r15d
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	cmpl	%r15d, 4(%r12)
	jbe	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG_MOD
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_14:
	testq	%r15, %r15
	je	LBB0_15
## %bb.16:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r14)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_veth_disable_xdp
LBB0_18:
	testq	%r12, %r12
	je	LBB0_20
## %bb.19:
	movq	_NETIF_F_GSO_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r12)
	movq	_ETH_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	jmp	LBB0_20
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG_MOD
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	8(%r14), %rax
	cmpq	16(%r12), %rax
	jge	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG_MOD
	movq	_ENOSPC@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	jmp	LBB0_24
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_8:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r14)
	je	LBB0_12
## %bb.9:
	movq	%r14, %rdi
	callq	_veth_enable_xdp
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG_MOD
	jmp	LBB0_11
LBB0_12:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
LBB0_20:
	movq	%r15, %rdi
	callq	_bpf_prog_put
	movb	$1, %al
LBB0_21:
	testq	%rbx, %rbx
	setne	%cl
	xorl	%ebx, %ebx
	cmpb	%al, %cl
	je	LBB0_24
## %bb.22:
	testq	%r12, %r12
	je	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	callq	_netdev_update_features
LBB0_24:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_NETIF_F_GSO_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 32(%r12)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%r12)
	xorl	%eax, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot set XDP when peer is detached"

	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VETH_XDP_HEADROOM,4,2          ## @VETH_XDP_HEADROOM
L_.str.1:                               ## @.str.1
	.asciz	"Peer MTU is too large to set XDP"

	.comm	_ERANGE,4,2                     ## @ERANGE
L_.str.2:                               ## @.str.2
	.asciz	"XDP expects number of rx queues not less than peer tx queues"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_IFF_UP,4,2                     ## @IFF_UP
L_.str.3:                               ## @.str.3
	.asciz	"Setup for XDP failed"

	.comm	_NETIF_F_GSO_SOFTWARE,4,2       ## @NETIF_F_GSO_SOFTWARE
	.comm	_ETH_MAX_MTU,4,2                ## @ETH_MAX_MTU
	.no_dead_strip	_veth_xdp_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function veth_xdp_set
_veth_xdp_set:                          ; @veth_xdp_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x20, x1
	mov	x24, x0
	bl	_netdev_priv
	mov	x22, x0
	ldr	x19, [x0]
	str	x20, [x0]
	ldr	w0, [x0, #8]
	bl	_rtnl_dereference
	mov	x21, x0
	cbz	x20, LBB0_4
; %bb.1:
	cbz	x21, LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _VETH_XDP_HEADROOM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VETH_XDP_HEADROOM@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	ldr	w27, [x21]
	mov	w0, #4
	bl	_SKB_DATA_ALIGN
	add	w8, w26, w27
	add	w8, w8, w0
	ldr	w9, [x21, #4]
	sub	w25, w25, w8
	cmp	w9, w25
	b.ls	LBB0_10
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_NL_SET_ERR_MSG_MOD
Lloh8:
	adrp	x8, _ERANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	cbz	x19, LBB0_13
; %bb.5:
	ldr	w8, [x24, #24]
Lloh10:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x24
	bl	_veth_disable_xdp
LBB0_7:
	cbz	x21, LBB0_18
; %bb.8:
Lloh13:
	adrp	x8, _NETIF_F_GSO_SOFTWARE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETIF_F_GSO_SOFTWARE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x21, #32]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _ETH_MAX_MTU@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ETH_MAX_MTU@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #28]
	b	LBB0_18
LBB0_9:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_NL_SET_ERR_MSG_MOD
Lloh21:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	ldr	x8, [x24, #8]
	ldr	x9, [x21, #16]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.11:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_NL_SET_ERR_MSG_MOD
Lloh25:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w24, w8
	str	x19, [x22]
	b	LBB0_22
LBB0_13:
	mov	w8, #0
	b	LBB0_19
LBB0_14:
	ldr	w8, [x24, #24]
Lloh27:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
	mov	x0, x24
	bl	_veth_enable_xdp
	cbz	w0, LBB0_17
; %bb.16:
	mov	x24, x0
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_NL_SET_ERR_MSG_MOD
	str	x19, [x22]
	b	LBB0_22
LBB0_17:
	cbz	x19, LBB0_23
LBB0_18:
	mov	x0, x19
	bl	_bpf_prog_put
	mov	w8, #1
LBB0_19:
	mov	w24, #0
	cmp	x20, #0
	cset	w9, ne
	cmp	w9, w8
	b.eq	LBB0_22
; %bb.20:
	cbz	x21, LBB0_22
; %bb.21:
	mov	x0, x21
	bl	_netdev_update_features
	mov	w24, #0
LBB0_22:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	w8, #0
Lloh32:
	adrp	x9, _NETIF_F_GSO_SOFTWARE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _NETIF_F_GSO_SOFTWARE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	w10, [x21, #32]
	bic	w9, w10, w9
	stp	w25, w9, [x21, #28]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot set XDP when peer is detached"

	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VETH_XDP_HEADROOM,4,2          ; @VETH_XDP_HEADROOM
l_.str.1:                               ; @.str.1
	.asciz	"Peer MTU is too large to set XDP"

	.comm	_ERANGE,4,2                     ; @ERANGE
l_.str.2:                               ; @.str.2
	.asciz	"XDP expects number of rx queues not less than peer tx queues"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_IFF_UP,4,2                     ; @IFF_UP
l_.str.3:                               ; @.str.3
	.asciz	"Setup for XDP failed"

	.comm	_NETIF_F_GSO_SOFTWARE,4,2       ; @NETIF_F_GSO_SOFTWARE
	.comm	_ETH_MAX_MTU,4,2                ; @ETH_MAX_MTU
	.no_dead_strip	_veth_xdp_set
.subsections_via_symbols
