	.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	%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	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movl	(%rax,%rsi,4), %edi
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%r13), %edi
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.18:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	(%r13), %edi
	movl	8(%r14), %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	%rbx, %rcx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.2:
	movq	(%r14), %rcx
	movl	(%rcx), %eax
	movq	_MLX4_EN_LINK_UP_MASK@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%eax, %edx
	setne	%sil
	movl	%esi, (%r15)
	movq	_MLX4_EN_SPEED_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	4(%rcx), %edx
	addl	$-128, %edx
	cmpl	$6, %edx
	ja	LBB0_3
## %bb.4:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_7:
	movq	_SPEED_10000@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_3:
	movl	$-1, %edx
	jmp	LBB0_12
LBB0_10:
	movq	_SPEED_56000@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_9:
	movq	_SPEED_40000@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_8:
	movq	_SPEED_20000@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_6:
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_5:
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
LBB0_11:
	movl	(%rdx), %edx
LBB0_12:
	movl	%edx, 4(%r15)
	movl	12(%rcx), %edx
	movl	%edx, 12(%r15)
	movq	_MLX4_EN_ANC_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_14
## %bb.13:
	movq	_MLX4_EN_PORT_ANC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	movq	_MLX4_EN_AUTONEG_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	8(%rcx), %edx
	je	LBB0_16
## %bb.15:
	movq	_MLX4_EN_PORT_ANE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_16:
	orl	%eax, %edx
	movl	%edx, 8(%r15)
LBB0_17:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_mlx4_free_cmd_mailbox
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- 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
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_SPEED_20000,4,2                ## @SPEED_20000
	.comm	_SPEED_40000,4,2                ## @SPEED_40000
	.comm	_SPEED_56000,4,2                ## @SPEED_56000
	.comm	_MLX4_EN_ANC_MASK,4,2           ## @MLX4_EN_ANC_MASK
	.comm	_MLX4_EN_PORT_ANC,4,2           ## @MLX4_EN_PORT_ANC
	.comm	_MLX4_EN_AUTONEG_MASK,4,2       ## @MLX4_EN_AUTONEG_MASK
	.comm	_MLX4_EN_PORT_ANE,4,2           ## @MLX4_EN_PORT_ANE
.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	x20, x0
	ldr	w0, [x19]
	bl	_mlx4_alloc_cmd_mailbox
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	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	w0, [x19]
	ldr	w2, [x21, #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_14
; %bb.3:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _MLX4_EN_LINK_UP_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX4_EN_LINK_UP_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x9]
	ldp	w9, w11, [x8]
	tst	w10, w9
	cset	w10, ne
	str	w10, [x20]
Lloh12:
	adrp	x10, _MLX4_EN_SPEED_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MLX4_EN_SPEED_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	and	w10, w10, w11
	sub	w10, w10, #128
	cmp	w10, #6
	b.hi	LBB0_6
; %bb.4:
Lloh15:
	adrp	x11, lJTI0_0@PAGE
Lloh16:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_5
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_5:
Lloh17:
	adrp	x10, _SPEED_10000@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SPEED_10000@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	mov	w10, #-1
	b	LBB0_13
LBB0_7:
Lloh19:
	adrp	x10, _SPEED_56000@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SPEED_56000@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh21:
	adrp	x10, _SPEED_40000@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SPEED_40000@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh23:
	adrp	x10, _SPEED_20000@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SPEED_20000@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh25:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh26:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh27:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
LBB0_12:
	ldr	w10, [x10]
LBB0_13:
Lloh29:
	adrp	x11, _MLX4_EN_ANC_MASK@GOTPAGE
Lloh30:
	ldr	x11, [x11, _MLX4_EN_ANC_MASK@GOTPAGEOFF]
Lloh31:
	adrp	x12, _MLX4_EN_PORT_ANC@GOTPAGE
Lloh32:
	ldr	x12, [x12, _MLX4_EN_PORT_ANC@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
Lloh34:
	ldr	w12, [x12]
	tst	w11, w9
	csel	w9, wzr, w12, eq
	ldp	w8, w11, [x8, #8]
Lloh35:
	adrp	x12, _MLX4_EN_AUTONEG_MASK@GOTPAGE
Lloh36:
	ldr	x12, [x12, _MLX4_EN_AUTONEG_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w12, [x12]
	tst	w12, w8
Lloh38:
	adrp	x8, _MLX4_EN_PORT_ANE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MLX4_EN_PORT_ANE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	csel	w8, wzr, w8, eq
	orr	w8, w8, w9
	str	w10, [x20, #4]
	stp	w8, w11, [x20, #8]
LBB0_14:
	ldr	w0, [x19]
	mov	x1, x21
	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
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
                                        ; -- 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
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_SPEED_20000,4,2                ; @SPEED_20000
	.comm	_SPEED_40000,4,2                ; @SPEED_40000
	.comm	_SPEED_56000,4,2                ; @SPEED_56000
	.comm	_MLX4_EN_ANC_MASK,4,2           ; @MLX4_EN_ANC_MASK
	.comm	_MLX4_EN_PORT_ANC,4,2           ; @MLX4_EN_PORT_ANC
	.comm	_MLX4_EN_AUTONEG_MASK,4,2       ; @MLX4_EN_AUTONEG_MASK
	.comm	_MLX4_EN_PORT_ANE,4,2           ; @MLX4_EN_PORT_ANE
.subsections_via_symbols
