	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_set_rsscpu
_enic_set_rsscpu:                       ## @enic_set_rsscpu
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	leaq	-36(%rbp), %rdx
	movl	$8, %esi
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rdi), %esi
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	(%r14)
	movq	(%r15), %rax
	movl	%esi, %ecx
	shrl	$2, %ecx
	movq	(%rax,%rcx,8), %rax
	movl	%edi, %ebx
	movl	%r12d, %ecx
	shrl	%cl, %ebx
	andl	$3, %esi
	movl	%edx, (%rax,%rsi,4)
	incl	%edi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_enic_set_rss_cpu
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	4(%r14), %edi
	movl	-36(%rbp), %ecx
	movl	$8, %esi
	movq	%r15, %rdx
	callq	_pci_free_consistent
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_enic_set_rsscpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_set_rsscpu
_enic_set_rsscpu:                       ; @enic_set_rsscpu
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	add	x2, sp, #12
	mov	w1, #8
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w8, #1
	ldr	w10, [x19]
	udiv	w11, w9, w10
	ldr	x12, [x20]
	lsr	w13, w9, #2
	ldr	x12, [x12, w13, uxtw #3]
	msub	w10, w11, w10, w9
	and	w9, w9, #0x3
	str	w10, [x12, w9, uxtw #2]
	lsr	w9, w8, w21
	add	w8, w8, #1
	cbz	w9, LBB0_2
; %bb.3:
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #8
	bl	_enic_set_rss_cpu
	mov	x21, x0
	mov	x0, x22
	bl	_spin_unlock
	ldr	w0, [x19, #4]
	ldr	w3, [sp, #12]
	mov	w1, #8
	mov	x2, x20
	bl	_pci_free_consistent
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_enic_set_rsscpu
.subsections_via_symbols
