	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eth_link_query_port
_eth_link_query_port:                   ## @eth_link_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	callq	_to_mdev
	movq	%rax, %r13
	movq	(%rax), %rdi
	callq	_mlx4_is_bonded
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.22:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	movq	(%r13), %rdi
	movl	8(%r15), %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
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.2:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	(%r15), %rax
	movl	20(%rax), %ecx
	addl	$-32, %ecx
	testl	$-33, %ecx
	jne	LBB0_3
## %bb.4:
	movq	_IB_WIDTH_4X@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_IB_WIDTH_1X@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 64(%rdx)
	cmpl	$32, 20(%rax)
	jne	LBB0_6
## %bb.7:
	movq	_IB_SPEED_FDR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_IB_SPEED_QDR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 60(%r14)
	movq	_IB_PORT_CM_SUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movl	$1, (%r14)
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	movslq	%r12d, %r12
	movl	(%rcx,%r12,4), %ecx
	movl	%ecx, 52(%r14)
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movl	$1, 4(%r14)
	movq	_IB_MTU_4096@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movl	$2, 8(%r14)
	movq	_IB_PORT_DOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%r14)
	callq	_state_to_phys_state
	movq	%rax, 24(%r14)
	movq	_IB_MTU_256@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	16(%rbx), %rax
	movq	-8(%rax,%r12,8), %r12
	testq	%r12, %r12
	je	LBB0_11
## %bb.9:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r12, %rdi
	callq	_netdev_master_upper_dev_get_rcu
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_11:
	testq	%r12, %r12
	je	LBB0_20
## %bb.12:
	movl	(%r12), %edi
	callq	_iboe_get_mtu
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	32(%r14), %edi
	movl	%eax, %esi
	callq	_min
	jmp	LBB0_15
LBB0_14:
	movq	_IB_MTU_256@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_15:
	movq	%rax, 40(%r14)
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%r12, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_IB_PORT_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_IB_PORT_DOWN@GOTPCREL(%rip), %rax
LBB0_19:
	movq	(%rax), %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rdi, 16(%r14)
	callq	_state_to_phys_state
	movq	%rax, 24(%r14)
LBB0_20:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_21:
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_mlx4_free_cmd_mailbox
	movl	%r14d, %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_WRAPPED,4,2           ## @MLX4_CMD_WRAPPED
	.comm	_IB_WIDTH_4X,4,2                ## @IB_WIDTH_4X
	.comm	_IB_WIDTH_1X,4,2                ## @IB_WIDTH_1X
	.comm	_IB_SPEED_FDR,4,2               ## @IB_SPEED_FDR
	.comm	_IB_SPEED_QDR,4,2               ## @IB_SPEED_QDR
	.comm	_IB_PORT_CM_SUP,4,2             ## @IB_PORT_CM_SUP
	.comm	_IB_MTU_4096,4,2                ## @IB_MTU_4096
	.comm	_IB_PORT_DOWN,8,3               ## @IB_PORT_DOWN
	.comm	_IB_MTU_256,8,3                 ## @IB_MTU_256
	.comm	_IB_PORT_ACTIVE,8,3             ## @IB_PORT_ACTIVE
	.no_dead_strip	_eth_link_query_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function eth_link_query_port
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_eth_link_query_port:                   ; @eth_link_query_port
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x23, x1
	bl	_to_mdev
	mov	x20, x0
	ldr	x0, [x0]
	bl	_mlx4_is_bonded
	mov	x25, x0
	ldr	x0, [x20]
	bl	_mlx4_alloc_cmd_mailbox
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	ldr	x0, [x20]
	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, x23
	mov	w4, #0
	bl	_mlx4_cmd_box
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.3:
	ldr	x8, [x21]
	ldr	w9, [x8, #20]
	sub	w9, w9, #32
Lloh9:
	adrp	x10, _IB_WIDTH_4X@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IB_WIDTH_4X@GOTPAGEOFF]
Lloh11:
	adrp	x11, _IB_WIDTH_1X@GOTPAGE
