	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_setup_netdev
_netxen_setup_netdev:                   ## @netxen_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	48(%rdi), %r14
	movq	$0, 40(%rdi)
	movl	32(%rdi), %edi
	callq	_NX_IS_REVISION_P3
	testq	%rax, %rax
	movl	$16, %eax
	movl	$38, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, (%r15)
	movq	_netxen_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%rbx)
	movl	32(%rbx), %esi
	movq	%rbx, %rdi
	callq	_netxen_nic_change_mtu
	movq	_netxen_nic_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	32(%r15), %edi
	callq	_NX_IS_REVISION_P3
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	4(%rbx), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_3
LBB0_1:
	movl	4(%rbx), %eax
LBB0_3:
	movl	8(%rbx), %ecx
	orl	%eax, %ecx
	movl	%ecx, 8(%rbx)
	cmpq	$0, 24(%r15)
	je	LBB0_5
## %bb.4:
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 12(%rbx)
	orl	%edx, %ecx
	movl	%ecx, 8(%rbx)
LBB0_5:
	movl	4(%r15), %ecx
	movq	_NX_FW_CAPABILITY_FVLANTX@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 4(%rbx)
LBB0_7:
	movq	_NX_FW_CAPABILITY_HW_LRO@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.8:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
LBB0_9:
	orl	%eax, 12(%rbx)
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	leaq	8(%r15), %rdi
	movq	_netxen_tx_timeout_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r15, %rdi
	callq	_netxen_read_mac_addr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_11:
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_register_netdev
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_netxen_netdev_ops,4,2          ## @netxen_netdev_ops
	.comm	_HZ,4,2                         ## @HZ
	.comm	_netxen_nic_ethtool_ops,4,2     ## @netxen_nic_ethtool_ops
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_NX_FW_CAPABILITY_FVLANTX,4,2   ## @NX_FW_CAPABILITY_FVLANTX
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NX_FW_CAPABILITY_HW_LRO,4,2    ## @NX_FW_CAPABILITY_HW_LRO
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_netxen_tx_timeout_task,4,2     ## @netxen_tx_timeout_task
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read mac addr\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to register net device\n"

	.no_dead_strip	_netxen_setup_netdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_setup_netdev
_netxen_setup_netdev:                   ; @netxen_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	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #48]
	str	xzr, [x0, #40]
	ldr	w0, [x0, #32]
	bl	_NX_IS_REVISION_P3
	cmp	x0, #0
	mov	w8, #38
	mov	w9, #16
	csel	w8, w9, w8, eq
	str	w8, [x21]
Lloh0:
	adrp	x8, _netxen_netdev_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _netxen_netdev_ops@GOTPAGEOFF]
	str	x8, [x20, #40]
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	str	w8, [x20]
	ldr	w1, [x20, #32]
	mov	x0, x20
	bl	_netxen_nic_change_mtu
Lloh5:
	adrp	x8, _netxen_nic_ethtool_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _netxen_nic_ethtool_ops@GOTPAGEOFF]
	str	x8, [x20, #24]
Lloh7:
	adrp	x8, _NETIF_F_SG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETIF_F_SG@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _NETIF_F_IP_CSUM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #4]
	ldr	w0, [x21, #32]
	bl	_NX_IS_REVISION_P3
	cbz	x0, LBB0_2
; %bb.1:
Lloh19:
	adrp	x8, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh21:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #4]
	orr	w8, w8, w9
	str	w8, [x20, #4]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20, #4]
LBB0_3:
	ldr	w9, [x20, #8]
	orr	w9, w9, w8
	str	w9, [x20, #8]
	ldr	x10, [x21, #24]
	cbz	x10, LBB0_5
; %bb.4:
Lloh25:
	adrp	x10, _NETIF_F_HIGHDMA@GOTPAGE
Lloh26:
	ldr	x10, [x10, _NETIF_F_HIGHDMA@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	ldr	w11, [x20, #12]
	orr	w11, w11, w10
	orr	w9, w10, w9
	stp	w9, w11, [x20, #8]
LBB0_5:
	ldr	w9, [x21, #4]
Lloh28:
	adrp	x10, _NX_FW_CAPABILITY_FVLANTX@GOTPAGE
Lloh29:
	ldr	x10, [x10, _NX_FW_CAPABILITY_FVLANTX@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
Lloh31:
	adrp	x10, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh32:
	ldr	x10, [x10, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x20, #4]
LBB0_7:
Lloh34:
	adrp	x10, _NX_FW_CAPABILITY_HW_LRO@GOTPAGE
Lloh35:
	ldr	x10, [x10, _NX_FW_CAPABILITY_HW_LRO@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
Lloh37:
	adrp	x9, _NETIF_F_LRO@GOTPAGE
Lloh38:
	ldr	x9, [x9, _NETIF_F_LRO@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #4]
LBB0_9:
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	ldr	x9, [x21, #16]
	ldr	w9, [x9]
	stp	w8, w9, [x20, #12]
	add	x0, x21, #8
Lloh40:
	adrp	x8, _netxen_tx_timeout_task@GOTPAGE
Lloh41:
	ldr	x8, [x8, _netxen_tx_timeout_task@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x21
	bl	_netxen_read_mac_addr
	cbz	x0, LBB0_11
; %bb.10:
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_11:
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_register_netdev
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.12:
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_netxen_netdev_ops,4,2          ; @netxen_netdev_ops
	.comm	_HZ,4,2                         ; @HZ
	.comm	_netxen_nic_ethtool_ops,4,2     ; @netxen_nic_ethtool_ops
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_NX_FW_CAPABILITY_FVLANTX,4,2   ; @NX_FW_CAPABILITY_FVLANTX
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NX_FW_CAPABILITY_HW_LRO,4,2    ; @NX_FW_CAPABILITY_HW_LRO
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_netxen_tx_timeout_task,4,2     ; @netxen_tx_timeout_task
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read mac addr\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to register net device\n"

	.no_dead_strip	_netxen_setup_netdev
.subsections_via_symbols
