	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa2_eth_set_dist_key
_dpaa2_eth_set_dist_key:                ## @dpaa2_eth_set_dist_key
	.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
	movl	%edx, %ebx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_dist_fields@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	xorl	%r14d, %r14d
	movl	$12, %r13d
	movq	_DPKG_MAX_NUM_OF_EXTRACTS@GOTPCREL(%rip), %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r13
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	testl	%ebx, -12(%rdi,%r13)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_DPAA2_ETH_RX_DIST_HASH@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	(%rdi,%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax
	cmpq	(%r15), %rax
	jae	LBB0_24
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx
	movq	_DPKG_EXTRACT_FROM_HDR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%rax, %rsi
	shlq	$4, %rsi
	movl	%edx, 12(%rcx,%rsi)
	movl	-4(%rdi,%r13), %edx
	movl	%edx, 8(%rcx,%rsi)
	movq	_DPKG_FULL_FIELD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rcx,%rsi)
	movl	-8(%rdi,%r13), %edx
	movl	%edx, (%rcx,%rsi)
	incq	%rax
	movq	%rax, -80(%rbp)
	jmp	LBB0_7
LBB0_8:
	movq	_DPAA2_CLASSIFIER_DMA_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	leaq	-80(%rbp), %rdi
	movq	%rax, %rsi
	callq	_dpni_prepare_key_cfg
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_24:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	_E2BIG@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_12:
	movl	(%r15), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_dma_map_single
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_14:
	movq	_DPAA2_ETH_RX_DIST_HASH@GOTPCREL(%rip), %rcx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rcx)
	jne	LBB0_18
## %bb.15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_dpaa2_eth_has_legacy_dist
	movq	%rbx, %rdi
	movl	%r14d, %esi
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	callq	_config_legacy_hash_key
	jmp	LBB0_19
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_config_cls_key
	jmp	LBB0_19
LBB0_17:
	callq	_config_hash_key
LBB0_19:
	movl	%eax, %ebx
	movl	(%r15), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_dma_unmap_single
	testl	%ebx, %ebx
	jne	LBB0_22
## %bb.20:
	xorl	%ebx, %ebx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_DPAA2_ETH_RX_DIST_HASH@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_22
## %bb.21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_22:
	movq	%r12, %rdi
	callq	_kfree
LBB0_23:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dist_fields,8,3                ## @dist_fields
	.comm	_DPAA2_ETH_RX_DIST_HASH,4,2     ## @DPAA2_ETH_RX_DIST_HASH
	.comm	_DPKG_MAX_NUM_OF_EXTRACTS,8,3   ## @DPKG_MAX_NUM_OF_EXTRACTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error adding key extraction rule, too many rules?\n"

	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_DPKG_EXTRACT_FROM_HDR,4,2      ## @DPKG_EXTRACT_FROM_HDR
	.comm	_DPKG_FULL_FIELD,4,2            ## @DPKG_FULL_FIELD
	.comm	_DPAA2_CLASSIFIER_DMA_SIZE,4,2  ## @DPAA2_CLASSIFIER_DMA_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"dpni_prepare_key_cfg error %d\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.2:                               ## @.str.2
	.asciz	"DMA mapping failed\n"

	.no_dead_strip	_dpaa2_eth_set_dist_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa2_eth_set_dist_key
_dpaa2_eth_set_dist_key:                ; @dpaa2_eth_set_dist_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x2
	mov	x20, x1
	ldr	x19, [x0]
	bl	_netdev_priv
	mov	x21, x0
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x23, _dist_fields@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dist_fields@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	stp	x21, x19, [sp, #16]             ; 16-byte Folded Spill
	b.lt	LBB0_8
; %bb.1:
	mov	x24, #0
	mov	x26, #0
	mov	w25, #0
Lloh2:
	adrp	x27, _DPAA2_ETH_RX_DIST_HASH@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DPAA2_ETH_RX_DIST_HASH@GOTPAGEOFF]
Lloh4:
	adrp	x28, _DPKG_MAX_NUM_OF_EXTRACTS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _DPKG_MAX_NUM_OF_EXTRACTS@GOTPAGEOFF]
