	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_set_cld_element
_i40e_set_cld_element:                  ## @i40e_set_cld_element
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	28(%r12), %edi
	movl	36(%r14), %esi
	callq	_ether_addr_copy
	movl	24(%r12), %edi
	movl	32(%r14), %esi
	callq	_ether_addr_copy
	movq	(%r14), %rax
	movq	_ETH_P_IP@GOTPCREL(%rip), %rdx
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_2
## %bb.1:
	cmpq	%rcx, %rax
	jne	LBB0_8
LBB0_2:
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.3:
	movq	24(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%r14, %rax
	jle	LBB0_7
## %bb.4:
	xorl	%r13d, %r13d
	movl	$-1, %r15d
	xorl	%r14d, %r14d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	addl	%r15d, %eax
	cltq
	movl	(%rbx,%rax,4), %edi
	callq	_be32_to_cpu
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	incl	%r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rdi
	callq	_ARRAY_SIZE
	addq	$8, %r13
	decl	%r15d
	cmpl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jl	LBB0_5
	jmp	LBB0_7
LBB0_6:
	movl	20(%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, -44(%rbp)
	leaq	8(%r12), %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rax
LBB0_7:
	movl	16(%rax), %edi
	callq	_ntohs
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r12)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,8,3                   ## @ETH_P_IP
	.comm	_ETH_P_IPV6,8,3                 ## @ETH_P_IPV6
	.comm	_IPV6_MAX_INDEX,4,2             ## @IPV6_MAX_INDEX
	.no_dead_strip	_i40e_set_cld_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_set_cld_element
_i40e_set_cld_element:                  ; @i40e_set_cld_element
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w0, [x19, #28]
	ldr	w1, [x20, #36]
	bl	_ether_addr_copy
	ldr	w0, [x19, #24]
	ldr	w1, [x20, #32]
	bl	_ether_addr_copy
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _ETH_P_IPV6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_P_IPV6@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_7
; %bb.1:
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
	mov	w23, #0
	mov	w24, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x20, #24]
	mov	x0, x21
	bl	_ARRAY_SIZE
	add	w8, w0, w24
	ldr	w0, [x21, w8, sxtw #2]
	bl	_be32_to_cpu
	str	w0, [sp, #12]
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	ldr	x8, [x19, #16]
	add	x0, x8, x22
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	add	w23, w23, #1
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	sub	w24, w24, #1
	cmp	w23, w0
	b.lt	LBB0_4
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20, #20]
	bl	_be32_to_cpu
	str	w0, [sp, #12]
	add	x0, x19, #8
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
LBB0_6:
	ldr	w0, [x20, #16]
	bl	_ntohs
	bl	_cpu_to_le16
	str	w0, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,8,3                   ; @ETH_P_IP
	.comm	_ETH_P_IPV6,8,3                 ; @ETH_P_IPV6
	.comm	_IPV6_MAX_INDEX,4,2             ; @IPV6_MAX_INDEX
	.no_dead_strip	_i40e_set_cld_element
.subsections_via_symbols
