	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_port_index_getnext
_bridge_port_index_getnext:             ## @bridge_port_index_getnext
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	(%r12), %rsi
	subq	%rbx, %rsi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_bridge_port_first
	cmpl	$1, %r14d
	je	LBB0_17
LBB0_12:
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_RowStatus_active@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %rdi
	callq	_bridge_port_next
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_16
LBB0_2:
	movq	8(%r12), %r9
	movslq	(%r9,%rbx,4), %rdx
	leaq	2(%rdx), %r8
	xorl	%eax, %eax
	cmpq	%r8, %rsi
	jne	LBB0_17
## %bb.3:
	cmpl	%r15d, %edx
	jge	LBB0_17
## %bb.4:
	testl	%edx, %edx
	jle	LBB0_5
## %bb.6:
	leaq	(%r9,%rbx,4), %rdx
	addq	$4, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rsi), %rax
	movzbl	(%rdx,%rsi,4), %ecx
	movb	%cl, (%rdi,%rsi)
	movslq	(%r9,%rbx,4), %rcx
	movq	%rax, %rsi
	cmpq	%rcx, %rax
	jl	LBB0_7
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	movb	$0, (%rdi,%rax)
	addq	%rax, %rbx
	movl	4(%r9,%rbx,4), %ebx
	callq	_bridge_if_find_ifname
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movsbl	%bl, %edi
	movq	%rax, %rsi
	callq	_bridge_port_find
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	%rax, %rdi
	callq	_bridge_port_next
	cmpl	$1, %r14d
	jne	LBB0_12
	jmp	LBB0_17
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_RowStatus_active,8,3           ## @RowStatus_active
	.no_dead_strip	_bridge_port_index_getnext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bridge_port_index_getnext
_bridge_port_index_getnext:             ; @bridge_port_index_getnext
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
	mov	x19, x2
	mov	x12, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x0, x9, x10
	mov	sp, x0
	ldr	x9, [x12]
	subs	x10, x9, x1
	b.ne	LBB0_6
; %bb.1:
	bl	_bridge_port_first
	cmp	w19, #1
	b.eq	LBB0_15
LBB0_2:
	cbz	x0, LBB0_15
; %bb.3:
Lloh8:
	adrp	x19, _RowStatus_active@GOTPAGE
Lloh9:
	ldr	x19, [x19, _RowStatus_active@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_bridge_port_next
	cbnz	x0, LBB0_4
	b	LBB0_15
LBB0_6:
	ldr	x9, [x12, #8]
	ldrsw	x11, [x9, x1, lsl #2]
	add	x12, x11, #2
	cmp	x10, x12
	ccmp	w11, w8, #0, eq
	b.lt	LBB0_8
; %bb.7:
	mov	x0, #0
	b	LBB0_15
LBB0_8:
	cmp	w11, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x10, #0
	add	x8, x9, x1, lsl #2
	add	x8, x8, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x10, #1
	ldr	w12, [x8, x10, lsl #2]
	strb	w12, [x0, x10]
	ldrsw	x12, [x9, x1, lsl #2]
	mov	x10, x11
	cmp	x11, x12
	b.lt	LBB0_10
	b	LBB0_12
LBB0_11:
	mov	x11, #0
LBB0_12:
	strb	wzr, [x0, x11]
	add	x8, x11, x1
	add	x8, x9, x8, lsl #2
	ldr	w20, [x8, #4]
	bl	_bridge_if_find_ifname
	cbz	x0, LBB0_15
; %bb.13:
	mov	x1, x0
	sxtb	w0, w20
	bl	_bridge_port_find
	cbz	x0, LBB0_15
; %bb.14:
	bl	_bridge_port_next
	cmp	w19, #1
	b.ne	LBB0_2
LBB0_15:
	ldur	x8, [x29, #-24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_RowStatus_active,8,3           ; @RowStatus_active
	.no_dead_strip	_bridge_port_index_getnext
.subsections_via_symbols
