	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_mcdi_reset                 ## -- Begin function efx_mcdi_reset
	.p2align	4, 0x90
_efx_mcdi_reset:                        ## @efx_mcdi_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_RESET_TYPE_MCDI_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_5
## %bb.1:
	movl	8(%r14), %edi
	callq	_pci_reset_function
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_efx_mcdi
	movq	_MCDI_MODE_POLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_4
LBB0_5:
	movl	%esi, %r15d
	movq	%r14, %rdi
	callq	_efx_mcdi_handle_assertion
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	movq	_RESET_TYPE_DATAPATH@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%r15d, (%rax)
	jne	LBB0_7
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_RESET_TYPE_WORLD@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efx_mcdi_reset_mc              ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efx_mcdi_reset_func            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_TYPE_MCDI_TIMEOUT,4,2    ## @RESET_TYPE_MCDI_TIMEOUT
	.comm	_MCDI_MODE_POLL,4,2             ## @MCDI_MODE_POLL
	.comm	_RESET_TYPE_DATAPATH,4,2        ## @RESET_TYPE_DATAPATH
	.comm	_RESET_TYPE_WORLD,4,2           ## @RESET_TYPE_WORLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_mcdi_reset                 ; -- Begin function efx_mcdi_reset
	.p2align	2
_efx_mcdi_reset:                        ; @efx_mcdi_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _RESET_TYPE_MCDI_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESET_TYPE_MCDI_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_pci_reset_function
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_efx_mcdi
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _MCDI_MODE_POLL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCDI_MODE_POLL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x8]
	b	LBB0_7
LBB0_4:
	mov	x20, x1
	mov	x0, x19
	bl	_efx_mcdi_handle_assertion
	cbnz	w0, LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _RESET_TYPE_DATAPATH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RESET_TYPE_DATAPATH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh9:
	adrp	x8, _RESET_TYPE_WORLD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RESET_TYPE_WORLD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x0, x19
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_efx_mcdi_reset_mc
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_efx_mcdi_reset_func
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_TYPE_MCDI_TIMEOUT,4,2    ; @RESET_TYPE_MCDI_TIMEOUT
	.comm	_MCDI_MODE_POLL,4,2             ; @MCDI_MODE_POLL
	.comm	_RESET_TYPE_DATAPATH,4,2        ; @RESET_TYPE_DATAPATH
	.comm	_RESET_TYPE_WORLD,4,2           ; @RESET_TYPE_WORLD
.subsections_via_symbols
