	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_PORT                ## -- Begin function mlx4_QUERY_PORT
	.p2align	4, 0x90
_mlx4_QUERY_PORT:                       ## @mlx4_QUERY_PORT
	.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
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	(%r13), %r12
	movq	_MLX4_FLAG_OLD_PORT_CMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	8(%r13), %edx
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.2:
	movq	_MLX4_CMD_QUERY_DEV_CAP@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
	movq	%r14, %rdi
	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_7
## %bb.3:
	movq	_QUERY_DEV_CAP_VL_PORT_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_MLX4_GET
	movl	$0, (%r15)
	movq	_QUERY_DEV_CAP_MTU_WIDTH_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_MLX4_GET
	movq	$0, 4(%r15)
	movq	_QUERY_DEV_CAP_MAX_GID_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_MLX4_GET
	movl	$1, 12(%r15)
	movq	_QUERY_DEV_CAP_MAX_PKEY_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_MLX4_GET
	movl	$1, 16(%r15)
	jmp	LBB0_6
LBB0_4:
	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	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_MLX4_GET
	xorps	%xmm0, %xmm0
	movups	%xmm0, 20(%r15)
	movl	$0, 36(%r15)
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_MLX4_GET
	movl	$0, 4(%r15)
	movq	%r12, %rsi
	movl	$6, %edx
	callq	_MLX4_GET
	movl	$0, 8(%r15)
	movq	%r12, %rsi
	movl	$7, %edx
	callq	_MLX4_GET
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 12(%r15)
	movq	%r12, %rsi
	movl	$11, %edx
	callq	_MLX4_GET
	movl	$0, (%r15)
	movl	$0, 40(%r15)
	movq	%r12, %rsi
	movl	$10, %edx
	callq	_MLX4_GET
	movq	$0, 44(%r15)
	movl	52(%r15), %edi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_MLX4_GET
	movl	56(%r15), %edi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_MLX4_GET
	movq	%r12, %rsi
	movl	$24, %edx
	callq	_MLX4_GET
	movq	$0, 60(%r15)
	movl	68(%r15), %edi
	movq	%r12, %rsi
	movl	$28, %edx
	callq	_MLX4_GET
	movl	72(%r15), %edi
	movq	%r12, %rsi
	movl	$32, %edx
	callq	_MLX4_GET
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mlx4_free_cmd_mailbox
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_FLAG_OLD_PORT_CMDS,4,2    ## @MLX4_FLAG_OLD_PORT_CMDS
	.comm	_MLX4_CMD_QUERY_DEV_CAP,4,2     ## @MLX4_CMD_QUERY_DEV_CAP
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.comm	_QUERY_DEV_CAP_VL_PORT_OFFSET,4,2 ## @QUERY_DEV_CAP_VL_PORT_OFFSET
	.comm	_QUERY_DEV_CAP_MTU_WIDTH_OFFSET,4,2 ## @QUERY_DEV_CAP_MTU_WIDTH_OFFSET
	.comm	_QUERY_DEV_CAP_MAX_GID_OFFSET,4,2 ## @QUERY_DEV_CAP_MAX_GID_OFFSET
	.comm	_QUERY_DEV_CAP_MAX_PKEY_OFFSET,4,2 ## @QUERY_DEV_CAP_MAX_PKEY_OFFSET
	.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	_QUERY_PORT_ETH_MTU_OFFSET,4,2  ## @QUERY_PORT_ETH_MTU_OFFSET
	.comm	_QUERY_PORT_MAC_OFFSET,4,2      ## @QUERY_PORT_MAC_OFFSET
	.comm	_QUERY_PORT_MAX_GID_PKEY_OFFSET,4,2 ## @QUERY_PORT_MAX_GID_PKEY_OFFSET
	.comm	_QUERY_PORT_MAX_MACVLAN_OFFSET,4,2 ## @QUERY_PORT_MAX_MACVLAN_OFFSET
	.comm	_QUERY_PORT_MAX_VL_OFFSET,4,2   ## @QUERY_PORT_MAX_VL_OFFSET
	.comm	_QUERY_PORT_MTU_OFFSET,4,2      ## @QUERY_PORT_MTU_OFFSET
	.comm	_QUERY_PORT_SUPPORTED_TYPE_OFFSET,4,2 ## @QUERY_PORT_SUPPORTED_TYPE_OFFSET
	.comm	_QUERY_PORT_TRANS_CODE_OFFSET,4,2 ## @QUERY_PORT_TRANS_CODE_OFFSET
	.comm	_QUERY_PORT_TRANS_VENDOR_OFFSET,4,2 ## @QUERY_PORT_TRANS_VENDOR_OFFSET
	.comm	_QUERY_PORT_WAVELENGTH_OFFSET,4,2 ## @QUERY_PORT_WAVELENGTH_OFFSET
	.comm	_QUERY_PORT_WIDTH_OFFSET,4,2    ## @QUERY_PORT_WIDTH_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_PORT                ; -- Begin function mlx4_QUERY_PORT
	.p2align	2
_mlx4_QUERY_PORT:                       ; @mlx4_QUERY_PORT
	.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	x21, x2
	mov	x23, 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, #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
	b	_PTR_ERR
