	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_start_port             ## -- Begin function mlx4_en_start_port
	.p2align	4, 0x90
_mlx4_en_start_port:                    ## @mlx4_en_start_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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r13
	movq	136(%rax), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_en_dbg
	jmp	LBB0_61
LBB0_2:
	leaq	132(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	128(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	124(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movq	8(%r13), %rdi
	movq	_MAX_NUM_OF_FS_RULES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %edi
	movl	120(%r13), %esi
	callq	_min
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_mlx4_en_calc_rx_buf
	movq	_DRV@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	112(%r13), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_en_dbg
	movq	%r13, %rdi
	callq	_mlx4_en_activate_rx_rings
	testl	%eax, %eax
	je	LBB0_3
## %bb.63:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_en_err
	jmp	LBB0_61
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	cmpl	$0, 16(%r13)
	jle	LBB0_25
## %bb.4:
	movq	%r14, -208(%rbp)                ## 8-byte Spill
	movq	%rbx, -216(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	movq	_MLX4_CQE_OWNER_MASK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	movq	56(%r13), %rax
	movq	%r13, %rdi
	movq	%rdx, %r13
	shlq	$4, %r13
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	leaq	(%rax,%r13), %r12
	movq	%rdi, %r14
	movq	%r12, %rsi
	movq	%rdx, -192(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mlx4_en_activate_cq
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax,%r13), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	andl	$-4, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %edi
	movl	%edi, 4(%rcx,%rsi,8)
	movl	(%r15), %edi
	movl	%edi, 12(%rcx,%rsi,8)
	movl	(%r15), %edi
	movl	%edi, 20(%rcx,%rsi,8)
	movl	(%r15), %edi
	movl	%edi, 28(%rcx,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rcx,%rsi,8), %rcx
	addq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %esi
	movl	%esi, (%rcx,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mlx4_en_set_cq_moder
	testl	%eax, %eax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mlx4_en_arm_cq
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax,%r13), %eax
	movq	48(%rbx), %rcx
	movq	-192(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movslq	16(%rbx), %rax
	cmpq	%rax, %rdx
	movq	%rbx, %r13
	jl	LBB0_5
## %bb.24:
	movq	%rdx, -192(%rbp)                ## 8-byte Spill
	movq	-216(%rbp), %rbx                ## 8-byte Reload
	movq	-208(%rbp), %r14                ## 8-byte Reload
	movq	_DRV@GOTPCREL(%rip), %r12
LBB0_25:
	movl	(%r12), %edi
	movq	24(%r13), %rcx
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_en_dbg
	movq	%r13, %rdi
	callq	_mlx4_en_get_qp
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_en_err
	jmp	LBB0_10
LBB0_27:
	movq	8(%r14), %rax
	movq	24(%r13), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%r13, %rdi
	callq	_mlx4_en_config_rss_steer
	testl	%eax, %eax
	je	LBB0_30
## %bb.28:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_en_err
	jmp	LBB0_29
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %r13
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_en_err
	movl	%ebx, %r15d
	jmp	LBB0_10
LBB0_22:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_en_err
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mlx4_en_deactivate_cq
	movq	%rbx, %r13
	movl	%r14d, %r15d
	jmp	LBB0_10
LBB0_30:
	movq	%r13, %rdi
	callq	_mlx4_en_create_drop_qp
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_41
## %bb.31:
	cmpl	$0, 32(%r13)
	jle	LBB0_32
## %bb.33:
	movq	%r14, -208(%rbp)                ## 8-byte Spill
	movq	%rbx, -216(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_34
LBB0_49:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movslq	32(%r13), %rax
	cmpq	%rax, %rdx
	movq	_DRV@GOTPCREL(%rip), %r12
	jge	LBB0_50
LBB0_34:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_48 Depth 2
	movq	%r13, %rbx
	movq	64(%r13), %rax
	movq	%rdx, %r14
	shlq	$4, %r14
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	leaq	(%rax,%r14), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mlx4_en_activate_cq
	testl	%eax, %eax
	jne	LBB0_35
## %bb.42:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%rbx, %rdi
	movq	%r13, -200(%rbp)                ## 8-byte Spill
	movq	%r13, %rsi
	callq	_mlx4_en_set_cq_moder
	testl	%eax, %eax
	jne	LBB0_43
## %bb.44:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	leaq	L_.str.9(%rip), %rdx
	movq	-184(%rbp), %r13                ## 8-byte Reload
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_en_dbg
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_be16
	movq	-224(%rbp), %rdx                ## 8-byte Reload
	movq	8(%rdx,%r14), %rcx
	movl	%eax, (%rcx)
	movq	72(%rbx), %r15
	leaq	(%r15,%r14), %r12
	movl	4(%rdx,%r14), %ecx
	movl	%r13d, %eax
	cltd
	idivl	36(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	_mlx4_en_activate_tx_ring
	testl	%eax, %eax
	movq	%rbx, %r13
	jne	LBB0_45
## %bb.46:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r13, %rdi
	movq	-200(%rbp), %rsi                ## 8-byte Reload
	callq	_mlx4_en_arm_cq
	cmpl	$0, (%r12)
	jle	LBB0_49
## %bb.47:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	8(%r15,%r14), %rax
	movq	_STAMP_STRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_48:                                ##   Parent Loop BB0_34 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%edx, %rdx
	movl	$-1, (%rax,%rdx)
	addl	%ecx, %edx
	cmpl	(%r12), %edx
	jl	LBB0_48
	jmp	LBB0_49
LBB0_32:
	xorl	%eax, %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	jmp	LBB0_51
LBB0_35:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_en_err
	jmp	LBB0_36
LBB0_43:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_en_err
	movq	%rbx, %rdi
	movq	-200(%rbp), %rsi                ## 8-byte Reload
	callq	_mlx4_en_deactivate_cq
LBB0_36:
	movq	%rbx, %r13
	jmp	LBB0_37
LBB0_45:
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_en_err
	movq	%r13, %rdi
	movq	-200(%rbp), %rsi                ## 8-byte Reload
	callq	_mlx4_en_deactivate_cq
	jmp	LBB0_37
LBB0_50:
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movq	-216(%rbp), %rbx                ## 8-byte Reload
	movq	-208(%rbp), %r14                ## 8-byte Reload
LBB0_51:
	movl	(%r14), %edi
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	112(%r13), %rdx
	movq	24(%r13), %rsi
	movq	104(%r13), %rax
	movl	12(%rax), %ecx
	movl	8(%rax), %r8d
	movl	(%rax), %r10d
	movl	4(%rax), %r9d
	movl	%r10d, (%rsp)
	callq	_mlx4_SET_PORT_general
	testl	%eax, %eax
	je	LBB0_53
## %bb.52:
	movl	%eax, %r15d
	movq	24(%r13), %rdx
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_en_err
	jmp	LBB0_37
LBB0_53:
	movl	(%r14), %edi
	movq	24(%r13), %rsi
	movl	96(%r13), %edx
	xorl	%ecx, %ecx
	callq	_mlx4_SET_PORT_qpn_calc
	testl	%eax, %eax
	je	LBB0_56
## %bb.54:
	movl	%eax, %r15d
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_55
LBB0_56:
	movq	_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_en_dbg
	movl	(%r14), %edi
	movq	24(%r13), %rsi
	callq	_mlx4_INIT_PORT
	testl	%eax, %eax
	je	LBB0_58
## %bb.57:
	movl	%eax, %r15d
	leaq	L_.str.14(%rip), %rsi
LBB0_55:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_en_err
LBB0_37:
	movq	-184(%rbp), %rax                ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_40
## %bb.38:
	movl	%eax, %r14d
	shlq	$4, %r14
	addq	$-16, %r14
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	72(%r13), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	_mlx4_en_deactivate_tx_ring
	movq	64(%r13), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	_mlx4_en_deactivate_cq
	addq	$-16, %r14
	cmpq	$-16, %r14
	jne	LBB0_39
LBB0_40:
	movq	%r13, %rdi
	callq	_mlx4_en_destroy_drop_qp
LBB0_41:
	movq	%r13, %rdi
	callq	_mlx4_en_release_rss_steer
LBB0_29:
	movq	%r13, %rdi
	callq	_mlx4_en_put_qp
LBB0_10:
	movq	-192(%rbp), %rax                ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	shlq	$4, %rbx
	addq	$-16, %rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_mlx4_en_deactivate_cq
	addq	$-16, %rbx
	cmpq	$-16, %rbx
	jne	LBB0_12
LBB0_13:
	cmpl	$0, 16(%r13)
	jle	LBB0_61
## %bb.14:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	_mlx4_en_deactivate_rx_ring
	incq	%rbx
	movslq	16(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_61:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_64
## %bb.62:
	movl	%r15d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_58:
	leaq	-96(%rbp), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, %esi
	callq	_memset
	movq	24(%r13), %rax
	movq	%rax, -136(%rbp)
	movl	(%r14), %edi
	leaq	92(%r13), %rsi
	movq	24(%r13), %rcx
	movq	_MLX4_PROT_ETH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	88(%r13), %rax
	movq	%rax, (%rsp)
	leaq	-176(%rbp), %rdx
	xorl	%r15d, %r15d
	xorl	%r8d, %r8d
	callq	_mlx4_multicast_attach
	testq	%rax, %rax
	je	LBB0_60
## %bb.59:
	leaq	L_.str.15(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx4_warn
LBB0_60:
	movq	_MLX4_EN_FLAG_PROMISC@GOTPCREL(%rip), %rax
	movq	_MLX4_EN_FLAG_MC_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 40(%r13)
	movl	4(%r14), %edi
	leaq	84(%r13), %rsi
	callq	_queue_work
	movl	(%r14), %edi
	movq	%r13, %rsi
	addq	$80, %rsi
	callq	_mlx4_set_stats_bitmap
	movl	$1, (%r13)
	movq	%rbx, %rdi
	callq	_netif_tx_start_all_queues
	movq	%rbx, %rdi
	callq	_netif_device_attach
	jmp	LBB0_61
LBB0_64:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV,4,2                        ## @DRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start port called while port already up\n"

	.comm	_MAX_NUM_OF_FS_RULES,4,2        ## @MAX_NUM_OF_FS_RULES
L_.str.1:                               ## @.str.1
	.asciz	"Rx buf size:%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to activate RX rings\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed activating Rx CQ\n"

	.comm	_MLX4_CQE_OWNER_MASK,4,2        ## @MLX4_CQE_OWNER_MASK
L_.str.4:                               ## @.str.4
	.asciz	"Failed setting cq moderation parameters"

L_.str.5:                               ## @.str.5
	.asciz	"Getting qp number for port %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed getting eth qp\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed configuring rss steering\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed allocating Tx CQ\n"

L_.str.9:                               ## @.str.9
	.asciz	"Resetting index of collapsed CQ:%d to -1\n"

L_.str.10:                              ## @.str.10
	.asciz	"Failed allocating Tx ring\n"

	.comm	_STAMP_STRIDE,8,3               ## @STAMP_STRIDE
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
L_.str.11:                              ## @.str.11
	.asciz	"Failed setting port general configurations for port %d, with error %d\n"

L_.str.12:                              ## @.str.12
	.asciz	"Failed setting default qp numbers\n"

	.comm	_HW,4,2                         ## @HW
L_.str.13:                              ## @.str.13
	.asciz	"Initializing port\n"

L_.str.14:                              ## @.str.14
	.asciz	"Failed Initializing port\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MLX4_PROT_ETH,4,2              ## @MLX4_PROT_ETH
L_.str.15:                              ## @.str.15
	.asciz	"Failed Attaching Broadcast\n"

	.comm	_MLX4_EN_FLAG_PROMISC,4,2       ## @MLX4_EN_FLAG_PROMISC
	.comm	_MLX4_EN_FLAG_MC_PROMISC,4,2    ## @MLX4_EN_FLAG_MC_PROMISC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_start_port             ; -- Begin function mlx4_en_start_port
	.p2align	2
_mlx4_en_start_port:                    ; @mlx4_en_start_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	bl	_netdev_priv
	mov	x19, x0
	ldr	x22, [x0, #136]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #128]
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
	ldr	w8, [x0]
Lloh3:
	adrp	x28, _DRV@GOTPAGE
Lloh4:
	ldr	x28, [x28, _DRV@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w0, [x28]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_en_dbg
LBB0_2:
	mov	w23, #0
	b	LBB0_54
LBB0_3:
	add	x0, x19, #132
	bl	_INIT_LIST_HEAD
	add	x0, x19, #128
	bl	_INIT_LIST_HEAD
	add	x0, x19, #124
	bl	_INIT_LIST_HEAD
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x8, _MAX_NUM_OF_FS_RULES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_NUM_OF_FS_RULES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w0, [x21]
	ldr	w1, [x19, #120]
	bl	_min
	str	w0, [x21]
	mov	x0, x21
	bl	_mlx4_en_calc_rx_buf
	ldr	w0, [x28]
	ldr	x8, [x19, #112]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_en_dbg
	mov	x0, x19
	bl	_mlx4_en_activate_rx_rings
	cbz	w0, LBB0_5
; %bb.4:
	mov	x23, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_en_err
	b	LBB0_54
LBB0_5:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x20, #0
Lloh14:
	adrp	x25, _MLX4_CQE_OWNER_MASK@GOTPAGE
Lloh15:
	ldr	x25, [x25, _MLX4_CQE_OWNER_MASK@GOTPAGEOFF]
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x26, [x19, #56]
	add	x24, x26, x20, lsl #4
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	bl	_mlx4_en_activate_cq
	cbnz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x26, x20, lsl #4
	ldr	x9, [x9, #8]
	add	x9, x9, #4
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x25]
	str	w10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_mlx4_en_set_cq_moder
	cbnz	w0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_mlx4_en_arm_cq
	add	x8, x26, x20, lsl #4
	ldr	w8, [x8, #4]
	ldr	x9, [x19, #48]
	str	w8, [x9, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x8, [x19, #16]
	cmp	x20, x8
	b.lt	LBB0_7
	b	LBB0_14
LBB0_13:
	mov	w20, #0
LBB0_14:
	ldr	w0, [x28]
	ldr	x8, [x19, #24]
	str	x8, [sp]
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_en_dbg
	mov	x0, x19
	bl	_mlx4_en_get_qp
	cbz	w0, LBB0_16
; %bb.15:
	mov	x23, x0
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_16:
	ldr	x8, [x22, #8]
	ldr	x9, [x19, #24]
	str	xzr, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_mlx4_en_config_rss_steer
	cbz	w0, LBB0_21
; %bb.17:
	mov	x23, x0
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_en_err
	b	LBB0_47
LBB0_18:
	mov	x23, x0
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_en_err
	b	LBB0_48
LBB0_20:
	mov	x23, x0
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_en_err
	mov	x0, x19
	mov	x1, x24
	bl	_mlx4_en_deactivate_cq
	b	LBB0_48
LBB0_21:
	mov	x0, x19
	bl	_mlx4_en_create_drop_qp
	mov	x23, x0
	cbnz	w0, LBB0_46
; %bb.22:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.23:
	mov	x24, #0
	mov	w25, #-1
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	add	x24, x24, #1
	ldrsw	x8, [x19, #32]
	cmp	x24, x8
	b.ge	LBB0_32
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
	ldr	x27, [x19, #64]
	add	x26, x27, x24, lsl #4
	mov	x0, x19
	mov	x1, x26
	mov	x2, x24
	bl	_mlx4_en_activate_cq
	cbnz	w0, LBB0_36
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_mlx4_en_set_cq_moder
	cbnz	w0, LBB0_37
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [x28]
	mov	x8, x24
	str	x8, [sp]
	mov	x1, x19
Lloh26:
	adrp	x2, l_.str.9@PAGE
Lloh27:
	add	x2, x2, l_.str.9@PAGEOFF
	bl	_en_dbg
	mov	w0, #65535
	bl	_cpu_to_be16
	lsl	x8, x24, #4
	add	x9, x27, x8
	ldr	x10, [x9, #8]
	str	w0, [x10]
	mov	x10, x24
	ldr	x24, [x19, #72]
	add	x27, x24, x8
	ldr	w2, [x9, #4]
	ldr	w8, [x19, #36]
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	sdiv	w3, w10, w8
	mov	x0, x19
	mov	x1, x27
	bl	_mlx4_en_activate_tx_ring
	cbnz	w0, LBB0_38
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_mlx4_en_arm_cq
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w8, #0
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x9, x24, x9, lsl #4
	ldr	x9, [x9, #8]
Lloh28:
	adrp	x10, _STAMP_STRIDE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _STAMP_STRIDE@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
LBB0_30:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w25, [x9, w8, sxtw]
	ldr	w11, [x27]
	add	w8, w8, w10
	cmp	w8, w11
	b.lt	LBB0_30
	b	LBB0_24
LBB0_31:
	mov	w24, #0
LBB0_32:
	ldr	w0, [x22]
	ldr	x1, [x19, #24]
Lloh31:
	adrp	x8, _ETH_FCS_LEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldp	x10, x9, [x19, #104]
	add	x2, x8, x9
	ldp	w4, w3, [x10, #8]
	ldp	w6, w5, [x10]
	bl	_mlx4_SET_PORT_general
	cbz	w0, LBB0_34
; %bb.33:
	mov	x23, x0
	ldr	x8, [x19, #24]
	stp	x8, x23, [sp]
Lloh34:
	adrp	x1, l_.str.11@PAGE
Lloh35:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_41
LBB0_34:
	ldr	w0, [x22]
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #96]
	mov	w3, #0
	bl	_mlx4_SET_PORT_qpn_calc
	cbz	w0, LBB0_39
; %bb.35:
	mov	x23, x0
Lloh36:
	adrp	x1, l_.str.12@PAGE
Lloh37:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_41
LBB0_36:
	mov	x23, x0
Lloh38:
	adrp	x1, l_.str.8@PAGE
Lloh39:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_41
LBB0_37:
	mov	x23, x0
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_en_err
	mov	x0, x19
	mov	x1, x26
	bl	_mlx4_en_deactivate_cq
	b	LBB0_42
LBB0_38:
	mov	x23, x0
Lloh42:
	adrp	x1, l_.str.10@PAGE
Lloh43:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_en_err
	mov	x0, x19
	mov	x1, x26
	bl	_mlx4_en_deactivate_cq
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_42
LBB0_39:
Lloh44:
	adrp	x8, _HW@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HW@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x2, l_.str.13@PAGE
Lloh48:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x1, x19
	bl	_en_dbg
	ldr	w0, [x22]
	ldr	x1, [x19, #24]
	bl	_mlx4_INIT_PORT
	cbz	w0, LBB0_56
; %bb.40:
	mov	x23, x0
Lloh49:
	adrp	x1, l_.str.14@PAGE
Lloh50:
	add	x1, x1, l_.str.14@PAGEOFF
LBB0_41:
	mov	x0, x19
	bl	_en_err
LBB0_42:
	cbz	w24, LBB0_45
; %bb.43:
	mov	w8, w24
	lsl	x8, x8, #4
	sub	x21, x8, #16
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #72]
	add	x1, x8, x21
	mov	x0, x19
	bl	_mlx4_en_deactivate_tx_ring
	ldr	x8, [x19, #64]
	add	x1, x8, x21
	mov	x0, x19
	bl	_mlx4_en_deactivate_cq
	sub	x21, x21, #16
	cmn	x21, #16
	b.ne	LBB0_44
LBB0_45:
	mov	x0, x19
	bl	_mlx4_en_destroy_drop_qp
LBB0_46:
	mov	x0, x19
	bl	_mlx4_en_release_rss_steer
LBB0_47:
	mov	x0, x19
	bl	_mlx4_en_put_qp
LBB0_48:
	cbz	w20, LBB0_51
; %bb.49:
	mov	w8, w20
	lsl	x8, x8, #4
	sub	x20, x8, #16
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x1, x8, x20
	mov	x0, x19
	bl	_mlx4_en_deactivate_cq
	sub	x20, x20, #16
	cmn	x20, #16
	b.ne	LBB0_50
LBB0_51:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_54
; %bb.52:
	mov	x20, #0
	mov	x21, #0
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	add	x1, x8, x20
	mov	x0, x19
	bl	_mlx4_en_deactivate_rx_ring
	add	x21, x21, #1
	ldrsw	x8, [x19, #16]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_53
LBB0_54:
	ldur	x8, [x29, #-96]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_59
; %bb.55:
	mov	x0, x23
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_56:
	add	x8, sp, #32
	add	x0, x8, #80
Lloh54:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	w1, #255
	bl	_memset
	ldr	x8, [x19, #24]
	str	x8, [sp, #72]
	ldr	w0, [x22]
	add	x1, x19, #92
	ldr	x3, [x19, #24]
Lloh57:
	adrp	x8, _MLX4_PROT_ETH@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MLX4_PROT_ETH@GOTPAGEOFF]
Lloh59:
	ldr	w5, [x8]
	add	x6, x19, #88
	add	x2, sp, #32
	mov	w4, #0
	bl	_mlx4_multicast_attach
	cbz	x0, LBB0_58
; %bb.57:
Lloh60:
	adrp	x1, l_.str.15@PAGE
Lloh61:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x22
	bl	_mlx4_warn
LBB0_58:
Lloh62:
	adrp	x8, _MLX4_EN_FLAG_PROMISC@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MLX4_EN_FLAG_PROMISC@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGE
Lloh66:
	ldr	x9, [x9, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #40]
	bic	w8, w9, w8
	str	w8, [x19, #40]
	ldr	w0, [x22, #4]
	add	x1, x19, #84
	bl	_queue_work
	ldr	w0, [x22]
	add	x1, x19, #80
	bl	_mlx4_set_stats_bitmap
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	bl	_netif_tx_start_all_queues
	mov	x0, x21
	bl	_netif_device_attach
	b	LBB0_2
LBB0_59:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV,4,2                        ; @DRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start port called while port already up\n"

	.comm	_MAX_NUM_OF_FS_RULES,4,2        ; @MAX_NUM_OF_FS_RULES
l_.str.1:                               ; @.str.1
	.asciz	"Rx buf size:%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to activate RX rings\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed activating Rx CQ\n"

	.comm	_MLX4_CQE_OWNER_MASK,4,2        ; @MLX4_CQE_OWNER_MASK
l_.str.4:                               ; @.str.4
	.asciz	"Failed setting cq moderation parameters"

l_.str.5:                               ; @.str.5
	.asciz	"Getting qp number for port %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed getting eth qp\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed configuring rss steering\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed allocating Tx CQ\n"

l_.str.9:                               ; @.str.9
	.asciz	"Resetting index of collapsed CQ:%d to -1\n"

l_.str.10:                              ; @.str.10
	.asciz	"Failed allocating Tx ring\n"

	.comm	_STAMP_STRIDE,8,3               ; @STAMP_STRIDE
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
l_.str.11:                              ; @.str.11
	.asciz	"Failed setting port general configurations for port %d, with error %d\n"

l_.str.12:                              ; @.str.12
	.asciz	"Failed setting default qp numbers\n"

	.comm	_HW,4,2                         ; @HW
l_.str.13:                              ; @.str.13
	.asciz	"Initializing port\n"

l_.str.14:                              ; @.str.14
	.asciz	"Failed Initializing port\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MLX4_PROT_ETH,4,2              ; @MLX4_PROT_ETH
l_.str.15:                              ; @.str.15
	.asciz	"Failed Attaching Broadcast\n"

	.comm	_MLX4_EN_FLAG_PROMISC,4,2       ; @MLX4_EN_FLAG_PROMISC
	.comm	_MLX4_EN_FLAG_MC_PROMISC,4,2    ; @MLX4_EN_FLAG_MC_PROMISC
.subsections_via_symbols
