	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_setup_netdev            ## -- Begin function qlcnic_setup_netdev
	.p2align	4, 0x90
_qlcnic_setup_netdev:                   ## @qlcnic_setup_netdev
	.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
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	24(%rdi), %r14
	movl	$1, (%rdi)
	movq	$0, 8(%rax)
	movq	_QLCNIC_MAX_MC_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_qlcnic_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rsi)
	movq	_QLCNIC_WATCHDOG_TIMEOUTVALUE@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	movl	%ecx, (%rsi)
	movl	16(%rsi), %esi
	movq	%rbx, %rdi
	callq	_qlcnic_change_mtu
	movq	%r15, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_qlcnic_ethtool_ops@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_qlcnic_sriov_vf_ethtool_ops@GOTPCREL(%rip), %rsi
LBB0_3:
	movq	%rbx, %rdi
	callq	_SET_ETHTOOL_OPS
	movq	_qlcnic_ethtool_ops_ext@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_set_ethtool_ops_ext
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_HW_VLAN_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ecx, %eax
	orl	%eax, 4(%rbx)
	orl	%ecx, 8(%rbx)
	movq	%r15, %rdi
	callq	_QLCNIC_IS_TSO_CAPABLE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 4(%rbx)
	orl	%ecx, 8(%rbx)
LBB0_5:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	orl	%eax, 8(%rbx)
LBB0_7:
	movq	%r15, %rdi
	callq	_qlcnic_vlan_tx_check
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_NETIF_F_HW_VLAN_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_9:
	movq	%r15, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_NETIF_F_HW_VLAN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_11:
	movq	16(%r15), %rax
	movq	_QLCNIC_FW_CAPABILITY_HW_LRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_13:
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_register_netdev
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_MAX_MC_COUNT,4,2        ## @QLCNIC_MAX_MC_COUNT
	.comm	_qlcnic_netdev_ops,4,2          ## @qlcnic_netdev_ops
	.comm	_QLCNIC_WATCHDOG_TIMEOUTVALUE,4,2 ## @QLCNIC_WATCHDOG_TIMEOUTVALUE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_qlcnic_sriov_vf_ethtool_ops,4,2 ## @qlcnic_sriov_vf_ethtool_ops
	.comm	_qlcnic_ethtool_ops,4,2         ## @qlcnic_ethtool_ops
	.comm	_qlcnic_ethtool_ops_ext,4,2     ## @qlcnic_ethtool_ops_ext
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.comm	_NETIF_F_HW_VLAN_RX,4,2         ## @NETIF_F_HW_VLAN_RX
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_NETIF_F_HW_VLAN_TX,4,2         ## @NETIF_F_HW_VLAN_TX
	.comm	_NETIF_F_HW_VLAN_FILTER,4,2     ## @NETIF_F_HW_VLAN_FILTER
	.comm	_QLCNIC_FW_CAPABILITY_HW_LRO,4,2 ## @QLCNIC_FW_CAPABILITY_HW_LRO
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register net device\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_setup_netdev            ; -- Begin function qlcnic_setup_netdev
	.p2align	2
