	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_crdump_enable             ## -- Begin function mlx5_crdump_enable
	.p2align	4, 0x90
_mlx5_crdump_enable:                    ## @mlx5_crdump_enable
	.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, %rbx
	callq	_mlx5_core_is_pf
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	%rbx, %rdi
	callq	_mlx5_vsc_accessible
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	%rbx, %rdi
	callq	_mlx5_crdump_enabled
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	callq	_mlx5_vsc_gw_lock
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	_MLX5_VSC_SPACE_SCAN_CRSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mlx5_vsc_gw_set_space
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_mlx5_vsc_gw_unlock
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, -24(%rbp)
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_mlx5_vsc_gw_unlock
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	-24(%rbp), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_core_warn
	movq	%rbx, %rdi
	callq	_mlx5_vsc_gw_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_VSC_SPACE_SCAN_CRSPACE,4,2 ## @MLX5_VSC_SPACE_SCAN_CRSPACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Crspace size, zero\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_crdump_enable             ; -- Begin function mlx5_crdump_enable
	.p2align	2
_mlx5_crdump_enable:                    ; @mlx5_crdump_enable
	.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
	bl	_mlx5_core_is_pf
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_mlx5_vsc_accessible
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_mlx5_crdump_enabled
	cbz	x0, LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_mlx5_vsc_gw_lock
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh0:
	adrp	x8, _MLX5_VSC_SPACE_SCAN_CRSPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_VSC_SPACE_SCAN_CRSPACE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_mlx5_vsc_gw_set_space
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_mlx5_vsc_gw_unlock
	b	LBB0_3
LBB0_8:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_mlx5_vsc_gw_unlock
	cbnz	w0, LBB0_5
; %bb.10:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_5
LBB0_11:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_warn
	mov	x0, x19
	bl	_mlx5_vsc_gw_unlock
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_VSC_SPACE_SCAN_CRSPACE,4,2 ; @MLX5_VSC_SPACE_SCAN_CRSPACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Crspace size, zero\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
