	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_add_if                      ## -- Begin function br_add_if
	.p2align	4, 0x90
_br_add_if:                             ## @br_add_if
	.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	_IFF_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %r12
	movq	8(%rsi), %rax
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	16(%r12), %rax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movq	48(%r12), %rax
	movq	(%rax), %rax
	movq	_br_dev_xmit@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_ELOOP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpq	$0, 32(%r12)
	je	LBB0_9
## %bb.8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	%rdi, %r15
	movq	%r12, %rdi
	callq	_netdev_extended
	movq	_IFF_DONT_BRIDGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_new_nbp
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.31:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_dev_set_promiscuity
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	jmp	LBB0_29
LBB0_14:
	movq	_NETDEV_JOIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_call_netdevice_notifiers
	leaq	44(%r12), %rdx
	movq	_SYSFS_BRIDGE_PORT_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_brport_ktype@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_16:
	movl	40(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_br_fdb_insert
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.17:
	movq	%r14, %rdi
	callq	_br_sysfs_addif
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_18
LBB0_26:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_br_fdb_delete_by_port
LBB0_27:
	movq	%r14, %rdi
	callq	_kobject_put
	xorl	%r14d, %r14d
LBB0_28:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_dev_set_promiscuity
LBB0_29:
	movq	%r12, %rdi
	callq	_dev_put
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_30
LBB0_18:
	movq	%r15, %rdi
	callq	_br_netpoll_info
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_br_netpoll_enable
	testl	%eax, %eax
	je	LBB0_20
## %bb.25:
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	8(%r14), %rax
	movl	(%rax), %esi
	callq	_sysfs_remove_link
	jmp	LBB0_26
LBB0_20:
	movq	32(%r12), %rdi
	movq	%r14, %rsi
	callq	_rcu_assign_pointer
	movq	%r12, %rdi
	callq	_dev_disable_lro
	movq	_IFF_BRIDGE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
	movq	%r14, %rdi
	addq	$16, %rdi
	leaq	20(%r15), %rsi
	callq	_list_add_rcu
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_br_add_vlans_to_port
	movq	%r15, %rdi
	callq	_br_features_recompute
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	%r15, %rdi
	callq	_br_stp_recalculate_bridge_id
	movq	_IFF_UP@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_24
## %bb.21:
	movq	%r12, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	8(%r15), %rax
	movl	(%r13), %ecx
	testl	%ecx, (%rax)
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	callq	_br_stp_enable_port
LBB0_24:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_RTM_NEWLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_br_ifinfo_notify
	movq	8(%r15), %rbx
	movq	%r15, %rdi
	callq	_br_min_mtu
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dev_set_mtu
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kobject_uevent
	xorl	%ebx, %ebx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_br_dev_xmit,8,3                ## @br_dev_xmit
	.comm	_ELOOP,4,2                      ## @ELOOP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IFF_DONT_BRIDGE,4,2            ## @IFF_DONT_BRIDGE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NETDEV_JOIN,4,2                ## @NETDEV_JOIN
	.comm	_brport_ktype,4,2               ## @brport_ktype
	.comm	_SYSFS_BRIDGE_PORT_ATTR,4,2     ## @SYSFS_BRIDGE_PORT_ATTR
	.comm	_IFF_BRIDGE_PORT,4,2            ## @IFF_BRIDGE_PORT
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_RTM_NEWLINK,4,2                ## @RTM_NEWLINK
	.comm	_KOBJ_ADD,4,2                   ## @KOBJ_ADD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_add_if                      ; -- Begin function br_add_if
	.p2align	2
_br_add_if:                             ; @br_add_if
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IFF_LOOPBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh3:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _br_dev_xmit@GOTPAGE
Lloh10:
	ldr	x9, [x9, _br_dev_xmit@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
Lloh12:
	adrp	x8, _ELOOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ELOOP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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_8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
	mov	x21, x0
	mov	x0, x19
	bl	_netdev_extended
	ldr	w8, [x0]
Lloh18:
	adrp	x9, _IFF_DONT_BRIDGE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IFF_DONT_BRIDGE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
	mov	x0, x21
	mov	x1, x19
	bl	_new_nbp
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_14:
	mov	x0, x19
	mov	w1, #1
	bl	_dev_set_promiscuity
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
	b	LBB0_23
LBB0_16:
Lloh23:
	adrp	x8, _NETDEV_JOIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NETDEV_JOIN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_call_netdevice_notifiers
	add	x2, x19, #44
Lloh26:
	adrp	x8, _SYSFS_BRIDGE_PORT_ATTR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SYSFS_BRIDGE_PORT_ATTR@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x1, _brport_ktype@GOTPAGE
Lloh30:
	ldr	x1, [x1, _brport_ktype@GOTPAGEOFF]
	mov	x0, x20
	bl	_kobject_init_and_add
	cbz	w0, LBB0_18
; %bb.17:
	mov	x22, x0
	b	LBB0_22
LBB0_18:
	ldr	w2, [x19, #40]
	mov	x0, x21
	mov	x1, x20
	bl	_br_fdb_insert
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.19:
	mov	x0, x20
	bl	_br_sysfs_addif
	mov	x22, x0
	cbz	w0, LBB0_24
LBB0_20:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_br_fdb_delete_by_port
LBB0_21:
	mov	x0, x20
	bl	_kobject_put
	mov	x20, #0
LBB0_22:
	mov	x0, x19
	mov	w1, #-1
	bl	_dev_set_promiscuity
LBB0_23:
	mov	x0, x19
	bl	_dev_put
	mov	x0, x20
	bl	_kfree
	b	LBB0_7
LBB0_24:
	mov	x0, x21
	bl	_br_netpoll_info
	cbz	x0, LBB0_27
; %bb.25:
	mov	x0, x20
	bl	_br_netpoll_enable
	cbz	w0, LBB0_27
; %bb.26:
	mov	x22, x0
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	bl	_sysfs_remove_link
	b	LBB0_20
LBB0_27:
	ldr	x0, [x19, #32]
	mov	x1, x20
	bl	_rcu_assign_pointer
	mov	x0, x19
	bl	_dev_disable_lro
Lloh31:
	adrp	x8, _IFF_BRIDGE_PORT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IFF_BRIDGE_PORT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	add	x0, x20, #16
	add	x1, x21, #20
	bl	_list_add_rcu
	mov	x0, x21
	mov	x1, x20
	bl	_br_add_vlans_to_port
	mov	x0, x21
	bl	_br_features_recompute
	add	x22, x21, #16
	mov	x0, x22
	bl	_spin_lock_bh
	mov	x0, x21
	bl	_br_stp_recalculate_bridge_id
	ldr	w8, [x19]
Lloh34:
	adrp	x23, _IFF_UP@GOTPAGE
Lloh35:
	ldr	x23, [x23, _IFF_UP@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.28:
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	x0, LBB0_31
; %bb.29:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.30:
	mov	x0, x20
	bl	_br_stp_enable_port
LBB0_31:
	mov	x0, x22
	bl	_spin_unlock_bh
Lloh36:
	adrp	x8, _RTM_NEWLINK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RTM_NEWLINK@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_br_ifinfo_notify
	ldr	x19, [x21, #8]
	mov	x0, x21
	bl	_br_min_mtu
	mov	x1, x0
	mov	x0, x19
	bl	_dev_set_mtu
Lloh39:
	adrp	x8, _KOBJ_ADD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _KOBJ_ADD@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kobject_uevent
	mov	w22, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_br_dev_xmit,8,3                ; @br_dev_xmit
	.comm	_ELOOP,4,2                      ; @ELOOP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IFF_DONT_BRIDGE,4,2            ; @IFF_DONT_BRIDGE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NETDEV_JOIN,4,2                ; @NETDEV_JOIN
	.comm	_brport_ktype,4,2               ; @brport_ktype
	.comm	_SYSFS_BRIDGE_PORT_ATTR,4,2     ; @SYSFS_BRIDGE_PORT_ATTR
	.comm	_IFF_BRIDGE_PORT,4,2            ; @IFF_BRIDGE_PORT
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_RTM_NEWLINK,4,2                ; @RTM_NEWLINK
	.comm	_KOBJ_ADD,4,2                   ; @KOBJ_ADD
.subsections_via_symbols
