	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_try_fast_unload
_mlx5_try_fast_unload:                  ## @mlx5_try_fast_unload
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_MLX5_CAP_GEN
	movl	%eax, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_MLX5_CAP_GEN
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_dbg
	orl	%r15d, %ebx
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movq	_MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_dbg
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_4:
	movq	%r12, %rdi
	callq	_mlx5_drain_health_wq
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mlx5_stop_health_poll
	movq	%r12, %rdi
	callq	_mlx5_cmd_fast_teardown_hca
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_mlx5_cmd_force_teardown_hca
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_dbg
	movq	%r12, %rdi
	callq	_mlx5_start_health_poll
	movl	%r15d, %r14d
	jmp	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mlx5_enter_error_state
	movq	%r12, %rdi
	callq	_mlx5_core_eq_free_irqs
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"force teardown firmware support=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"fast teardown firmware support=%d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MLX5_DEVICE_STATE_INTERNAL_ERROR,8,3 ## @MLX5_DEVICE_STATE_INTERNAL_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Device in internal error state, giving up\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.3:                               ## @.str.3
	.asciz	"Firmware couldn't do fast unload error: %d\n"

	.no_dead_strip	_mlx5_try_fast_unload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_try_fast_unload
_mlx5_try_fast_unload:                  ; @mlx5_try_fast_unload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	mov	w1, #0
	bl	_MLX5_CAP_GEN
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_MLX5_CAP_GEN
	mov	x21, x0
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_dbg
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_dbg
	orr	w8, w21, w20
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_dbg
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_mlx5_drain_health_wq
	mov	x0, x19
	mov	w1, #0
	bl	_mlx5_stop_health_poll
	mov	x0, x19
	bl	_mlx5_cmd_fast_teardown_hca
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_mlx5_cmd_force_teardown_hca
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_dbg
	mov	x0, x19
	bl	_mlx5_start_health_poll
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	bl	_mlx5_enter_error_state
	mov	x0, x19
	bl	_mlx5_core_eq_free_irqs
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"force teardown firmware support=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"fast teardown firmware support=%d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MLX5_DEVICE_STATE_INTERNAL_ERROR,8,3 ; @MLX5_DEVICE_STATE_INTERNAL_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Device in internal error state, giving up\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.3:                               ; @.str.3
	.asciz	"Firmware couldn't do fast unload error: %d\n"

	.no_dead_strip	_mlx5_try_fast_unload
.subsections_via_symbols
