	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function team_port_del
_team_port_del:                         ## @team_port_del
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	(%rsi), %r14
	movq	%rsi, %rdi
	callq	_team_port_get_rtnl
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_team_port_find
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_team_port_disable
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_list_del_rcu
	movl	8(%r15), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_dev_set_promiscuity
	movl	8(%r15), %eax
LBB0_5:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_dev_set_allmulti
LBB0_7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_team_upper_dev_unlink
	movq	%r13, %rdi
	callq	_netdev_rx_handler_unregister
	movq	%rbx, %rdi
	callq	_team_port_disable_netpoll
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_vlan_vids_del_by_dev
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_dev_uc_unsync
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_dev_mc_unsync
	movq	%r13, %rdi
	callq	_dev_close
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_team_port_leave
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___team_option_inst_mark_removed_port
	movq	%r12, %rdi
	callq	___team_options_change_check
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___team_option_inst_del_port
	movq	%rbx, %rdi
	callq	___team_port_change_port_removed
	movq	%rbx, %rdi
	callq	_team_port_set_orig_dev_addr
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dev_set_mtu
	movq	_rcu@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kfree_rcu
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_netdev_info
	movq	%r12, %rdi
	callq	___team_compute_features
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_netdev_err
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device %s does not act as a port of this team\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_rcu,4,2                        ## @rcu
L_.str.1:                               ## @.str.1
	.asciz	"Port device %s removed\n"

	.no_dead_strip	_team_port_del
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function team_port_del
_team_port_del:                         ; @team_port_del
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0]
	ldr	x20, [x1]
	mov	x0, x1
	bl	_team_port_get_rtnl
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_team_port_find
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	bl	_team_port_disable
	add	x0, x23, #4
	bl	_list_del_rcu
	ldr	w8, [x21, #8]
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x22
	mov	w1, #-1
	bl	_dev_set_promiscuity
	ldr	w8, [x21, #8]
LBB0_4:
Lloh3:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x22
	mov	w1, #-1
	bl	_dev_set_allmulti
LBB0_6:
	mov	x0, x19
	mov	x1, x23
	bl	_team_upper_dev_unlink
	mov	x0, x22
	bl	_netdev_rx_handler_unregister
	mov	x0, x23
	bl	_team_port_disable_netpoll
	mov	x0, x22
	mov	x1, x21
	bl	_vlan_vids_del_by_dev
	mov	x0, x22
	mov	x1, x21
	bl	_dev_uc_unsync
	mov	x0, x22
	mov	x1, x21
	bl	_dev_mc_unsync
	mov	x0, x22
	bl	_dev_close
	mov	x0, x19
	mov	x1, x23
	bl	_team_port_leave
	mov	x0, x19
	mov	x1, x23
	bl	___team_option_inst_mark_removed_port
	mov	x0, x19
	bl	___team_options_change_check
	mov	x0, x19
	mov	x1, x23
	bl	___team_option_inst_del_port
	mov	x0, x23
	bl	___team_port_change_port_removed
	mov	x0, x23
	bl	_team_port_set_orig_dev_addr
	ldr	w1, [x23]
	mov	x0, x22
	bl	_dev_set_mtu
Lloh6:
	adrp	x8, _rcu@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rcu@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_kfree_rcu
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_netdev_info
	mov	x0, x19
	bl	___team_compute_features
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_netdev_err
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device %s does not act as a port of this team\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_rcu,4,2                        ; @rcu
l_.str.1:                               ; @.str.1
	.asciz	"Port device %s removed\n"

	.no_dead_strip	_team_port_del
.subsections_via_symbols
