	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _efx_mcdi_rpc_async
__efx_mcdi_rpc_async:                   ## @_efx_mcdi_rpc_async
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_efx_mcdi
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_efx_mcdi_check_supported
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.2:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	movq	%r14, %rdi
	movq	%rax, %rbx
	movq	%rax, %rsi
	callq	_max
	movl	%eax, %edi
	movl	$4, %esi
	callq	_ALIGN
	leaq	56(%rax), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movl	24(%rbp), %eax
	movq	16(%rbp), %rcx
	movl	%r13d, (%r14)
	movq	%r12, 8(%r14)
	movq	%rbx, 16(%r14)
	movl	%eax, 24(%r14)
	movq	%r15, 48(%r14)
	movq	%rcx, 32(%r14)
	leaq	56(%r14), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	8(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	(%rbx), %rax
	movq	_MCDI_MODE_EVENTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	addq	$40, %r14
	leaq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	xorl	%r15d, %r15d
	cmpq	%r14, 16(%rbx)
	jne	LBB0_11
## %bb.8:
	movq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_efx_mcdi_acquire_async
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_efx_mcdi_send_request
	addq	$12, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_MCDI_RPC_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_mod_timer
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
LBB0_12:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MCDI_MODE_EVENTS,8,3           ## @MCDI_MODE_EVENTS
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MCDI_RPC_TIMEOUT,8,3           ## @MCDI_RPC_TIMEOUT
	.no_dead_strip	__efx_mcdi_rpc_async
.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_async
__efx_mcdi_rpc_async:                   ; @_efx_mcdi_rpc_async
	.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	x25, x7
	mov	x24, x6
	mov	x26, x5
	mov	x27, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_efx_mcdi
	mov	x21, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_efx_mcdi_check_supported
	mov	x28, x0
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_13
LBB0_4:
	mov	x0, x19
	mov	x1, x27
	bl	_max
	mov	w1, #4
	bl	_ALIGN
	add	x0, x0, #56
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x28, x0
	str	w22, [x0]
	stp	x19, x27, [x0, #8]
	str	w25, [x0, #24]
	str	x26, [x0, #48]
	add	x0, x0, #56
	str	x24, [x28, #32]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	add	x24, x21, #8
	mov	x0, x24
	bl	_spin_lock_bh
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _MCDI_MODE_EVENTS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MCDI_MODE_EVENTS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	add	x25, x28, #40
	add	x1, x21, #16
	mov	x0, x25
	bl	_list_add_tail
	ldr	x8, [x21, #16]
	cmp	x8, x25
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_efx_mcdi_acquire_async
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_efx_mcdi_send_request
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	add	x0, x21, #12
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _MCDI_RPC_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MCDI_RPC_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mod_timer
LBB0_9:
	mov	w28, #0
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_11:
	mov	x0, x28
	bl	_kfree
Lloh16:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_12:
	mov	x0, x24
	bl	_spin_unlock_bh
LBB0_13:
	mov	x0, x28
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MCDI_MODE_EVENTS,8,3           ; @MCDI_MODE_EVENTS
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MCDI_RPC_TIMEOUT,8,3           ; @MCDI_RPC_TIMEOUT
	.no_dead_strip	__efx_mcdi_rpc_async
.subsections_via_symbols
