	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_reset
_efx_ef10_reset:                        ## @efx_ef10_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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_efx_mcdi_reset
	movl	%eax, %ebx
	movq	_RESET_TYPE_WORLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %eax
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	subl	(%rcx), %esi
	xorl	%ebx, %esi
	orl	%eax, %esi
	cmovel	%edx, %ebx
	movq	_RESET_TYPE_ALL@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_RESET_TYPE_MCDI_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
LBB0_2:
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_efx_ef10_reset_mc_allocations
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_TYPE_WORLD,4,2           ## @RESET_TYPE_WORLD
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_RESET_TYPE_ALL,4,2             ## @RESET_TYPE_ALL
	.comm	_RESET_TYPE_MCDI_TIMEOUT,4,2    ## @RESET_TYPE_MCDI_TIMEOUT
	.no_dead_strip	_efx_ef10_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_reset
_efx_ef10_reset:                        ; @efx_ef10_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_efx_mcdi_reset
Lloh0:
	adrp	x8, _RESET_TYPE_WORLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESET_TYPE_WORLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EPERM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmn	w0, w9
	ccmp	w8, w20, #0, eq
	csel	w21, wzr, w0, eq
Lloh6:
	adrp	x8, _RESET_TYPE_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RESET_TYPE_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	cbnz	w21, LBB0_4
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _RESET_TYPE_MCDI_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RESET_TYPE_MCDI_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w20
	ccmp	w21, #0, #0, eq
	b.ne	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_efx_ef10_reset_mc_allocations
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_TYPE_WORLD,4,2           ; @RESET_TYPE_WORLD
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_RESET_TYPE_ALL,4,2             ; @RESET_TYPE_ALL
	.comm	_RESET_TYPE_MCDI_TIMEOUT,4,2    ; @RESET_TYPE_MCDI_TIMEOUT
	.no_dead_strip	_efx_ef10_reset
.subsections_via_symbols
