	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_PORT_wrapper        ## -- Begin function mlx4_QUERY_PORT_wrapper
	.p2align	4, 0x90
_mlx4_QUERY_PORT_wrapper:               ## @mlx4_QUERY_PORT_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_mlx4_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	movq	_MLX4_CMD_QUERY_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	pushq	%rbx
	pushq	%rax
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	cmpl	%r13d, (%r14)
	je	LBB0_5
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %r13d
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	movq	_QUERY_PORT_MAC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX4_GET
LBB0_4:
	movl	(%r15), %edi
	movq	_QUERY_PORT_MAC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	callq	_MLX4_PUT
	movl	(%r15), %esi
	movq	_QUERY_PORT_SUPPORTED_TYPE_OFFSET@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_MLX4_GET
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	andl	$3, %esi
	movl	(%r15), %edi
	movl	(%r13), %edx
	callq	_MLX4_PUT
	movl	(%r15), %edi
	movl	$1, %esi
	movl	$14, %edx
	callq	_MLX4_PUT
	movq	16(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	(%r15), %edi
	movl	$12, %edx
	callq	_MLX4_PUT
LBB0_5:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_CMD_QUERY_PORT,4,2        ## @MLX4_CMD_QUERY_PORT
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ## @MLX4_CMD_TIME_CLASS_B
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.comm	_QUERY_PORT_MAC_OFFSET,4,2      ## @QUERY_PORT_MAC_OFFSET
	.comm	_QUERY_PORT_SUPPORTED_TYPE_OFFSET,4,2 ## @QUERY_PORT_SUPPORTED_TYPE_OFFSET
	.comm	_MLX4_VF_PORT_NO_LINK_SENSE_MASK,4,2 ## @MLX4_VF_PORT_NO_LINK_SENSE_MASK
	.comm	_QUERY_PORT_CUR_MAX_GID_OFFSET,4,2 ## @QUERY_PORT_CUR_MAX_GID_OFFSET
	.comm	_QUERY_PORT_CUR_MAX_PKEY_OFFSET,4,2 ## @QUERY_PORT_CUR_MAX_PKEY_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_PORT_wrapper        ; -- Begin function mlx4_QUERY_PORT_wrapper
	.p2align	2
_mlx4_QUERY_PORT_wrapper:               ; @mlx4_QUERY_PORT_wrapper
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	bl	_mlx4_priv
	mov	x24, x0
	ldr	w2, [x19, #4]
	ldr	x3, [x20]
Lloh0:
	adrp	x8, _MLX4_CMD_QUERY_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_CMD_QUERY_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _MLX4_CMD_TIME_CLASS_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_B@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, x21
	mov	w1, #0
	mov	w4, #0
	bl	_mlx4_cmd_box
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w23
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x24, #8]
	ldr	x8, [x8, w23, sxtw #3]
	ldr	x9, [x20]
	ldr	w23, [x8, x9, lsl #2]
Lloh9:
	adrp	x24, _QUERY_PORT_MAC_OFFSET@GOTPAGE
Lloh10:
	ldr	x24, [x24, _QUERY_PORT_MAC_OFFSET@GOTPAGEOFF]
	cbnz	w23, LBB0_4
; %bb.3:
	ldr	w1, [x19]
	ldr	w2, [x24]
	bl	_MLX4_GET
LBB0_4:
	ldr	w0, [x19]
	ldr	w2, [x24]
	mov	x1, x23
	bl	_MLX4_PUT
	ldr	w1, [x19]
Lloh11:
	adrp	x23, _QUERY_PORT_SUPPORTED_TYPE_OFFSET@GOTPAGE
Lloh12:
	ldr	x23, [x23, _QUERY_PORT_SUPPORTED_TYPE_OFFSET@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_MLX4_GET
	ldr	x8, [x21, #8]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	and	w1, w8, #0x3
	ldr	w0, [x19]
	ldr	w2, [x23]
	bl	_MLX4_PUT
	ldr	w0, [x19]
	mov	w1, #1
	mov	w2, #14
	bl	_MLX4_PUT
	ldr	x8, [x21, #16]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w0, [x19]
	mov	w2, #12
	bl	_MLX4_PUT
LBB0_5:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_CMD_QUERY_PORT,4,2        ; @MLX4_CMD_QUERY_PORT
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ; @MLX4_CMD_TIME_CLASS_B
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.comm	_QUERY_PORT_MAC_OFFSET,4,2      ; @QUERY_PORT_MAC_OFFSET
	.comm	_QUERY_PORT_SUPPORTED_TYPE_OFFSET,4,2 ; @QUERY_PORT_SUPPORTED_TYPE_OFFSET
	.comm	_MLX4_VF_PORT_NO_LINK_SENSE_MASK,4,2 ; @MLX4_VF_PORT_NO_LINK_SENSE_MASK
	.comm	_QUERY_PORT_CUR_MAX_GID_OFFSET,4,2 ; @QUERY_PORT_CUR_MAX_GID_OFFSET
	.comm	_QUERY_PORT_CUR_MAX_PKEY_OFFSET,4,2 ; @QUERY_PORT_CUR_MAX_PKEY_OFFSET
.subsections_via_symbols
