	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_FW_wrapper          ## -- Begin function mlx4_QUERY_FW_wrapper
	.p2align	4, 0x90
_mlx4_QUERY_FW_wrapper:                 ## @mlx4_QUERY_FW_wrapper
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%r8), %r14
	movl	(%r8), %edx
	movq	_MLX4_CMD_QUERY_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rbx
	pushq	%rax
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	64(%r14), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	_QUERY_FW_OUT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$-8, %rdx
	xorl	%esi, %esi
	callq	_memset
	movq	_MLX4_INVALID_SLAVE_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_QUERY_FW_PPF_ID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%r14,%rcx,8)
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_CMD_QUERY_FW,4,2          ## @MLX4_CMD_QUERY_FW
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.comm	_QUERY_FW_OUT_SIZE,8,3          ## @QUERY_FW_OUT_SIZE
	.comm	_MLX4_INVALID_SLAVE_ID,8,3      ## @MLX4_INVALID_SLAVE_ID
	.comm	_QUERY_FW_PPF_ID,8,3            ## @QUERY_FW_PPF_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_FW_wrapper          ; -- Begin function mlx4_QUERY_FW_wrapper
	.p2align	2
_mlx4_QUERY_FW_wrapper:                 ; @mlx4_QUERY_FW_wrapper
	.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
	ldr	x20, [x4, #8]
	ldr	w2, [x4]
Lloh0:
	adrp	x8, _MLX4_CMD_QUERY_FW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_CMD_QUERY_FW@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	w1, #0
	mov	w3, #0
	mov	w4, #0
	bl	_mlx4_cmd_box
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
	add	x0, x20, #64
	stp	xzr, xzr, [x20]
Lloh9:
	adrp	x8, _QUERY_FW_OUT_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QUERY_FW_OUT_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x2, x8, #8
	mov	w1, #0
	bl	_memset
Lloh12:
	adrp	x8, _MLX4_INVALID_SLAVE_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_INVALID_SLAVE_ID@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _QUERY_FW_PPF_ID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QUERY_FW_PPF_ID@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	x8, [x20, x9, lsl #3]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_CMD_QUERY_FW,4,2          ; @MLX4_CMD_QUERY_FW
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.comm	_QUERY_FW_OUT_SIZE,8,3          ; @QUERY_FW_OUT_SIZE
	.comm	_MLX4_INVALID_SLAVE_ID,8,3      ; @MLX4_INVALID_SLAVE_ID
	.comm	_QUERY_FW_PPF_ID,8,3            ; @QUERY_FW_PPF_ID
.subsections_via_symbols