_qlcnic_setup_netdev:                   ; @qlcnic_setup_netdev
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	w8, #1
	str	w8, [x0]
	ldp	x8, x19, [x0, #16]
	str	xzr, [x8, #8]
Lloh0:
	adrp	x9, _QLCNIC_MAX_MC_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_MAX_MC_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #4]
Lloh3:
	adrp	x8, _qlcnic_netdev_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qlcnic_netdev_ops@GOTPAGEOFF]
	str	x8, [x1, #24]
Lloh5:
	adrp	x8, _QLCNIC_WATCHDOG_TIMEOUTVALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_WATCHDOG_TIMEOUTVALUE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _HZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	mul	w8, w9, w8
	str	w8, [x1]
	ldr	w1, [x1, #16]
	mov	x0, x20
	bl	_qlcnic_change_mtu
	mov	x0, x21
	bl	_qlcnic_sriov_vf_check
Lloh11:
	adrp	x8, _qlcnic_sriov_vf_ethtool_ops@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qlcnic_sriov_vf_ethtool_ops@GOTPAGEOFF]
Lloh13:
	adrp	x9, _qlcnic_ethtool_ops@GOTPAGE
Lloh14:
	ldr	x9, [x9, _qlcnic_ethtool_ops@GOTPAGEOFF]
	cmp	x0, #0
	csel	x1, x9, x8, eq
	mov	x0, x20
	bl	_SET_ETHTOOL_OPS
Lloh15:
	adrp	x1, _qlcnic_ethtool_ops_ext@GOTPAGE
Lloh16:
	ldr	x1, [x1, _qlcnic_ethtool_ops_ext@GOTPAGEOFF]
	mov	x0, x20
	bl	_set_ethtool_ops_ext
Lloh17:
	adrp	x8, _NETIF_F_SG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETIF_F_SG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _NETIF_F_IP_CSUM@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _NETIF_F_HW_VLAN_RX@GOTPAGE
Lloh30:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_RX@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w9, w8, w9
	ldp	w10, w11, [x20, #4]
	orr	w9, w9, w10
	orr	w8, w11, w8
	stp	w9, w8, [x20, #4]
	mov	x0, x21
	bl	_QLCNIC_IS_TSO_CAPABLE
	cbz	x0, LBB0_2
; %bb.1:
Lloh32:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh36:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldur	d0, [x20, #4]
	dup.2s	v1, w8
	orr.8b	v0, v0, v1
	stur	d0, [x20, #4]
LBB0_2:
	cbz	w22, LBB0_4
; %bb.3:
Lloh38:
	adrp	x8, _NETIF_F_HIGHDMA@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NETIF_F_HIGHDMA@GOTPAGEOFF]
	ldur	d0, [x20, #4]
	ld1r.2s	{ v1 }, [x8]
	orr.8b	v0, v0, v1
	stur	d0, [x20, #4]
LBB0_4:
	mov	x0, x21
	bl	_qlcnic_vlan_tx_check
	cbz	x0, LBB0_6
; %bb.5:
Lloh40:
	adrp	x8, _NETIF_F_HW_VLAN_TX@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_TX@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_6:
	mov	x0, x21
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_8
; %bb.7:
Lloh43:
	adrp	x8, _NETIF_F_HW_VLAN_FILTER@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_FILTER@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_8:
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _QLCNIC_FW_CAPABILITY_HW_LRO@GOTPAGE
Lloh47:
	ldr	x9, [x9, _QLCNIC_FW_CAPABILITY_HW_LRO@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh49:
	adrp	x8, _NETIF_F_LRO@GOTPAGE
Lloh50:
	ldr	x8, [x8, _NETIF_F_LRO@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_10:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	str	w8, [x20, #12]
	mov	x0, x20
	bl	_register_netdev
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.11:
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_MAX_MC_COUNT,4,2        ; @QLCNIC_MAX_MC_COUNT
	.comm	_qlcnic_netdev_ops,4,2          ; @qlcnic_netdev_ops
	.comm	_QLCNIC_WATCHDOG_TIMEOUTVALUE,4,2 ; @QLCNIC_WATCHDOG_TIMEOUTVALUE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_qlcnic_sriov_vf_ethtool_ops,4,2 ; @qlcnic_sriov_vf_ethtool_ops
	.comm	_qlcnic_ethtool_ops,4,2         ; @qlcnic_ethtool_ops
	.comm	_qlcnic_ethtool_ops_ext,4,2     ; @qlcnic_ethtool_ops_ext
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.comm	_NETIF_F_HW_VLAN_RX,4,2         ; @NETIF_F_HW_VLAN_RX
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_NETIF_F_HW_VLAN_TX,4,2         ; @NETIF_F_HW_VLAN_TX
	.comm	_NETIF_F_HW_VLAN_FILTER,4,2     ; @NETIF_F_HW_VLAN_FILTER
	.comm	_QLCNIC_FW_CAPABILITY_HW_LRO,4,2 ; @QLCNIC_FW_CAPABILITY_HW_LRO
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register net device\n"

.subsections_via_symbols
