	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___enic_set_rsskey              ## -- Begin function __enic_set_rsskey
	.p2align	4, 0x90
___enic_set_rsskey:                     ## @__enic_set_rsskey
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	leaq	-44(%rbp), %rdx
	movl	$8, %esi
	callq	_pci_zalloc_consistent
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r13
	movq	_ENIC_RSS_LEN@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_4
## %bb.2:
	movq	8(%r14), %rdi
	xorl	%ecx, %ecx
	movq	_ENIC_RSS_BYTES_PER_KEY@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	(%r9)
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rdi,%rcx,4), %esi
	movq	(%r13), %rbx
	cltq
	movq	(%rbx,%rax,8), %rax
	movl	%esi, (%rax,%rdx,4)
	incq	%rcx
	movslq	(%r8), %rax
	cmpq	%rax, %rcx
	jl	LBB0_3
LBB0_4:
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_enic_set_rss_key
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	(%r14), %edi
	movl	-44(%rbp), %ecx
	movl	$8, %esi
	movq	%r13, %rdx
	callq	_pci_free_consistent
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENIC_RSS_LEN,4,2               ## @ENIC_RSS_LEN
	.comm	_ENIC_RSS_BYTES_PER_KEY,4,2     ## @ENIC_RSS_BYTES_PER_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___enic_set_rsskey              ; -- Begin function __enic_set_rsskey
	.p2align	2
___enic_set_rsskey:                     ; @__enic_set_rsskey
	.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, x0
	ldr	w0, [x0]
	add	x2, sp, #12
	mov	w1, #8
	bl	_pci_zalloc_consistent
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _ENIC_RSS_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENIC_RSS_LEN@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x19, #8]
Lloh2:
	adrp	x11, _ENIC_RSS_BYTES_PER_KEY@GOTPAGE
Lloh3:
	ldr	x11, [x11, _ENIC_RSS_BYTES_PER_KEY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	sdiv	w13, w9, w12
	ldr	w14, [x10, x9, lsl #2]
	ldr	x15, [x20]
	ldr	x15, [x15, w13, sxtw #3]
	msub	w12, w13, w12, w9
	str	w14, [x15, w12, uxtw #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_3
LBB0_4:
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #8
	bl	_enic_set_rss_key
	mov	x21, x0
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	w0, [x19]
	ldr	w3, [sp, #12]
	mov	w1, #8
	mov	x2, x20
	bl	_pci_free_consistent
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENIC_RSS_LEN,4,2               ; @ENIC_RSS_LEN
	.comm	_ENIC_RSS_BYTES_PER_KEY,4,2     ; @ENIC_RSS_BYTES_PER_KEY
.subsections_via_symbols
