	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_FUNC                ## -- Begin function mlx4_QUERY_FUNC
	.p2align	4, 0x90
_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	%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	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	8(%rbx), %r13
	movl	(%rbx), %edx
	movq	_MLX4_CMD_QUERY_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_MLX4_GET
	movl	$0, (%r15)
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_MLX4_GET
	movl	$0, 4(%r15)
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_MLX4_GET
	movl	$0, 8(%r15)
	movq	%r13, %rsi
	movl	$3, %edx
	callq	_MLX4_GET
	movl	$0, 12(%r15)
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_MLX4_GET
	movl	$0, 16(%r15)
	movq	%r13, %rsi
	movl	$6, %edx
	callq	_MLX4_GET
	movl	$0, 20(%r15)
	movq	%r13, %rsi
	movl	$11, %edx
	callq	_MLX4_GET
	movl	$0, 24(%r15)
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	movl	8(%r15), %r8d
	movl	12(%r15), %r9d
	movl	20(%r15), %r10d
	movl	16(%r15), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	_mlx4_dbg
	addq	$32, %rsp
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlx4_free_cmd_mailbox
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_CMD_QUERY_FUNC,4,2        ## @MLX4_CMD_QUERY_FUNC
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bus: %d, Device: %d, Function: %d, Physical function: %d, Max EQs: %d, Reserved EQs: %d, Reserved UARs: %d\n"

	.comm	_QUERY_FUNC_BUS_OFFSET,4,2      ## @QUERY_FUNC_BUS_OFFSET
	.comm	_QUERY_FUNC_DEVICE_OFFSET,4,2   ## @QUERY_FUNC_DEVICE_OFFSET
	.comm	_QUERY_FUNC_FUNCTION_OFFSET,4,2 ## @QUERY_FUNC_FUNCTION_OFFSET
	.comm	_QUERY_FUNC_MAX_EQ_OFFSET,4,2   ## @QUERY_FUNC_MAX_EQ_OFFSET
	.comm	_QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET,4,2 ## @QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET
	.comm	_QUERY_FUNC_RSVD_EQS_OFFSET,4,2 ## @QUERY_FUNC_RSVD_EQS_OFFSET
	.comm	_QUERY_FUNC_RSVD_UARS_OFFSET,4,2 ## @QUERY_FUNC_RSVD_UARS_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_FUNC                ; -- Begin function mlx4_QUERY_FUNC
	.p2align	2
_mlx4_QUERY_FUNC:                       ; @mlx4_QUERY_FUNC
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mlx4_alloc_cmd_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_2:
	ldr	x23, [x20, #8]
	ldr	w2, [x20]
Lloh0:
	adrp	x8, _MLX4_CMD_QUERY_FUNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_CMD_QUERY_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
Lloh6:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x22
	mov	w4, #0
	bl	_mlx4_cmd_box
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x1, x23
	mov	w2, #0
	bl	_MLX4_GET
	str	wzr, [x21]
	mov	x1, x23
	mov	w2, #1
	bl	_MLX4_GET
	str	wzr, [x21, #4]
	mov	x1, x23
	mov	w2, #1
	bl	_MLX4_GET
	str	wzr, [x21, #8]
	mov	x1, x23
	mov	w2, #3
	bl	_MLX4_GET
	str	wzr, [x21, #12]
	mov	x1, x23
	mov	w2, #4
	bl	_MLX4_GET
	str	wzr, [x21, #16]
	mov	x1, x23
	mov	w2, #6
	bl	_MLX4_GET
	str	wzr, [x21, #20]
	mov	x1, x23
	mov	w2, #11
	bl	_MLX4_GET
	str	wzr, [x21, #24]
	ldp	w2, w3, [x21]
	ldp	w4, w5, [x21, #8]
	ldp	w7, w6, [x21, #16]
	str	wzr, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_dbg
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_free_cmd_mailbox
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_CMD_QUERY_FUNC,4,2        ; @MLX4_CMD_QUERY_FUNC
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bus: %d, Device: %d, Function: %d, Physical function: %d, Max EQs: %d, Reserved EQs: %d, Reserved UARs: %d\n"

	.comm	_QUERY_FUNC_BUS_OFFSET,4,2      ; @QUERY_FUNC_BUS_OFFSET
	.comm	_QUERY_FUNC_DEVICE_OFFSET,4,2   ; @QUERY_FUNC_DEVICE_OFFSET
	.comm	_QUERY_FUNC_FUNCTION_OFFSET,4,2 ; @QUERY_FUNC_FUNCTION_OFFSET
	.comm	_QUERY_FUNC_MAX_EQ_OFFSET,4,2   ; @QUERY_FUNC_MAX_EQ_OFFSET
	.comm	_QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET,4,2 ; @QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET
	.comm	_QUERY_FUNC_RSVD_EQS_OFFSET,4,2 ; @QUERY_FUNC_RSVD_EQS_OFFSET
	.comm	_QUERY_FUNC_RSVD_UARS_OFFSET,4,2 ; @QUERY_FUNC_RSVD_UARS_OFFSET
.subsections_via_symbols
