	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _efx_mcdi_rpc
__efx_mcdi_rpc:                         ## @_efx_mcdi_rpc
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	cmpq	%r8, %r15
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_4:
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_efx_mcdi_rpc_start
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_5
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	24(%rbp), %eax
	movq	16(%rbp), %r9
	subq	$8, %rsp
	leaq	-48(%rbp), %r10
	movq	%r13, %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r8
	pushq	32(%rbp)
	pushq	%r10
	pushq	%rax
	callq	__efx_mcdi_rpc_finish
	addq	$32, %rsp
	cmpq	$0, -48(%rbp)
	je	LBB0_6
## %bb.7:
	movq	%r13, %rdi
	callq	_efx_mcdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	-48(%rbp), %r8
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	callq	_netif_dbg
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	24(%rbp), %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_efx_mcdi_proxy_wait
	movl	%eax, %r14d
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.9:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	addl	%r14d, %eax
	sete	%cl
	movq	_err@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %r9
	movq	%r13, %rdi
	pushq	%r14
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_netif_cond_dbg
	addq	$16, %rsp
	movq	_EINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_11
## %bb.10:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_12
LBB0_11:
	movq	_RESET_TYPE_MC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_efx_schedule_reset
LBB0_12:
	movq	%rbx, %rdi
	callq	_efx_mcdi_release
	jmp	LBB0_13
LBB0_6:
	movl	%eax, %r14d
	jmp	LBB0_13
LBB0_8:
	movq	-48(%rbp), %r8
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	callq	_netif_dbg
	movq	_MCDI_STATE_RUNNING_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_efx_mcdi_send_request
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
	movq	16(%rbp), %r9
	pushq	32(%rbp)
	pushq	$0
	movl	24(%rbp), %eax
	pushq	%rax
	callq	__efx_mcdi_rpc_finish
	addq	$32, %rsp
	movl	%eax, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCDI waiting for proxy auth %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"MCDI proxy retry %d\n"

	.comm	_MCDI_STATE_RUNNING_SYNC,4,2    ## @MCDI_STATE_RUNNING_SYNC
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_err,4,2                        ## @err
L_.str.2:                               ## @.str.2
	.asciz	"MC command 0x%x failed after proxy auth rc=%d\n"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_RESET_TYPE_MC_FAILURE,4,2      ## @RESET_TYPE_MC_FAILURE
	.no_dead_strip	__efx_mcdi_rpc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _efx_mcdi_rpc
__efx_mcdi_rpc:                         ; @_efx_mcdi_rpc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	cbz	x2, LBB0_4
; %bb.1:
	cbz	x25, LBB0_4
; %bb.2:
	cmp	x26, x24
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_WARN_ON
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x26
	mov	x3, x25
	bl	_efx_mcdi_rpc_start
	mov	x28, x0
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	ldr	x27, [x29, #16]
	str	x27, [sp]
	add	x7, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x21
	bl	__efx_mcdi_rpc_finish
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_efx_mcdi
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _hw@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	x4, [sp, #24]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	ldr	x1, [sp, #24]
	mov	x0, x19
	mov	x2, x21
	bl	_efx_mcdi_proxy_wait
Lloh8:
	adrp	x8, _hw@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19]
	cbz	w0, LBB0_13
; %bb.8:
	mov	x28, x0
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w3, eq
Lloh14:
	adrp	x8, _err@GOTPAGE
Lloh15:
	ldr	x8, [x8, _err@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
Lloh17:
	adrp	x5, l_.str.2@PAGE
Lloh18:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x6, x20
	mov	x7, x28
	bl	_netif_cond_dbg
Lloh19:
	adrp	x8, _EINTR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmn	w28, w8
	b.eq	LBB0_10
; %bb.9:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmn	w28, w8
	b.ne	LBB0_11
LBB0_10:
Lloh25:
	adrp	x8, _RESET_TYPE_MC_FAILURE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RESET_TYPE_MC_FAILURE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_efx_schedule_reset
LBB0_11:
	mov	x0, x21
	bl	_efx_mcdi_release
	b	LBB0_5
LBB0_12:
	mov	x28, x0
	b	LBB0_5
LBB0_13:
	ldr	x4, [sp, #24]
Lloh28:
	adrp	x3, l_.str.1@PAGE
Lloh29:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
Lloh30:
	adrp	x8, _MCDI_STATE_RUNNING_SYNC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MCDI_STATE_RUNNING_SYNC@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x26
	mov	x3, x25
	bl	_efx_mcdi_send_request
	str	x27, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x21
	mov	x7, #0
	bl	__efx_mcdi_rpc_finish
	mov	x28, x0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCDI waiting for proxy auth %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"MCDI proxy retry %d\n"

	.comm	_MCDI_STATE_RUNNING_SYNC,4,2    ; @MCDI_STATE_RUNNING_SYNC
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_err,4,2                        ; @err
l_.str.2:                               ; @.str.2
	.asciz	"MC command 0x%x failed after proxy auth rc=%d\n"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_RESET_TYPE_MC_FAILURE,4,2      ; @RESET_TYPE_MC_FAILURE
	.no_dead_strip	__efx_mcdi_rpc
.subsections_via_symbols
