	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ena_com_set_hash_ctrl          ## -- Begin function ena_com_set_hash_ctrl
	.p2align	4, 0x90
_ena_com_set_hash_ctrl:                 ## @ena_com_set_hash_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ENA_ADMIN_RSS_HASH_INPUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ena_com_check_supported_feature_id
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_ENA_ADMIN_SET_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L3_SORT_MASK@GOTPCREL(%rip), %rax
	movq	_ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L4_SORT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	(%rbx), %eax
	movl	%eax, -28(%rbp)
	movl	%ecx, -32(%rbp)
	leaq	-36(%rbp), %rsi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_ena_com_mem_addr_set
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_6
LBB0_1:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	addq	$16, %r14
	movl	$4, -40(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	$24, %edx
	movl	$4, %r8d
	callq	_ena_com_execute_admin_command
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_6:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ADMIN_RSS_HASH_INPUT,4,2   ## @ENA_ADMIN_RSS_HASH_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Feature %d isn't supported\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENA_ADMIN_SET_FEATURE,4,2      ## @ENA_ADMIN_SET_FEATURE
	.comm	_ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK,4,2 ## @ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK
	.comm	_ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L3_SORT_MASK,4,2 ## @ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L3_SORT_MASK
	.comm	_ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L4_SORT_MASK,4,2 ## @ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L4_SORT_MASK
L_.str.1:                               ## @.str.1
	.asciz	"memory address set failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to set hash input. error: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ena_com_set_hash_ctrl          ; -- Begin function ena_com_set_hash_ctrl
	.p2align	2
_ena_com_set_hash_ctrl:                 ; @ena_com_set_hash_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x20, _ENA_ADMIN_RSS_HASH_INPUT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENA_ADMIN_RSS_HASH_INPUT@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ena_com_check_supported_feature_id
	cbz	w0, LBB0_3
; %bb.1:
	add	x21, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _ENA_ADMIN_SET_FEATURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENA_ADMIN_SET_FEATURE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
Lloh8:
	adrp	x8, _ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L3_SORT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L3_SORT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L4_SORT_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L4_SORT_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	stp	w8, w9, [sp, #32]
	orr	x1, x21, #0x4
	ldr	w2, [x19]
	mov	x0, x19
	bl	_ena_com_mem_addr_set
	mov	x20, x0
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	w1, [x20]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh18:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	add	x0, x19, #16
	mov	w8, #4
	str	w8, [sp, #24]
	add	x1, sp, #24
	add	x3, sp, #16
	mov	w2, #24
	mov	w4, #4
	bl	_ena_com_execute_admin_command
	mov	x20, x0
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.5:
	str	x20, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_pr_err
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ADMIN_RSS_HASH_INPUT,4,2   ; @ENA_ADMIN_RSS_HASH_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Feature %d isn't supported\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENA_ADMIN_SET_FEATURE,4,2      ; @ENA_ADMIN_SET_FEATURE
	.comm	_ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK,4,2 ; @ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK
	.comm	_ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L3_SORT_MASK,4,2 ; @ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L3_SORT_MASK
	.comm	_ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L4_SORT_MASK,4,2 ; @ENA_ADMIN_FEATURE_RSS_FLOW_HASH_INPUT_L4_SORT_MASK
l_.str.1:                               ; @.str.1
	.asciz	"memory address set failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to set hash input. error: %d\n"

.subsections_via_symbols
