	.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, -48(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_mlx4_priv
	movq	%rax, %r14
	movzbl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mlx4_slave_convert_port
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r15)
	jne	LBB0_1
## %bb.3:
	cmpl	$256, (%r15)                    ## imm = 0x100
	jae	LBB0_1
## %bb.4:
	movl	%eax, %r13d
	movl	%eax, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movq	_MLX4_CMD_QUERY_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_19
## %bb.5:
	cmpl	%r12d, (%rbx)
	je	LBB0_18
## %bb.6:
	movq	(%r14), %rax
	movslq	%r12d, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	movslq	(%r15), %rcx
	movl	(%rax,%rcx,8), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_QUERY_PORT_MAC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX4_PUT
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	_QUERY_PORT_SUPPORTED_TYPE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX4_GET
	movq	8(%rbx), %rax
	movslq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	andl	$3, %esi
	movq	(%r14), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rax
	movl	4(%rax,%rcx,8), %eax
	movq	_IFLA_VF_LINK_STATE_ENABLE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	orl	$128, %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_IFLA_VF_LINK_STATE_DISABLE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.9:
	movq	_IFLA_VF_LINK_STATE_AUTO@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_14
## %bb.10:
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_mlx4_is_bonded
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	xorl	%esi, %esi
	cmpl	$1, %r13d
	sete	%sil
	incl	%esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mlx4_QUERY_PORT
	testl	%eax, %eax
	jne	LBB0_19
## %bb.13:
	movl	-64(%rbp), %eax
	shll	$7, %eax
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	orl	%eax, %esi
LBB0_14:
	movq	_QUERY_PORT_SUPPORTED_TYPE_OFFSET@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%r14), %edi
	movl	(%rax), %edx
	callq	_MLX4_PUT
	movq	8(%rbx), %rax
	movslq	(%r15), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_MLX4_PORT_TYPE_ETH@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_mlx4_get_slave_num_gids
	movl	%eax, %esi
LBB0_17:
	movl	(%r14), %edi
	movl	$14, %edx
	callq	_MLX4_PUT
	movq	16(%rbx), %rax
	movslq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	(%r14), %edi
	movl	$12, %edx
	callq	_MLX4_PUT
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_11:
	movq	_QUERY_PORT_SUPPORTED_TYPE_OFFSET@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	_IFLA_VF_LINK_STATE_ENABLE,4,2  ## @IFLA_VF_LINK_STATE_ENABLE
	.comm	_IFLA_VF_LINK_STATE_DISABLE,4,2 ## @IFLA_VF_LINK_STATE_DISABLE
	.comm	_IFLA_VF_LINK_STATE_AUTO,4,2    ## @IFLA_VF_LINK_STATE_AUTO
	.comm	_MLX4_PORT_TYPE_ETH,4,2         ## @MLX4_PORT_TYPE_ETH
	.comm	_MLX4_PORT_LINK_UP_MASK,4,2     ## @MLX4_PORT_LINK_UP_MASK
	.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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x4
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_mlx4_priv
	mov	x24, x0
	ldrb	w2, [x20]
	mov	x0, x21
	mov	x1, x22
	bl	_mlx4_slave_convert_port
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_7
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #256
	b.hs	LBB0_7
; %bb.3:
	mov	x23, x0
	str	w0, [x20]
	ldr	w2, [x19, #4]
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	x3, x23
	mov	w4, #0
	bl	_mlx4_cmd_box
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w8, [x21]
	cmp	w8, w22
	b.eq	LBB0_18
; %bb.5:
	ldr	x8, [x24]
	sbfiz	x27, x22, #3, #32
	ldr	x8, [x8, x27]
	ldrsw	x9, [x20]
	lsl	x9, x9, #3
	ldr	w1, [x8, x9]
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _QUERY_PORT_MAC_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QUERY_PORT_MAC_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_MLX4_PUT
	ldr	w1, [x19]
Lloh12:
	adrp	x26, _QUERY_PORT_SUPPORTED_TYPE_OFFSET@GOTPAGE
Lloh13:
	ldr	x26, [x26, _QUERY_PORT_SUPPORTED_TYPE_OFFSET@GOTPAGEOFF]
	ldr	w2, [x26]
	bl	_MLX4_GET
	ldr	x8, [x21, #8]
	ldrsw	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	and	w25, w8, #0x3
	ldr	x8, [x24]
	ldr	x8, [x8, x27]
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
Lloh14:
	adrp	x9, _IFLA_VF_LINK_STATE_ENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IFLA_VF_LINK_STATE_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_9
; %bb.6:
	orr	w25, w25, #0x80
	b	LBB0_14
LBB0_7:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh20:
	adrp	x9, _IFLA_VF_LINK_STATE_DISABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IFLA_VF_LINK_STATE_DISABLE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w9, w8
	b.eq	LBB0_14
; %bb.10:
Lloh23:
	adrp	x9, _IFLA_VF_LINK_STATE_AUTO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IFLA_VF_LINK_STATE_AUTO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x21
	bl	_mlx4_is_bonded
	cbz	x0, LBB0_14
; %bb.12:
	cmp	w23, #1
	mov	w8, #1
	cinc	w1, w8, eq
	add	x2, sp, #8
	mov	x0, x21
	bl	_mlx4_QUERY_PORT
	cbnz	w0, LBB0_8
; %bb.13:
	ldr	w8, [sp, #8]
	bfi	w25, w8, #7, #25
LBB0_14:
	ldr	w0, [x19]
	ldr	w2, [x26]
	mov	x1, x25
	bl	_MLX4_PUT
	ldr	x8, [x21, #8]
	ldrsw	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
Lloh26:
	adrp	x9, _MLX4_PORT_TYPE_ETH@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MLX4_PORT_TYPE_ETH@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_mlx4_get_slave_num_gids
	mov	x1, x0
	b	LBB0_17
LBB0_16:
	mov	w1, #1
LBB0_17:
	ldr	w0, [x19]
	mov	w2, #14
	bl	_MLX4_PUT
	ldr	x8, [x21, #16]
	ldrsw	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w0, [x19]
	mov	w2, #12
	bl	_MLX4_PUT
LBB0_18:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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	_IFLA_VF_LINK_STATE_ENABLE,4,2  ; @IFLA_VF_LINK_STATE_ENABLE
	.comm	_IFLA_VF_LINK_STATE_DISABLE,4,2 ; @IFLA_VF_LINK_STATE_DISABLE
	.comm	_IFLA_VF_LINK_STATE_AUTO,4,2    ; @IFLA_VF_LINK_STATE_AUTO
	.comm	_MLX4_PORT_TYPE_ETH,4,2         ; @MLX4_PORT_TYPE_ETH
	.comm	_MLX4_PORT_LINK_UP_MASK,4,2     ; @MLX4_PORT_LINK_UP_MASK
	.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
