	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_mcdi_init                  ## -- Begin function efx_mcdi_init
	.p2align	4, 0x90
_efx_mcdi_init:                         ## @efx_mcdi_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	callq	_efx_mcdi
	movq	%rax, %rbx
	movq	%r14, 48(%rax)
	leaq	40(%rax), %rdi
	callq	_init_waitqueue_head
	leaq	36(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	movq	_MCDI_STATE_QUIESCENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_MCDI_MODE_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	20(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	12(%rbx), %rdi
	movq	_efx_mcdi_timeout_async@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%r14, %rdi
	callq	_efx_mcdi_poll_reboot
	movl	$1, 8(%rbx)
	movq	%r14, %rdi
	callq	_efx_mcdi_handle_assertion
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_efx_mcdi_drv_attach
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
LBB0_4:
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, (%r14)
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	cmpl	$0, -20(%rbp)
	je	LBB0_7
## %bb.6:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
LBB0_7:
	movq	(%r14), %rax
	movl	(%rax), %eax
	movq	_MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_PRIMARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	btl	%ecx, %eax
	jae	LBB0_9
## %bb.8:
	movq	%r14, 8(%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MCDI_STATE_QUIESCENT,4,2       ## @MCDI_STATE_QUIESCENT
	.comm	_MCDI_MODE_POLL,4,2             ## @MCDI_MODE_POLL
	.comm	_efx_mcdi_timeout_async,4,2     ## @efx_mcdi_timeout_async
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to register driver with MCPU\n"

L_.str.1:                               ## @.str.1
	.asciz	"Host already registered with MCPU\n"

	.comm	_MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_PRIMARY,4,2 ## @MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_PRIMARY
	.comm	_mcdi_logging_default,4,2       ## @mcdi_logging_default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_mcdi_init                  ; -- Begin function efx_mcdi_init
	.p2align	2
_efx_mcdi_init:                         ; @efx_mcdi_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_efx_mcdi
	mov	x20, x0
	str	x19, [x0, #48]
	add	x0, x0, #40
	bl	_init_waitqueue_head
	add	x0, x20, #36
	bl	_init_waitqueue_head
	add	x0, x20, #32
	bl	_spin_lock_init
Lloh6:
	adrp	x8, _MCDI_STATE_QUIESCENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCDI_STATE_QUIESCENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MCDI_MODE_POLL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MCDI_MODE_POLL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	add	x0, x20, #20
	bl	_spin_lock_init
	add	x0, x20, #16
	bl	_INIT_LIST_HEAD
	add	x0, x20, #12
Lloh12:
	adrp	x8, _efx_mcdi_timeout_async@GOTPAGE
Lloh13:
	ldr	x8, [x8, _efx_mcdi_timeout_async@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	mov	x0, x19
	bl	_efx_mcdi_poll_reboot
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_efx_mcdi_handle_assertion
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	_efx_mcdi_drv_attach
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh15:
	adrp	x8, _probe@GOTPAGE
Lloh16:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_4:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	b	LBB0_6
LBB0_5:
	neg	w20, w20
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _probe@GOTPAGE
Lloh21:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh23:
	adrp	x3, l_.str.1@PAGE
Lloh24:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_9:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_PRIMARY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_PRIMARY@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	mov	w20, #0
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_6
; %bb.10:
	str	x19, [x19, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MCDI_STATE_QUIESCENT,4,2       ; @MCDI_STATE_QUIESCENT
	.comm	_MCDI_MODE_POLL,4,2             ; @MCDI_MODE_POLL
	.comm	_efx_mcdi_timeout_async,4,2     ; @efx_mcdi_timeout_async
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to register driver with MCPU\n"

l_.str.1:                               ; @.str.1
	.asciz	"Host already registered with MCPU\n"

	.comm	_MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_PRIMARY,4,2 ; @MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_PRIMARY
	.comm	_mcdi_logging_default,4,2       ; @mcdi_logging_default
.subsections_via_symbols
