	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_multicast_set_port_router   ## -- Begin function br_multicast_set_port_router
	.p2align	4, 0x90
_br_multicast_set_port_router:          ## @br_multicast_set_port_router
	.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, %r12
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_spin_lock
	movl	4(%r15), %edi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	(%r14), %rax
	movq	_BR_STATE_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.2:
	cmpq	$2, %r12
	ja	LBB0_9
## %bb.3:
	movq	%r12, 8(%r14)
	jne	LBB0_4
## %bb.8:
	leaq	16(%r14), %rdi
	callq	_del_timer
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_br_multicast_add_router
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	20(%r14), %rbx
	movq	%rbx, %rdi
	callq	_hlist_unhashed
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_hlist_del_init_rcu
LBB0_6:
	xorl	%ebx, %ebx
	cmpq	$1, %r12
	je	LBB0_10
## %bb.7:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_del_timer
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_BR_STATE_DISABLED,8,3          ## @BR_STATE_DISABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_multicast_set_port_router   ; -- Begin function br_multicast_set_port_router
	.p2align	2
_br_multicast_set_port_router:          ; @br_multicast_set_port_router
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #24]
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x19
	bl	_spin_lock
	ldr	w0, [x19, #4]
	bl	_netif_running
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _BR_STATE_DISABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BR_STATE_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.2:
	cmp	x21, #2
	b.hi	LBB0_5
; %bb.3:
	str	x21, [x20, #8]
	b.ne	LBB0_7
; %bb.4:
	add	x0, x20, #16
	bl	_del_timer
	mov	x0, x19
	mov	x1, x20
	bl	_br_multicast_add_router
	mov	w22, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x22
	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_7:
	add	x22, x20, #20
	mov	x0, x22
	bl	_hlist_unhashed
	cbz	w0, LBB0_10
; %bb.8:
	cmp	x21, #1
	b.ne	LBB0_11
LBB0_9:
	mov	w22, #0
	b	LBB0_6
LBB0_10:
	mov	x0, x22
	bl	_hlist_del_init_rcu
	cmp	x21, #1
	b.eq	LBB0_9
LBB0_11:
	add	x0, x20, #16
	bl	_del_timer
	mov	w22, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_BR_STATE_DISABLED,8,3          ; @BR_STATE_DISABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
