	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_atl_a0_hw_rss_set
_hw_atl_a0_hw_rss_set:                  ## @hw_atl_a0_hw_rss_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_max
	movl	%eax, %r15d
	movq	_HW_ATL_A0_RSS_REDIRECTION_MAX@GOTPCREL(%rip), %rbx
	movq	_HW_ATL_A0_RSS_REDIRECTION_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	imull	(%rbx), %r13d
	shrl	$4, %r13d
	leaq	4(,%r13,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leal	4(,%r13,4), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	leal	-1(%rsi), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r8
	leal	(%rsi,%rsi,2), %ebx
	addl	$-3, %ebx
	negl	%esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rdi,4), %eax
	xorl	%edx, %edx
	divl	%r15d
	movl	%ebx, %ecx
	andb	$15, %cl
	shll	%cl, %edx
	movl	%ebx, %eax
	shrl	$4, %eax
	orl	%edx, (%r14,%rax,4)
	decq	%rdi
	addl	$-3, %ebx
	cmpl	%edi, %esi
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	movq	_hw_atl_rpf_rss_redir_wr_en_get@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	movl	%ebx, %eax
	movl	(%r14,%rax,4), %esi
	movq	%r12, %rdi
	callq	_hw_atl_rpf_rss_redir_tbl_wr_data_set
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_hw_atl_rpf_rss_redir_tbl_addr_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_rpf_rss_redir_wr_en_set
	movl	(%r15), %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	movl	$10000, %r9d                    ## imm = 0x2710
	callq	_readx_poll_timeout_atomic
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_aq_hw_err_from_flags
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_A0_RSS_REDIRECTION_MAX,4,2 ## @HW_ATL_A0_RSS_REDIRECTION_MAX
	.comm	_HW_ATL_A0_RSS_REDIRECTION_BITS,4,2 ## @HW_ATL_A0_RSS_REDIRECTION_BITS
	.comm	_hw_atl_rpf_rss_redir_wr_en_get,4,2 ## @hw_atl_rpf_rss_redir_wr_en_get
	.no_dead_strip	_hw_atl_a0_hw_rss_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_atl_a0_hw_rss_set
_hw_atl_a0_hw_rss_set:                  ; @hw_atl_a0_hw_rss_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x22, [x1]
	ldr	x8, [x0]
	ldr	w1, [x8]
	mov	w0, #1
	bl	_max
	mov	x21, x0
Lloh3:
	adrp	x23, _HW_ATL_A0_RSS_REDIRECTION_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HW_ATL_A0_RSS_REDIRECTION_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x9, _HW_ATL_A0_RSS_REDIRECTION_BITS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HW_ATL_A0_RSS_REDIRECTION_BITS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mul	w8, w9, w8
	lsr	w8, w8, #4
	add	w8, w8, #1
	lsl	x9, x8, #2
	add	w10, w9, #15
	and	x12, x10, #0xfffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x12
	mov	sp, x20
	lsl	w2, w8, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w8, [x23]
	cbz	w8, LBB0_3
; %bb.1:
	sub	w9, w8, #1
	add	x9, x22, w9, uxtw #2
	add	w10, w8, w8, lsl #1
	sub	w10, w10, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #-4
	udiv	w12, w11, w21
	msub	w11, w12, w21, w11
	and	w12, w10, #0xf
	lsr	w13, w10, #4
	lsl	x13, x13, #2
	ldr	w14, [x20, x13]
	lsl	w11, w11, w12
	orr	w11, w14, w11
	str	w11, [x20, x13]
	sub	w10, w10, #3
	subs	w8, w8, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	w21, w0
Lloh10:
	adrp	x22, _hw_atl_rpf_rss_redir_wr_en_get@GOTPAGE
Lloh11:
	ldr	x22, [x22, _hw_atl_rpf_rss_redir_wr_en_get@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x21, x21, #1
	ldr	w1, [x20, w21, uxtw #2]
	mov	x0, x19
	bl	_hw_atl_rpf_rss_redir_tbl_wr_data_set
	mov	x0, x19
	mov	x1, x21
	bl	_hw_atl_rpf_rss_redir_tbl_addr_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_rpf_rss_redir_wr_en_set
	ldr	w0, [x22]
	mov	x1, x19
	mov	w3, #0
	mov	w4, #1000
	mov	w5, #10000
	bl	_readx_poll_timeout_atomic
	tbz	w0, #31, LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_aq_hw_err_from_flags
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_A0_RSS_REDIRECTION_MAX,4,2 ; @HW_ATL_A0_RSS_REDIRECTION_MAX
	.comm	_HW_ATL_A0_RSS_REDIRECTION_BITS,4,2 ; @HW_ATL_A0_RSS_REDIRECTION_BITS
	.comm	_hw_atl_rpf_rss_redir_wr_en_get,4,2 ; @hw_atl_rpf_rss_redir_wr_en_get
	.no_dead_strip	_hw_atl_a0_hw_rss_set
.subsections_via_symbols
