	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_QUERY_PORT             ## -- Begin function mlx4_en_QUERY_PORT
	.p2align	4, 0x90
_mlx4_en_QUERY_PORT:                    ## @mlx4_en_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax,%rsi,4), %edi
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	(%r14), %edi
	movl	8(%rbx), %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_WRAPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	xorl	%esi, %esi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	movq	_MLX4_EN_LINK_UP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	setne	%dl
	movl	%edx, (%r15)
	movq	_MLX4_EN_SPEED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	addl	$-128, %ecx
	movl	$-1, %edx
	cmpl	$3, %ecx
	ja	LBB0_4
## %bb.3:
	movslq	%ecx, %rcx
	leaq	L_switch.table.mlx4_en_QUERY_PORT(%rip), %rdx
	movl	(%rdx,%rcx,4), %edx
LBB0_4:
	movl	%edx, 4(%r15)
	movl	8(%rax), %eax
	movl	%eax, 8(%r15)
LBB0_5:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_mlx4_free_cmd_mailbox
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	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_WRAPPED,4,2           ## @MLX4_CMD_WRAPPED
	.comm	_MLX4_EN_LINK_UP_MASK,4,2       ## @MLX4_EN_LINK_UP_MASK
	.comm	_MLX4_EN_SPEED_MASK,4,2         ## @MLX4_EN_SPEED_MASK
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.mlx4_en_QUERY_PORT
L_switch.table.mlx4_en_QUERY_PORT:
	.long	40000                           ## 0x9c40
	.long	1000                            ## 0x3e8
	.long	10000                           ## 0x2710
	.long	10000                           ## 0x2710

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_QUERY_PORT             ; -- Begin function mlx4_en_QUERY_PORT
	.p2align	2
_mlx4_en_QUERY_PORT:                    ; @mlx4_en_QUERY_PORT
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, x1, lsl #2]
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x19]
	bl	_mlx4_alloc_cmd_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	ldr	x0, [x20]
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [x19]
	ldr	w2, [x20, #8]
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_WRAPPED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_CMD_WRAPPED@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	mov	w1, #0
	mov	x3, x22
	mov	w4, #0
	bl	_mlx4_cmd_box
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _MLX4_EN_LINK_UP_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX4_EN_LINK_UP_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldp	w10, w11, [x8]
	tst	w9, w10
	cset	w9, ne
	str	w9, [x21]
Lloh12:
	adrp	x9, _MLX4_EN_SPEED_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MLX4_EN_SPEED_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w11
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_5
; %bb.4:
Lloh15:
	adrp	x10, l_switch.table.mlx4_en_QUERY_PORT@PAGE
Lloh16:
	add	x10, x10, l_switch.table.mlx4_en_QUERY_PORT@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	b	LBB0_6
LBB0_5:
	mov	w9, #-1
LBB0_6:
	ldr	w8, [x8, #8]
	stp	w9, w8, [x21, #4]
LBB0_7:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_mlx4_free_cmd_mailbox
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.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_WRAPPED,4,2           ; @MLX4_CMD_WRAPPED
	.comm	_MLX4_EN_LINK_UP_MASK,4,2       ; @MLX4_EN_LINK_UP_MASK
	.comm	_MLX4_EN_SPEED_MASK,4,2         ; @MLX4_EN_SPEED_MASK
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.mlx4_en_QUERY_PORT
l_switch.table.mlx4_en_QUERY_PORT:
	.long	40000                           ; 0x9c40
	.long	1000                            ; 0x3e8
	.long	10000                           ; 0x2710
	.long	10000                           ; 0x2710

.subsections_via_symbols
