	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_query_func
_mlx4_query_func:                       ## @mlx4_query_func
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MLX4_DEV_CAP_FLAG2_SYS_EQS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_mlx4_QUERY_FUNC
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_err
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_4:
	movl	-32(%rbp), %eax
	movl	%eax, 8(%r14)
	movl	-36(%rbp), %eax
	movl	%eax, 4(%r14)
	movl	-40(%rbp), %eax
	movl	%eax, (%r14)
	movq	_MLX4_QUERY_FUNC_NUM_SYS_EQS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_SYS_EQS,4,2 ## @MLX4_DEV_CAP_FLAG2_SYS_EQS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QUERY_DEV_CAP command failed, aborting.\n"

	.comm	_MLX4_QUERY_FUNC_NUM_SYS_EQS,4,2 ## @MLX4_QUERY_FUNC_NUM_SYS_EQS
	.no_dead_strip	_mlx4_query_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_query_func
_mlx4_query_func:                       ; @mlx4_query_func
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_SYS_EQS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_SYS_EQS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x1, sp
	mov	w2, #0
	bl	_mlx4_QUERY_FUNC
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx4_err
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #8]
	str	w8, [x19, #8]
	ldr	d0, [sp]
	str	d0, [x19]
Lloh5:
	adrp	x8, _MLX4_QUERY_FUNC_NUM_SYS_EQS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX4_QUERY_FUNC_NUM_SYS_EQS@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_SYS_EQS,4,2 ; @MLX4_DEV_CAP_FLAG2_SYS_EQS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QUERY_DEV_CAP command failed, aborting.\n"

	.comm	_MLX4_QUERY_FUNC_NUM_SYS_EQS,4,2 ; @MLX4_QUERY_FUNC_NUM_SYS_EQS
	.no_dead_strip	_mlx4_query_func
.subsections_via_symbols
