	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_update_memif            ## -- Begin function bridge_update_memif
	.p2align	4, 0x90
_bridge_update_memif:                   ## @bridge_update_memif
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	-72(%rbp), %rsi
	callq	_bridge_port_get_iflist
	movl	%eax, %r13d
	movl	$-1, %eax
	testl	%r13d, %r13d
	js	LBB0_26
## %bb.1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$8, %r13d
	jae	LBB0_2
LBB0_11:
	movq	-72(%rbp), %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_bridge_port_bif_first
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	%rax, %rbx
	movq	_RowStatus_active@GOTPCREL(%rip), %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	orl	$-2, %eax
	movl	%eax, 8(%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rbx
	testq	%r14, %r14
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_bridge_port_bif_next
	movq	%rax, %r14
	movl	8(%rbx), %eax
	testb	$1, %al
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rbx), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_bridge_port_remove
	jmp	LBB0_17
LBB0_18:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bridge_port_get_ifstplist
	movl	%eax, %r14d
	testl	%eax, %eax
	movl	$-1, %eax
	js	LBB0_26
## %bb.19:
	movq	%r12, %rdi
	callq	_bridge_port_bif_first
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	movq	%rax, %rbx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_bridge_port_getinfo_opstp
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%rbx, %rdi
	callq	_bridge_port_bif_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%rbx), %edi
	movq	-64(%rbp), %rsi
	movl	%r14d, %edx
	callq	_bridge_port_find_ifstplist
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%rbx, %rdi
	callq	_bridge_port_clearinfo_opstp
	jmp	LBB0_24
LBB0_25:
	movq	-64(%rbp), %rdi
	callq	_free
	xorl	%edi, %edi
	callq	_time
	movl	%eax, (%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	andl	$-8, %r13d
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx,%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_syslog
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r15
	cmpq	%r15, %r13
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rbx
	movl	4(%rbx,%r15), %edi
	callq	_mib_find_if_sys
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movl	(%rax), %edi
	movq	%r12, %r13
	movq	%r12, %rsi
	callq	_bridge_port_find
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bridge_new_port
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movq	_RowStatus_active@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r15, %rbx
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_bridge_port_getinfo_conf
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bridge_port_getinfo_mibif
	orb	$1, 8(%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bridge member %s not present in mibII ifTable"

	.comm	_RowStatus_active,8,3           ## @RowStatus_active
	.comm	_BP_FOUND,4,2                   ## @BP_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_update_memif            ; -- Begin function bridge_update_memif
	.p2align	2
_bridge_update_memif:                   ; @bridge_update_memif
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	add	x1, sp, #8
	bl	_bridge_port_get_iflist
	tbnz	w0, #31, LBB0_16
; %bb.1:
Lloh0:
	adrp	x25, _RowStatus_active@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RowStatus_active@GOTPAGEOFF]
	cmp	w0, #8
	b.hs	LBB0_19
; %bb.2:
	mov	w20, #0
LBB0_3:
	ldr	x0, [sp, #8]
	bl	_free
	mov	x0, x19
	bl	_bridge_port_bif_first
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	orr	w8, w8, #0xfffffffe
	str	w8, [x21, #8]
	mov	x21, x22
	cbz	x22, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_bridge_port_bif_next
	mov	x22, x0
	ldr	w8, [x21, #8]
	tbnz	w8, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x21]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_bridge_port_remove
	mov	x21, x22
	cbnz	x22, LBB0_6
LBB0_9:
	mov	x1, sp
	mov	x0, x19
	bl	_bridge_port_get_ifstplist
	tbnz	w0, #31, LBB0_16
; %bb.10:
	mov	x21, x0
	mov	x0, x19
	bl	_bridge_port_bif_first
	cbz	x0, LBB0_17
; %bb.11:
	mov	x22, x0
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x22
	bl	_bridge_port_getinfo_opstp
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	bl	_bridge_port_bif_next
	mov	x22, x0
	cbz	x0, LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #12]
	ldr	x1, [sp]
	mov	x2, x21
	bl	_bridge_port_find_ifstplist
	cbnz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	bl	_bridge_port_clearinfo_opstp
	b	LBB0_13
LBB0_16:
	mov	w20, #-1
	b	LBB0_18
LBB0_17:
	ldr	x0, [sp]
	bl	_free
	mov	x0, #0
	bl	_time
	str	w0, [x19]
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	mov	x26, #0
	mov	w20, #0
	and	w27, w0, #0xfffffff8
Lloh2:
	adrp	x28, _LOG_ERR@GOTPAGE
Lloh3:
	ldr	x28, [x28, _LOG_ERR@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	add	w20, w20, #1
	mov	x0, x22
	mov	x1, x24
	bl	_bridge_port_getinfo_conf
	mov	x0, x23
	mov	x1, x24
	bl	_bridge_port_getinfo_mibif
	ldr	w8, [x24, #8]
	orr	w8, w8, #0x1
	str	w8, [x24, #8]
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x26, x26, #8
	cmp	x27, x26
	b.eq	LBB0_3
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x24, [sp, #8]
	add	x22, x24, x26
	ldr	w0, [x22, #4]
	bl	_mib_find_if_sys
	cbz	x0, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x23, x0
	ldr	w0, [x0]
	mov	x1, x19
	bl	_bridge_port_find
	mov	x24, x0
	cbnz	x0, LBB0_20
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_bridge_new_port
	cbz	x0, LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x24, x0
	ldr	x8, [x25]
	str	x8, [x0]
	b	LBB0_20
LBB0_26:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w0, [x28]
	ldr	w2, [x24, x26]
	mov	x1, x21
	bl	_syslog
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bridge member %s not present in mibII ifTable"

	.comm	_RowStatus_active,8,3           ; @RowStatus_active
	.comm	_BP_FOUND,4,2                   ; @BP_FOUND
.subsections_via_symbols