Lloh12:
	ldr	x11, [x11, _IB_WIDTH_1X@GOTPAGEOFF]
	tst	w9, #0xffffffdf
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	str	w9, [x19, #64]
	ldr	w8, [x8, #20]
Lloh13:
	adrp	x9, _IB_SPEED_FDR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IB_SPEED_FDR@GOTPAGEOFF]
Lloh15:
	adrp	x10, _IB_SPEED_QDR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IB_SPEED_QDR@GOTPAGEOFF]
	cmp	w8, #32
	csel	x8, x9, x10, eq
Lloh17:
	adrp	x9, _IB_PORT_CM_SUP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_PORT_CM_SUP@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	w9, [x9, w23, sxtw #2]
	ldr	w8, [x8]
	stp	w8, w9, [x19, #48]
Lloh20:
	adrp	x8, _IB_MTU_4096@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_MTU_4096@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh23:
	adrp	x8, lCPI0_0@PAGE
Lloh24:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
Lloh25:
	adrp	x8, _IB_PORT_DOWN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IB_PORT_DOWN@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_state_to_phys_state
	str	x0, [x19, #24]
Lloh28:
	adrp	x26, _IB_MTU_256@GOTPAGE
Lloh29:
	ldr	x26, [x26, _IB_MTU_256@GOTPAGEOFF]
	ldr	x8, [x26]
	str	x8, [x19, #40]
	add	x24, x20, #8
	mov	x0, x24
	bl	_spin_lock_bh
	ldr	x8, [x20, #16]
	add	x8, x8, w23, sxtw #3
	ldur	x23, [x8, #-8]
	cbz	x23, LBB0_6
; %bb.4:
	cbz	w25, LBB0_6
; %bb.5:
	bl	_rcu_read_lock
	mov	x0, x23
	bl	_netdev_master_upper_dev_get_rcu
	mov	x23, x0
	bl	_rcu_read_unlock
LBB0_6:
	cbz	x23, LBB0_15
; %bb.7:
	ldr	w0, [x23]
	bl	_iboe_get_mtu
	cbz	w0, LBB0_9
; %bb.8:
	mov	x1, x0
	ldr	w0, [x19, #32]
	bl	_min
	b	LBB0_10
LBB0_9:
	ldr	x0, [x26]
LBB0_10:
	str	x0, [x19, #40]
	mov	x0, x23
	bl	_netif_running
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x23
	bl	_netif_carrier_ok
	cbz	x0, LBB0_13
; %bb.12:
Lloh30:
	adrp	x8, _IB_PORT_ACTIVE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IB_PORT_ACTIVE@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh32:
	adrp	x8, _IB_PORT_DOWN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IB_PORT_DOWN@GOTPAGEOFF]
LBB0_14:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_state_to_phys_state
	str	x0, [x19, #24]
LBB0_15:
	mov	x0, x24
	bl	_spin_unlock_bh
LBB0_16:
	ldr	x0, [x20]
	mov	x1, x21
	bl	_mlx4_free_cmd_mailbox
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdrp	Lloh23, Lloh25
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.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	_IB_WIDTH_4X,4,2                ; @IB_WIDTH_4X
	.comm	_IB_WIDTH_1X,4,2                ; @IB_WIDTH_1X
	.comm	_IB_SPEED_FDR,4,2               ; @IB_SPEED_FDR
	.comm	_IB_SPEED_QDR,4,2               ; @IB_SPEED_QDR
	.comm	_IB_PORT_CM_SUP,4,2             ; @IB_PORT_CM_SUP
	.comm	_IB_MTU_4096,4,2                ; @IB_MTU_4096
	.comm	_IB_PORT_DOWN,8,3               ; @IB_PORT_DOWN
	.comm	_IB_MTU_256,8,3                 ; @IB_MTU_256
	.comm	_IB_PORT_ACTIVE,8,3             ; @IB_PORT_ACTIVE
	.no_dead_strip	_eth_link_query_port
.subsections_via_symbols
