	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function team_dev_type_check_change
_team_dev_type_check_change:            ## @team_dev_type_check_change
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	8(%rbx), %rcx
	xorl	%r14d, %r14d
	cmpq	8(%r15), %rcx
	je	LBB0_6
## %bb.1:
	movq	(%r15), %r12
	movq	%rax, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_NETDEV_PRE_TYPE_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_call_netdevice_notifiers
	movl	%eax, %edi
	callq	_notifier_to_errno
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	%r12d, %r14d
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_dev_uc_flush
	movq	%rbx, %rdi
	callq	_dev_mc_flush
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_team_setup_by_port
	movq	_NETDEV_POST_TYPE_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_call_netdevice_notifiers
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device %s is of different type\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NETDEV_PRE_TYPE_CHANGE,4,2     ## @NETDEV_PRE_TYPE_CHANGE
L_.str.1:                               ## @.str.1
	.asciz	"Refused to change device type\n"

	.comm	_NETDEV_POST_TYPE_CHANGE,4,2    ## @NETDEV_POST_TYPE_CHANGE
	.no_dead_strip	_team_dev_type_check_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function team_dev_type_check_change
_team_dev_type_check_change:            ; @team_dev_type_check_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_7
LBB0_2:
	ldr	x21, [x20]
	bl	_list_empty
	cbz	w0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _NETDEV_PRE_TYPE_CHANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_PRE_TYPE_CHANGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_call_netdevice_notifiers
	bl	_notifier_to_errno
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.4:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_7
LBB0_5:
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_dev_uc_flush
	mov	x0, x19
	bl	_dev_mc_flush
	mov	x0, x19
	mov	x1, x20
	bl	_team_setup_by_port
Lloh10:
	adrp	x8, _NETDEV_POST_TYPE_CHANGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NETDEV_POST_TYPE_CHANGE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_call_netdevice_notifiers
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device %s is of different type\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NETDEV_PRE_TYPE_CHANGE,4,2     ; @NETDEV_PRE_TYPE_CHANGE
l_.str.1:                               ; @.str.1
	.asciz	"Refused to change device type\n"

	.comm	_NETDEV_POST_TYPE_CHANGE,4,2    ; @NETDEV_POST_TYPE_CHANGE
	.no_dead_strip	_team_dev_type_check_change
.subsections_via_symbols