LBB0_2:
	ldr	x22, [x20]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _MLX4_FLAG_OLD_PORT_CMDS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_FLAG_OLD_PORT_CMDS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w2, [x20, #8]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _MLX4_CMD_QUERY_DEV_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_CMD_QUERY_DEV_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
Lloh6:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
Lloh9:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh11:
	ldr	w7, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #0
	bl	_mlx4_cmd_box
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _QUERY_DEV_CAP_VL_PORT_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QUERY_DEV_CAP_VL_PORT_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_MLX4_GET
	str	wzr, [x21]
Lloh15:
	adrp	x8, _QUERY_DEV_CAP_MTU_WIDTH_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QUERY_DEV_CAP_MTU_WIDTH_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_MLX4_GET
	stp	wzr, wzr, [x21, #4]
Lloh18:
	adrp	x8, _QUERY_DEV_CAP_MAX_GID_OFFSET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QUERY_DEV_CAP_MAX_GID_OFFSET@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_MLX4_GET
	mov	w24, #1
	str	w24, [x21, #12]
Lloh21:
	adrp	x8, _QUERY_DEV_CAP_MAX_PKEY_OFFSET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QUERY_DEV_CAP_MAX_PKEY_OFFSET@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_MLX4_GET
	str	w24, [x21, #16]
	b	LBB0_7
LBB0_5:
Lloh24:
	adrp	x8, _MLX4_CMD_QUERY_PORT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MLX4_CMD_QUERY_PORT@GOTPAGEOFF]
Lloh26:
	ldr	w5, [x8]
Lloh27:
	adrp	x8, _MLX4_CMD_TIME_CLASS_B@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_B@GOTPAGEOFF]
Lloh29:
	ldr	w6, [x8]
Lloh30:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh32:
	ldr	w7, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x23
	mov	w4, #0
	bl	_mlx4_cmd_box
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x1, x22
	mov	w2, #0
	bl	_MLX4_GET
	stur	xzr, [x21, #28]
	stur	xzr, [x21, #20]
	str	wzr, [x21, #36]
	mov	x1, x22
	mov	w2, #1
	bl	_MLX4_GET
	str	wzr, [x21, #4]
	mov	x1, x22
	mov	w2, #6
	bl	_MLX4_GET
	str	wzr, [x21, #8]
	mov	x1, x22
	mov	w2, #7
	bl	_MLX4_GET
	movi.2s	v0, #1
	stur	d0, [x21, #12]
	mov	x1, x22
	mov	w2, #11
	bl	_MLX4_GET
	str	wzr, [x21]
	str	wzr, [x21, #40]
	mov	x1, x22
	mov	w2, #10
	bl	_MLX4_GET
	movi.2d	v0, #0000000000000000
	stur	d0, [x21, #44]
	ldr	w0, [x21, #52]
	mov	x1, x22
	mov	w2, #2
	bl	_MLX4_GET
	ldr	w0, [x21, #56]
	mov	x1, x22
	mov	w2, #16
	bl	_MLX4_GET
	mov	x1, x22
	mov	w2, #24
	bl	_MLX4_GET
	movi.2d	v0, #0000000000000000
	stur	d0, [x21, #60]
	ldr	w0, [x21, #68]
	mov	x1, x22
	mov	w2, #28
	bl	_MLX4_GET
	ldr	w0, [x21, #72]
	mov	x1, x22
	mov	w2, #32
	bl	_MLX4_GET
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_free_cmd_mailbox
	mov	x0, x23
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_FLAG_OLD_PORT_CMDS,4,2    ; @MLX4_FLAG_OLD_PORT_CMDS
	.comm	_MLX4_CMD_QUERY_DEV_CAP,4,2     ; @MLX4_CMD_QUERY_DEV_CAP
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.comm	_QUERY_DEV_CAP_VL_PORT_OFFSET,4,2 ; @QUERY_DEV_CAP_VL_PORT_OFFSET
	.comm	_QUERY_DEV_CAP_MTU_WIDTH_OFFSET,4,2 ; @QUERY_DEV_CAP_MTU_WIDTH_OFFSET
	.comm	_QUERY_DEV_CAP_MAX_GID_OFFSET,4,2 ; @QUERY_DEV_CAP_MAX_GID_OFFSET
	.comm	_QUERY_DEV_CAP_MAX_PKEY_OFFSET,4,2 ; @QUERY_DEV_CAP_MAX_PKEY_OFFSET
	.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	_QUERY_PORT_ETH_MTU_OFFSET,4,2  ; @QUERY_PORT_ETH_MTU_OFFSET
	.comm	_QUERY_PORT_MAC_OFFSET,4,2      ; @QUERY_PORT_MAC_OFFSET
	.comm	_QUERY_PORT_MAX_GID_PKEY_OFFSET,4,2 ; @QUERY_PORT_MAX_GID_PKEY_OFFSET
	.comm	_QUERY_PORT_MAX_MACVLAN_OFFSET,4,2 ; @QUERY_PORT_MAX_MACVLAN_OFFSET
	.comm	_QUERY_PORT_MAX_VL_OFFSET,4,2   ; @QUERY_PORT_MAX_VL_OFFSET
	.comm	_QUERY_PORT_MTU_OFFSET,4,2      ; @QUERY_PORT_MTU_OFFSET
	.comm	_QUERY_PORT_SUPPORTED_TYPE_OFFSET,4,2 ; @QUERY_PORT_SUPPORTED_TYPE_OFFSET
	.comm	_QUERY_PORT_TRANS_CODE_OFFSET,4,2 ; @QUERY_PORT_TRANS_CODE_OFFSET
	.comm	_QUERY_PORT_TRANS_VENDOR_OFFSET,4,2 ; @QUERY_PORT_TRANS_VENDOR_OFFSET
	.comm	_QUERY_PORT_WAVELENGTH_OFFSET,4,2 ; @QUERY_PORT_WAVELENGTH_OFFSET
	.comm	_QUERY_PORT_WIDTH_OFFSET,4,2    ; @QUERY_PORT_WIDTH_OFFSET
.subsections_via_symbols
