	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_cfg_netdev
_ice_cfg_netdev:                        ## @ice_cfg_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	40(%rdi), %r12
	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, %r15
	movl	32(%r14), %edx
	movl	36(%r14), %esi
	movl	$8, %edi
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%r14, (%rax)
	movq	%rbx, %rdi
	callq	_ice_set_netdev_features
	movq	%rbx, %rdi
	callq	_ice_set_ops
	movq	(%r14), %rax
	movq	_ICE_VSI_PF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_SET_NETDEV_DEV
	movq	24(%r14), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_ether_addr_copy
	movq	24(%rbx), %rdi
	movq	%r15, %rsi
	callq	_ether_addr_copy
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	callq	_ether_addr_copy
LBB0_4:
	movq	_IFF_UNICAST_FLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movl	16(%r14), %esi
	movq	%r14, %rdi
	callq	_ice_vsi_cfg_netdev_tc
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%rbx)
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ICE_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	8(%r14), %rdi
	callq	_register_netdev
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	8(%r14), %rdi
	callq	_netif_carrier_off
	movq	8(%r14), %rdi
	callq	_netif_tx_stop_all_queues
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ICE_VSI_PF,8,3                 ## @ICE_VSI_PF
	.comm	_IFF_UNICAST_FLT,4,2            ## @IFF_UNICAST_FLT
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETH_MIN_MTU,4,2                ## @ETH_MIN_MTU
	.comm	_ICE_MAX_MTU,4,2                ## @ICE_MAX_MTU
	.no_dead_strip	_ice_cfg_netdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_cfg_netdev
_ice_cfg_netdev:                        ; @ice_cfg_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
	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, #-40]
	ldr	x22, [x0, #40]
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	x21, x9, x8
	mov	sp, x21
	ldp	w2, w1, [x0, #32]
	mov	w0, #8
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #8]
	bl	_netdev_priv
	str	x19, [x0]
	mov	x0, x20
	bl	_ice_set_netdev_features
	mov	x0, x20
	bl	_ice_set_ops
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _ICE_VSI_PF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ICE_VSI_PF@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x1, [x22]
	mov	x0, x20
	bl	_SET_NETDEV_DEV
	ldr	x8, [x19, #24]
	ldr	x1, [x8]
	mov	x0, x21
	bl	_ether_addr_copy
	ldr	x0, [x20, #24]
	mov	x1, x21
	bl	_ether_addr_copy
	ldr	x0, [x20, #16]
	mov	x1, x21
	bl	_ether_addr_copy
LBB0_3:
Lloh11:
	adrp	x8, _IFF_UNICAST_FLT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFF_UNICAST_FLT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_ice_vsi_cfg_netdev_tc
Lloh14:
	adrp	x8, _HZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	str	w8, [x20]
Lloh17:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _ICE_MAX_MTU@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ICE_MAX_MTU@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
	ldr	x0, [x19, #8]
	bl	_register_netdev
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x0, [x19, #8]
	bl	_netif_carrier_off
	ldr	x0, [x19, #8]
	bl	_netif_tx_stop_all_queues
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldur	x8, [x29, #-40]
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_8
; %bb.7:
	sub	sp, x29, #32
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ICE_VSI_PF,8,3                 ; @ICE_VSI_PF
	.comm	_IFF_UNICAST_FLT,4,2            ; @IFF_UNICAST_FLT
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETH_MIN_MTU,4,2                ; @ETH_MIN_MTU
	.comm	_ICE_MAX_MTU,4,2                ; @ICE_MAX_MTU
	.no_dead_strip	_ice_cfg_netdev
.subsections_via_symbols
