	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dv_query_device            ## -- Begin function mlx5dv_query_device
	.p2align	4, 0x90
_mlx5dv_query_device:                   ## @mlx5dv_query_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_mctx
	movq	$0, 16(%rbx)
	movl	$0, 8(%rbx)
	movq	(%rax), %rdx
	movq	_MLX5_CQE_VERSION_V1@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	movq	_MLX5DV_CONTEXT_FLAGS_CQE_V1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
LBB0_2:
	movq	_MLX5_VENDOR_CAP_FLAGS_MPW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 8(%rax)
	je	LBB0_4
## %bb.3:
	movq	_MLX5DV_CONTEXT_FLAGS_MPW@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 8(%rbx)
LBB0_4:
	movq	_MLX5DV_CONTEXT_MASK_CQE_COMPRESION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.6:
	movl	12(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_7
LBB0_5:
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_CQE_VERSION_V1,8,3        ## @MLX5_CQE_VERSION_V1
	.comm	_MLX5DV_CONTEXT_FLAGS_CQE_V1,4,2 ## @MLX5DV_CONTEXT_FLAGS_CQE_V1
	.comm	_MLX5_VENDOR_CAP_FLAGS_MPW,4,2  ## @MLX5_VENDOR_CAP_FLAGS_MPW
	.comm	_MLX5DV_CONTEXT_FLAGS_MPW,4,2   ## @MLX5DV_CONTEXT_FLAGS_MPW
	.comm	_MLX5DV_CONTEXT_MASK_CQE_COMPRESION,4,2 ## @MLX5DV_CONTEXT_MASK_CQE_COMPRESION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dv_query_device            ; -- Begin function mlx5dv_query_device
	.p2align	2
_mlx5dv_query_device:                   ; @mlx5dv_query_device
	.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	x19, x1
	bl	_to_mctx
	mov	w8, #0
	str	xzr, [x19, #16]
	str	wzr, [x19, #8]
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _MLX5_CQE_VERSION_V1@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MLX5_CQE_VERSION_V1@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MLX5DV_CONTEXT_FLAGS_CQE_V1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5DV_CONTEXT_FLAGS_CQE_V1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_2:
	ldr	w9, [x0, #8]
Lloh6:
	adrp	x10, _MLX5_VENDOR_CAP_FLAGS_MPW@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX5_VENDOR_CAP_FLAGS_MPW@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x9, _MLX5DV_CONTEXT_FLAGS_MPW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX5DV_CONTEXT_FLAGS_MPW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #8]
LBB0_4:
	ldr	w9, [x19]
Lloh12:
	adrp	x8, _MLX5DV_CONTEXT_MASK_CQE_COMPRESION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX5DV_CONTEXT_MASK_CQE_COMPRESION@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [x0, #12]
	str	w9, [x19, #4]
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_CQE_VERSION_V1,8,3        ; @MLX5_CQE_VERSION_V1
	.comm	_MLX5DV_CONTEXT_FLAGS_CQE_V1,4,2 ; @MLX5DV_CONTEXT_FLAGS_CQE_V1
	.comm	_MLX5_VENDOR_CAP_FLAGS_MPW,4,2  ; @MLX5_VENDOR_CAP_FLAGS_MPW
	.comm	_MLX5DV_CONTEXT_FLAGS_MPW,4,2   ; @MLX5DV_CONTEXT_FLAGS_MPW
	.comm	_MLX5DV_CONTEXT_MASK_CQE_COMPRESION,4,2 ; @MLX5DV_CONTEXT_MASK_CQE_COMPRESION
.subsections_via_symbols
