	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_port_index_append
_bridge_port_index_append:              ## @bridge_port_index_append
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	4(%rdx), %edi
	callq	_bridge_if_find_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_strlen
	addq	%r15, %rax
	addq	$2, %rax
	movq	%rax, (%r12)
	movq	%r13, %rdi
	callq	_strlen
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	movsbq	(%r13), %rax
	testq	%rax, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	%rax, 8(%rcx,%r15,8)
	movq	%r13, %rdi
	callq	_strlen
	movl	$2, %r12d
	cmpq	$2, %rax
	jb	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,8), %r14
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movsbq	-1(%r13,%rbx), %rax
	movq	%rax, (%r14,%rbx,8)
	leaq	1(%rbx), %r12
	movq	%r13, %rdi
	callq	_strlen
	cmpq	%rax, %rbx
	movq	%r12, %rbx
	jb	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_3:
	movl	$1, %r12d
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movsbq	(%rax), %rax
	addq	%r15, %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12,8)
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bridge_port_index_append
.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_append
_bridge_port_index_append:              ; @bridge_port_index_append
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x2, #4]
	bl	_bridge_if_find_name
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	bl	_strlen
	add	x8, x19, x0
	add	x8, x8, #2
	str	x8, [x22]
	mov	x0, x21
	bl	_strlen
	ldr	x22, [x22, #8]
	str	x0, [x22, x19, lsl #3]
	ldrsb	x8, [x21]
	cbz	x8, LBB0_7
; %bb.2:
	add	x23, x22, x19, lsl #3
	str	x8, [x23, #8]
	mov	x0, x21
	bl	_strlen
	cmp	x0, #2
	b.lo	LBB0_8
; %bb.3:
	mov	x24, #0
	add	x23, x23, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x21, x24
	ldrsb	x8, [x8, #1]
	str	x8, [x23, x24, lsl #3]
	mov	x0, x21
	bl	_strlen
	add	x8, x24, #1
	add	x9, x24, #2
	mov	x24, x8
	cmp	x9, x0
	b.lo	LBB0_4
; %bb.5:
	add	x8, x8, #2
	b	LBB0_9
LBB0_6:
	mov	w0, #-1
	b	LBB0_10
LBB0_7:
	mov	w8, #1
	b	LBB0_9
LBB0_8:
	mov	w8, #2
LBB0_9:
	mov	w0, #0
	ldrsb	x9, [x20]
	add	x8, x8, x19
	str	x9, [x22, x8, lsl #3]
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bridge_port_index_append
.subsections_via_symbols
