	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __efa_com_submit_admin_cmd
___efa_com_submit_admin_cmd:            ## @__efa_com_submit_admin_cmd
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	8(%rdi), %r12
	leaq	-1(%rbx), %r13
	callq	_efa_com_alloc_ctx_id
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	andq	%r13, %rax
	negq	%rbx
	andq	8(%r14), %rbx
	orq	%rax, %rbx
	movq	_EFA_ADMIN_AQ_COMMON_DESC_COMMAND_ID_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	%rbx, (%r15)
	movq	_EFA_ADMIN_AQ_COMMON_DESC_PHASE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%r14), %eax
	orl	%eax, 8(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_efa_com_get_comp_ctx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r13
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	andq	%rbx, %r12
	movq	_EFA_CMD_SUBMITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r13)
	movl	12(%r15), %eax
	movl	%eax, 12(%r13)
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_reinit_completion
	shlq	$2, %r12
	addq	24(%r14), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
	incq	8(%r14)
	leaq	32(%r14), %rdi
	callq	_atomic64_inc
	movq	8(%r14), %rdi
	testq	%rbx, %rdi
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpl	$0, 16(%r14)
	sete	%al
	movl	%eax, 16(%r14)
LBB0_3:
	movl	20(%r14), %esi
	callq	_writel
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_efa_com_dealloc_ctx_id
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_COMMAND_ID_MASK,8,3 ## @EFA_ADMIN_AQ_COMMON_DESC_COMMAND_ID_MASK
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_PHASE_MASK,4,2 ## @EFA_ADMIN_AQ_COMMON_DESC_PHASE_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFA_CMD_SUBMITTED,4,2          ## @EFA_CMD_SUBMITTED
	.no_dead_strip	___efa_com_submit_admin_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __efa_com_submit_admin_cmd
___efa_com_submit_admin_cmd:            ; @__efa_com_submit_admin_cmd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x22, x27, [x0]
	sub	x26, x22, #1
	bl	_efa_com_alloc_ctx_id
	mov	x25, x0
	and	x8, x0, x26
	ldr	x9, [x19, #8]
	neg	x10, x22
	and	x9, x9, x10
Lloh0:
	adrp	x10, _EFA_ADMIN_AQ_COMMON_DESC_COMMAND_ID_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EFA_ADMIN_AQ_COMMON_DESC_COMMAND_ID_MASK@GOTPAGEOFF]
	orr	x8, x9, x8
Lloh2:
	ldr	x9, [x10]
	and	x1, x8, x9
	str	x1, [x21]
Lloh3:
	adrp	x8, _EFA_ADMIN_AQ_COMMON_DESC_PHASE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFA_ADMIN_AQ_COMMON_DESC_PHASE_MASK@GOTPAGEOFF]
	ldr	w9, [x19, #16]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w9
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	mov	x0, x19
	mov	w2, #1
	bl	_efa_com_get_comp_ctx
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	and	x25, x27, x26
Lloh6:
	adrp	x8, _EFA_CMD_SUBMITTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFA_CMD_SUBMITTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	str	x24, [x0]
	str	x23, [x0, #16]
	ldr	w8, [x21, #12]
	str	w8, [x0, #12]
	add	x0, x0, #8
	bl	_reinit_completion
	ldr	x8, [x19, #24]
	add	x0, x8, x25, lsl #2
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	add	x0, x19, #32
	bl	_atomic64_inc
	ldr	x0, [x19, #8]
	tst	x0, x26
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #16]
LBB0_3:
	ldr	w1, [x19, #20]
	bl	_writel
	mov	x0, x22
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	mov	x1, x25
	bl	_efa_com_dealloc_ctx_id
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_COMMAND_ID_MASK,8,3 ; @EFA_ADMIN_AQ_COMMON_DESC_COMMAND_ID_MASK
	.comm	_EFA_ADMIN_AQ_COMMON_DESC_PHASE_MASK,4,2 ; @EFA_ADMIN_AQ_COMMON_DESC_PHASE_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFA_CMD_SUBMITTED,4,2          ; @EFA_CMD_SUBMITTED
	.no_dead_strip	___efa_com_submit_admin_cmd
.subsections_via_symbols