Lloh6:
	adrp	x21, _DPKG_EXTRACT_FROM_HDR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _DPKG_EXTRACT_FROM_HDR@GOTPAGEOFF]
Lloh8:
	adrp	x19, _DPKG_FULL_FIELD@GOTPAGE
Lloh9:
	ldr	x19, [x19, _DPKG_FULL_FIELD@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x26, w0, sxtw
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	w8, [x0, x24]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, x24
	ldr	w8, [x8, #12]
	orr	w25, w8, w25
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #32]
	ldr	x9, [x28]
	cmp	x8, x9
	b.hs	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #40]
	ldr	w10, [x21]
	add	x9, x9, x8, lsl #4
	str	w10, [x9, #12]
	add	x10, x0, x24
	ldr	w11, [x10, #8]
	str	w11, [x9, #8]
	ldr	w11, [x19]
	str	w11, [x9, #4]
	ldr	w10, [x10, #4]
	str	w10, [x9]
	add	x8, x8, #1
	str	x8, [sp, #32]
	b	LBB0_2
LBB0_8:
	mov	w25, #0
LBB0_9:
Lloh10:
	adrp	x26, _DPAA2_CLASSIFIER_DMA_SIZE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _DPAA2_CLASSIFIER_DMA_SIZE@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.10:
	mov	x22, x0
	add	x0, sp, #32
	mov	x1, x22
	bl	_dpni_prepare_key_cfg
	cbz	w0, LBB0_15
; %bb.11:
	mov	x23, x0
	str	x23, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_dev_err
	b	LBB0_26
LBB0_12:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_dev_err
Lloh21:
	adrp	x8, _E2BIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_27
LBB0_15:
	ldr	w2, [x26]
Lloh23:
	adrp	x19, _DMA_TO_DEVICE@GOTPAGE
Lloh24:
	ldr	x19, [x19, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x19]
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x27
	mov	x1, x22
	bl	_dma_map_single
	mov	x24, x0
	mov	x0, x27
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_17
; %bb.16:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x27
	bl	_dev_err
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_26
LBB0_17:
Lloh30:
	adrp	x21, _DPAA2_ETH_RX_DIST_HASH@GOTPAGE
Lloh31:
	ldr	x21, [x21, _DPAA2_ETH_RX_DIST_HASH@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_20
; %bb.18:
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x28
	bl	_dpaa2_eth_has_legacy_dist
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x28
	mov	x1, x24
	bl	_config_legacy_hash_key
	b	LBB0_22
LBB0_20:
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x28
	mov	x1, x24
	bl	_config_cls_key
	b	LBB0_22
LBB0_21:
	mov	x0, x28
	mov	x1, x24
	bl	_config_hash_key
LBB0_22:
	mov	x23, x0
	ldr	w2, [x26]
	ldr	w3, [x19]
	mov	x0, x27
	mov	x1, x24
	bl	_dma_unmap_single
	cbnz	w23, LBB0_26
; %bb.23:
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_25
; %bb.24:
	mov	w23, #0
	str	w25, [x28]
	b	LBB0_26
LBB0_25:
	mov	w23, #0
LBB0_26:
	mov	x0, x22
	bl	_kfree
LBB0_27:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_dist_fields,8,3                ; @dist_fields
	.comm	_DPAA2_ETH_RX_DIST_HASH,4,2     ; @DPAA2_ETH_RX_DIST_HASH
	.comm	_DPKG_MAX_NUM_OF_EXTRACTS,8,3   ; @DPKG_MAX_NUM_OF_EXTRACTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error adding key extraction rule, too many rules?\n"

	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_DPKG_EXTRACT_FROM_HDR,4,2      ; @DPKG_EXTRACT_FROM_HDR
	.comm	_DPKG_FULL_FIELD,4,2            ; @DPKG_FULL_FIELD
	.comm	_DPAA2_CLASSIFIER_DMA_SIZE,4,2  ; @DPAA2_CLASSIFIER_DMA_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"dpni_prepare_key_cfg error %d\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.2:                               ; @.str.2
	.asciz	"DMA mapping failed\n"

	.no_dead_strip	_dpaa2_eth_set_dist_key
.subsections_via_symbols
