	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_setup_pf_sw
_ice_setup_pf_sw:                       ## @ice_setup_pf_sw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_ice_is_reset_in_progress
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ice_pf_vsi_setup
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ice_cfg_netdev
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	%r14, %rdi
	callq	_ice_vsi_free_q_vectors
	movq	%r14, %rdi
	callq	_ice_vsi_delete
	movq	%r14, %rdi
	callq	_ice_vsi_put_qs
	movq	%r14, %rdi
	callq	_ice_vsi_clear
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	%r14, %rdi
	callq	_ice_napi_add
	movq	%rbx, %rdi
	callq	_ice_init_mac_fltr
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ice_napi_del
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.9:
	movq	(%rdi), %rax
	movq	_NETREG_REGISTERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	callq	_unregister_netdev
	movq	(%r14), %rdi
LBB0_11:
	callq	_free_netdev
	movq	$0, (%r14)
	jmp	LBB0_12
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NETREG_REGISTERED,8,3          ## @NETREG_REGISTERED
	.no_dead_strip	_ice_setup_pf_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_setup_pf_sw
_ice_setup_pf_sw:                       ; @ice_setup_pf_sw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_ice_is_reset_in_progress
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x20
	bl	_ice_pf_vsi_setup
	cbz	x0, LBB0_8
; %bb.4:
	mov	x19, x0
	bl	_ice_cfg_netdev
	cbz	w0, LBB0_9
; %bb.5:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_ice_vsi_free_q_vectors
	mov	x0, x19
	bl	_ice_vsi_delete
	mov	x0, x19
	bl	_ice_vsi_put_qs
	mov	x0, x19
	bl	_ice_vsi_clear
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	mov	x0, x19
	bl	_ice_napi_add
	mov	x0, x20
	bl	_ice_init_mac_fltr
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.10:
	mov	x0, x19
	bl	_ice_napi_del
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.11:
	ldr	x8, [x0]
Lloh7:
	adrp	x9, _NETREG_REGISTERED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NETREG_REGISTERED@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	bl	_unregister_netdev
	ldr	x0, [x19]
LBB0_13:
	bl	_free_netdev
	str	xzr, [x19]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NETREG_REGISTERED,8,3          ; @NETREG_REGISTERED
	.no_dead_strip	_ice_setup_pf_sw
.subsections_via_symbols
