	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_query_device_ex           ## -- Begin function mlx5_query_device_ex
	.p2align	4, 0x90
_mlx5_query_device_ex:                  ## @mlx5_query_device_ex
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_to_mctx
	movq	_MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	andl	(%rax), %r14d
	leaq	-136(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-100(%rbp), %r9
	leaq	-64(%rbp), %r10
	testl	%r14d, %r14d
	movl	$4, %eax
	movl	$40, %ecx
	cmovnel	%ecx, %eax
	subq	$8, %rsp
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	pushq	%rax
	pushq	$4
	pushq	%r10
	pushq	$40
	pushq	$4
	callq	_ibv_cmd_query_device_ex
	addq	$48, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movups	-80(%rbp), %xmm0
	movups	%xmm0, 4(%r15)
	cmpq	$0, -88(%rbp)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_3
## %bb.2:
	movq	_MLX5_VENDOR_CAP_FLAGS_MPW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rcx)
LBB0_3:
	movl	-96(%rbp), %eax
	movl	%eax, 4(%rcx)
	movl	-44(%rbp), %r8d
	movzwl	%r8w, %r9d
	shrl	$16, %r8d
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
LBB0_4:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE,4,2 ## @MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE
	.comm	_MLX5_VENDOR_CAP_FLAGS_MPW,4,2  ## @MLX5_VENDOR_CAP_FLAGS_MPW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d.%d.%04d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_query_device_ex           ; -- Begin function mlx5_query_device_ex
	.p2align	2
_mlx5_query_device_ex:                  ; @mlx5_query_device_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	bl	_to_mctx
	mov	x20, x0
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	add	x26, sp, #32
	mov	w27, #40
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x28, sp, #72
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x5, x26, #36
	add	x8, x28, #32
	tst	w25, w24
	mov	w9, #4
	csel	w10, w9, w27, eq
	stp	w9, w10, [sp, #8]
	add	x4, sp, #28
	str	x8, [sp]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	mov	w6, #4
	mov	w7, #40
	bl	_ibv_cmd_query_device_ex
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldur	q0, [sp, #88]
	stur	q0, [x19, #4]
	ldr	x8, [sp, #80]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MLX5_VENDOR_CAP_FLAGS_MPW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_VENDOR_CAP_FLAGS_MPW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
LBB0_3:
	ldr	w8, [sp, #72]
	str	w8, [x20, #4]
	ldr	w8, [sp, #28]
	lsr	w4, w8, #16
	and	w5, w8, #0xffff
	ldr	w0, [x19]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE,4,2 ; @MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE
	.comm	_MLX5_VENDOR_CAP_FLAGS_MPW,4,2  ; @MLX5_VENDOR_CAP_FLAGS_MPW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d.%d.%04d"

.subsections_via_symbols
