	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_ev_cpl
_efx_mcdi_ev_cpl:                       ## @efx_mcdi_ev_cpl
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_efx_mcdi
	movq	%rax, %rbx
	leaq	12(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	(%rbx), %r9d
	movl	%r9d, %eax
	xorl	%r12d, %eax
	movq	_SEQ_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	decq	%rax
	movq	%rax, 24(%rbx)
	jmp	LBB0_6
LBB0_3:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	(%r15), %rax
	cmpl	$2, (%rax)
	jl	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_efx_mcdi_read_response_header
	jmp	LBB0_8
LBB0_5:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %r8d
	callq	_netif_err
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_7:
	callq	_efx_mcdi_errno
	movl	%eax, 16(%rbx)
	movl	$4, 4(%rbx)
	movl	%r13d, 8(%rbx)
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_efx_mcdi_complete_async
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efx_mcdi_complete_sync         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEQ_MASK,4,2                   ## @SEQ_MASK
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MC response mismatch tx seq 0x%x rx seq 0x%x\n"

	.no_dead_strip	_efx_mcdi_ev_cpl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_mcdi_ev_cpl
_efx_mcdi_ev_cpl:                       ; @efx_mcdi_ev_cpl
	.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
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	bl	_efx_mcdi
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock
	ldr	w5, [x20]
	eor	w8, w5, w23
Lloh0:
	adrp	x9, _SEQ_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEQ_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_5
; %bb.2:
	sub	x8, x8, #1
	str	x8, [x20, #24]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_efx_mcdi_read_response_header
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _hw@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x4, x23
	bl	_netif_err
LBB0_6:
	mov	x0, x19
	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
	b	_spin_unlock
LBB0_7:
	mov	x0, x24
	bl	_efx_mcdi_errno
	str	w0, [x20, #16]
	mov	w8, #4
	stp	w8, w22, [x20, #4]
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	mov	w1, #0
	bl	_efx_mcdi_complete_async
	cbz	w0, LBB0_10
; %bb.9:
	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_10:
	mov	x0, x20
	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
	b	_efx_mcdi_complete_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SEQ_MASK,4,2                   ; @SEQ_MASK
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MC response mismatch tx seq 0x%x rx seq 0x%x\n"

	.no_dead_strip	_efx_mcdi_ev_cpl
.subsections_via_symbols
