	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_init
_netdev_init:                           ## @netdev_init
	.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	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	8(%rax), %r14d
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_dpaa2_eth_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_dpaa2_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	%rbx, %rdi
	callq	_set_mac_addr
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_eth_broadcast_addr
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	movq	%r13, %rcx
	callq	_dpni_add_mac_addr
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_3:
	movq	_DPAA2_ETH_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movq	_DPAA2_ETH_MFL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_dpni_set_max_frame_length
	testl	%eax, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, %rdi
	callq	_dpaa2_eth_queue_count
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_netif_set_real_num_tx_queues
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_netif_set_real_num_rx_queues
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
LBB0_10:
	callq	_dev_err
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.12:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_DPNI_OPT_NO_MAC_FILTER@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	andl	(%rax), %esi
	movq	_IFF_UNICAST_FLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	xorl	%r12d, %r12d
	cmpl	$1, %esi
	movl	$0, %edx
	sbbl	%edx, %edx
	orl	%ecx, %edx
	testl	%esi, %esi
	cmovnel	%r12d, %eax
	movq	_IFF_LIVE_ADDR_CHANGE@GOTPCREL(%rip), %rcx
	movl	8(%r15), %esi
	orl	(%rcx), %esi
	orl	%eax, %esi
	andl	%edx, %esi
	movl	%esi, 8(%r15)
	movq	_NETIF_F_RXCSUM@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_SG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_LLTX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	%ecx, 4(%r15)
	jmp	LBB0_11
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_dpaa2_eth_ops,4,2              ## @dpaa2_eth_ops
	.comm	_dpaa2_ethtool_ops,4,2          ## @dpaa2_ethtool_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dpni_add_mac_addr() failed\n"

	.comm	_DPAA2_ETH_MAX_MTU,4,2          ## @DPAA2_ETH_MAX_MTU
	.comm	_DPAA2_ETH_MFL,4,2              ## @DPAA2_ETH_MFL
L_.str.1:                               ## @.str.1
	.asciz	"dpni_set_max_frame_length() failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"netif_set_real_num_tx_queues() failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"netif_set_real_num_rx_queues() failed\n"

	.comm	_IFF_LIVE_ADDR_CHANGE,4,2       ## @IFF_LIVE_ADDR_CHANGE
	.comm	_DPNI_OPT_NO_MAC_FILTER,4,2     ## @DPNI_OPT_NO_MAC_FILTER
	.comm	_IFF_UNICAST_FLT,4,2            ## @IFF_UNICAST_FLT
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.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_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_NETIF_F_LLTX,4,2               ## @NETIF_F_LLTX
	.no_dead_strip	_netdev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_init
_netdev_init:                           ; @netdev_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x20, [x0, #32]
	bl	_netdev_priv
	mov	x22, x0
	ldr	w24, [x0, #8]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x8, _dpaa2_eth_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dpaa2_eth_ops@GOTPAGEOFF]
Lloh10:
	adrp	x9, _dpaa2_ethtool_ops@GOTPAGE
Lloh11:
	ldr	x9, [x9, _dpaa2_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
	bl	_set_mac_addr
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.1:
	mov	x0, x23
	bl	_eth_broadcast_addr
	ldp	w2, w0, [x22]
	mov	w1, #0
	mov	x3, x23
	bl	_dpni_add_mac_addr
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_3:
Lloh14:
	adrp	x8, _DPAA2_ETH_MAX_MTU@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DPAA2_ETH_MAX_MTU@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldp	w2, w0, [x22]
Lloh17:
	adrp	x8, _DPAA2_ETH_MFL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DPAA2_ETH_MFL@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	w1, #0
	bl	_dpni_set_max_frame_length
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
	mov	x0, x22
	bl	_dpaa2_eth_queue_count
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_netif_set_real_num_tx_queues
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	bl	_netif_set_real_num_rx_queues
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.8:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_dev_err
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh29:
	adrp	x8, _IFF_LIVE_ADDR_CHANGE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IFF_LIVE_ADDR_CHANGE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _DPNI_OPT_NO_MAC_FILTER@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DPNI_OPT_NO_MAC_FILTER@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w24
Lloh35:
	adrp	x9, _IFF_UNICAST_FLT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IFF_UNICAST_FLT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w8, w10, w8
	mov	w10, #-1
	csinv	w10, w10, w9, eq
	csel	w9, w9, wzr, eq
	orr	w8, w8, w9
	and	w8, w8, w10
Lloh38:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh39:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh40:
	ldr	w8, [x9]
Lloh41:
	adrp	x9, _NETIF_F_IP_CSUM@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh44:
	adrp	x9, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh45:
	ldr	x9, [x9, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh47:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh48:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh50:
	adrp	x9, _NETIF_F_HIGHDMA@GOTPAGE
Lloh51:
	ldr	x9, [x9, _NETIF_F_HIGHDMA@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh53:
	adrp	x9, _NETIF_F_LLTX@GOTPAGE
Lloh54:
	ldr	x9, [x9, _NETIF_F_LLTX@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w8, w8, [x19]
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_dpaa2_eth_ops,4,2              ; @dpaa2_eth_ops
	.comm	_dpaa2_ethtool_ops,4,2          ; @dpaa2_ethtool_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dpni_add_mac_addr() failed\n"

	.comm	_DPAA2_ETH_MAX_MTU,4,2          ; @DPAA2_ETH_MAX_MTU
	.comm	_DPAA2_ETH_MFL,4,2              ; @DPAA2_ETH_MFL
l_.str.1:                               ; @.str.1
	.asciz	"dpni_set_max_frame_length() failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"netif_set_real_num_tx_queues() failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"netif_set_real_num_rx_queues() failed\n"

	.comm	_IFF_LIVE_ADDR_CHANGE,4,2       ; @IFF_LIVE_ADDR_CHANGE
	.comm	_DPNI_OPT_NO_MAC_FILTER,4,2     ; @DPNI_OPT_NO_MAC_FILTER
	.comm	_IFF_UNICAST_FLT,4,2            ; @IFF_UNICAST_FLT
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.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_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_NETIF_F_LLTX,4,2               ; @NETIF_F_LLTX
	.no_dead_strip	_netdev_init
.subsections_via_symbols
