	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_reset_down                 ## -- Begin function efx_reset_down
	.p2align	4, 0x90
_efx_reset_down:                        ## @efx_reset_down
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_EFX_ASSERT_RESET_SERIALISED
	movq	_RESET_TYPE_MCDI_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
LBB0_2:
	movq	%rbx, %rdi
	callq	_efx_stop_all
	movq	%rbx, %rdi
	callq	_efx_disable_interrupts
	leaq	32(%rbx), %rdi
	callq	_mutex_lock
	leaq	28(%rbx), %rdi
	callq	_down_write
	leaq	24(%rbx), %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.3:
	movq	_RESET_TYPE_INVISIBLE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_RESET_TYPE_DATAPATH@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_6:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_TYPE_MCDI_TIMEOUT,4,2    ## @RESET_TYPE_MCDI_TIMEOUT
	.comm	_RESET_TYPE_INVISIBLE,4,2       ## @RESET_TYPE_INVISIBLE
	.comm	_RESET_TYPE_DATAPATH,4,2        ## @RESET_TYPE_DATAPATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_reset_down                 ; -- Begin function efx_reset_down
	.p2align	2
_efx_reset_down:                        ; @efx_reset_down
	.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	x20, x1
	mov	x19, x0
	bl	_EFX_ASSERT_RESET_SERIALISED
Lloh0:
	adrp	x8, _RESET_TYPE_MCDI_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESET_TYPE_MCDI_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
LBB0_2:
	mov	x0, x19
	bl	_efx_stop_all
	mov	x0, x19
	bl	_efx_disable_interrupts
	add	x0, x19, #32
	bl	_mutex_lock
	add	x0, x19, #28
	bl	_down_write
	add	x0, x19, #24
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _RESET_TYPE_INVISIBLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESET_TYPE_INVISIBLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RESET_TYPE_DATAPATH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RESET_TYPE_DATAPATH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_5:
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_TYPE_MCDI_TIMEOUT,4,2    ; @RESET_TYPE_MCDI_TIMEOUT
	.comm	_RESET_TYPE_INVISIBLE,4,2       ; @RESET_TYPE_INVISIBLE
	.comm	_RESET_TYPE_DATAPATH,4,2        ; @RESET_TYPE_DATAPATH
.subsections_via_symbols
