	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_enable_cqe_eqe_stride
_mlx4_enable_cqe_eqe_stride:            ## @mlx4_enable_cqe_eqe_stride
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	_MLX4_DEV_CAP_FLAG2_EQE_STRIDE@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_14
## %bb.1:
	movq	_MLX4_DEV_CAP_FLAG2_CQE_STRIDE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%eax, %ecx
	je	LBB0_14
## %bb.2:
	movq	%rdi, %rbx
	movl	4(%rdi), %edx
	movq	_MLX4_DEV_CAP_FLAG_64B_EQE@GOTPCREL(%rip), %r12
	testl	%edx, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_MLX4_DEV_CAP_FLAG_64B_CQE@GOTPCREL(%rip), %r13
	testl	%edx, (%r13)
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_cache_line_size
	cmpl	$128, %eax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_cache_line_size
	cmpl	$256, %eax                      ## imm = 0x100
	jne	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_dbg
	movl	(%r13), %eax
	orl	(%r12), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_mlx4_is_master
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	_MLX4_FUNC_CAP_EQE_CQE_STRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	jmp	LBB0_14
LBB0_4:
	notl	%ecx
	andl	%ecx, %eax
LBB0_13:
	movl	%eax, (%rbx)
	movl	(%r14), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	callq	_cache_line_size
	cmpl	$32, %eax
	je	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	callq	_cache_line_size
	cmpl	$64, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_dbg
LBB0_12:
	movl	(%r15), %eax
	notl	%eax
	andl	(%rbx), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_EQE_STRIDE,4,2 ## @MLX4_DEV_CAP_FLAG2_EQE_STRIDE
	.comm	_MLX4_DEV_CAP_FLAG2_CQE_STRIDE,4,2 ## @MLX4_DEV_CAP_FLAG2_CQE_STRIDE
	.comm	_MLX4_DEV_CAP_FLAG_64B_EQE,4,2  ## @MLX4_DEV_CAP_FLAG_64B_EQE
	.comm	_MLX4_DEV_CAP_FLAG_64B_CQE,4,2  ## @MLX4_DEV_CAP_FLAG_64B_CQE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling CQE stride cacheLine supported\n"

	.comm	_MLX4_FUNC_CAP_EQE_CQE_STRIDE,4,2 ## @MLX4_FUNC_CAP_EQE_CQE_STRIDE
L_.str.1:                               ## @.str.1
	.asciz	"Disabling CQE stride, cacheLine size unsupported\n"

	.no_dead_strip	_mlx4_enable_cqe_eqe_stride
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_enable_cqe_eqe_stride
_mlx4_enable_cqe_eqe_stride:            ; @mlx4_enable_cqe_eqe_stride
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _MLX4_DEV_CAP_FLAG2_EQE_STRIDE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MLX4_DEV_CAP_FLAG2_EQE_STRIDE@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
Lloh2:
	adrp	x21, _MLX4_DEV_CAP_FLAG2_CQE_STRIDE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MLX4_DEV_CAP_FLAG2_CQE_STRIDE@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.2:
	mov	x19, x0
	ldr	w10, [x0, #4]
Lloh4:
	adrp	x22, _MLX4_DEV_CAP_FLAG_64B_EQE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MLX4_DEV_CAP_FLAG_64B_EQE@GOTPAGEOFF]
	ldr	w11, [x22]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.3:
Lloh6:
	adrp	x23, _MLX4_DEV_CAP_FLAG_64B_CQE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MLX4_DEV_CAP_FLAG_64B_CQE@GOTPAGEOFF]
	ldr	w11, [x23]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.4:
	bl	_cache_line_size
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.5:
	bl	_cache_line_size
	cmp	w0, #256
	b.ne	LBB0_11
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_dbg
	ldr	w8, [x23]
	ldr	w9, [x19, #4]
	ldr	w10, [x22]
	orr	w8, w8, w10
	bic	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_mlx4_is_master
	cbz	x0, LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _MLX4_FUNC_CAP_EQE_CQE_STRIDE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX4_FUNC_CAP_EQE_CQE_STRIDE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_10
LBB0_8:
	bic	w8, w8, w9
LBB0_9:
	str	w8, [x19]
	ldr	w9, [x20]
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	_cache_line_size
	cmp	w0, #32
	b.eq	LBB0_14
; %bb.12:
	bl	_cache_line_size
	cmp	w0, #64
	b.eq	LBB0_14
; %bb.13:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx4_dbg
LBB0_14:
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_EQE_STRIDE,4,2 ; @MLX4_DEV_CAP_FLAG2_EQE_STRIDE
	.comm	_MLX4_DEV_CAP_FLAG2_CQE_STRIDE,4,2 ; @MLX4_DEV_CAP_FLAG2_CQE_STRIDE
	.comm	_MLX4_DEV_CAP_FLAG_64B_EQE,4,2  ; @MLX4_DEV_CAP_FLAG_64B_EQE
	.comm	_MLX4_DEV_CAP_FLAG_64B_CQE,4,2  ; @MLX4_DEV_CAP_FLAG_64B_CQE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling CQE stride cacheLine supported\n"

	.comm	_MLX4_FUNC_CAP_EQE_CQE_STRIDE,4,2 ; @MLX4_FUNC_CAP_EQE_CQE_STRIDE
l_.str.1:                               ; @.str.1
	.asciz	"Disabling CQE stride, cacheLine size unsupported\n"

	.no_dead_strip	_mlx4_enable_cqe_eqe_stride
.subsections_via_symbols
