	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efa_com_set_feature_ex
_efa_com_set_feature_ex:                ## @efa_com_set_feature_ex
	.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	%r9, %r13
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	%ecx, %esi
	callq	_efa_com_check_supported_feature_id
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	4(%r12), %rdi
	movq	_EFA_ADMIN_SET_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	_EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	20(%rbx), %rsi
	leaq	16(%rbx), %rdx
	movl	%r15d, %eax
	movq	%rdi, %r15
	movl	%eax, %edi
	callq	_efa_com_set_dma_addr
	movq	%r15, %rdi
LBB0_4:
	movq	%r13, 8(%rbx)
	movl	%r14d, (%rbx)
	movq	%rbx, %rsi
	movl	$32, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$4, %r8d
	callq	_efa_com_cmd_exec
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ibdev_err_ratelimited
	jmp	LBB0_7
LBB0_1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_ibdev_err_ratelimited
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Feature %d isn't supported\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EFA_ADMIN_SET_FEATURE,4,2      ## @EFA_ADMIN_SET_FEATURE
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK,4,2 ## @EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Failed to submit set_feature command %d error: %d\n"

	.no_dead_strip	_efa_com_set_feature_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efa_com_set_feature_ex
_efa_com_set_feature_ex:                ; @efa_com_set_feature_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x24, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x1, x3
	bl	_efa_com_check_supported_feature_id
	cbz	w0, LBB0_5
; %bb.1:
	add	x25, x20, #4
Lloh0:
	adrp	x8, _EFA_ADMIN_SET_FEATURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFA_ADMIN_SET_FEATURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #28]
	cbz	x23, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	add	x1, x22, #20
	add	x2, x22, #16
	mov	x0, x24
	bl	_efa_com_set_dma_addr
LBB0_3:
	str	x23, [x22, #8]
	str	w19, [x22]
	mov	x0, x25
	mov	x1, x22
	mov	w2, #32
	mov	x3, x21
	mov	w4, #4
	bl	_efa_com_cmd_exec
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x20]
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_ibdev_err_ratelimited
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_ibdev_err_ratelimited
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Feature %d isn't supported\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EFA_ADMIN_SET_FEATURE,4,2      ; @EFA_ADMIN_SET_FEATURE
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK,4,2 ; @EFA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Failed to submit set_feature command %d error: %d\n"

	.no_dead_strip	_efa_com_set_feature_ex
.subsections_via_symbols
