	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddLocalBridge                 ## -- Begin function AddLocalBridge
	.p2align	4, 0x90
_AddLocalBridge:                        ## @AddLocalBridge
	.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
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.2:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_30
## %bb.3:
	movl	%r9d, %ebx
	movq	%rdi, %r12
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %r14
	xorl	%eax, %eax
	callq	_GetOsInfo
	movl	(%rax), %edi
	callq	_OS_IS_UNIX
	testl	%eax, %eax
	cmovel	%eax, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %edi
	callq	_LockList
	movl	(%r12), %edi
	callq	_LockList
	movl	(%r12), %edi
	callq	_LIST_NUM
	movq	%r14, %rcx
	testq	%rax, %rax
	jle	LBB0_10
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	(%r12), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %r14
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_StrCmpi
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rdi
	movq	%r15, %rsi
	callq	_StrCmpi
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 16(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	movl	$0, %r14d
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_20
LBB0_10:
	movq	%rcx, %rbx
	movl	$48, %edi
	callq	_ZeroMalloc
	movq	%rax, %r14
	movq	8(%rax), %rdi
	movl	$8, %esi
	movq	%r15, %rdx
	callq	_StrCpy
	movq	(%r14), %rdi
	movl	$8, %esi
	movq	%r13, %rdx
	callq	_StrCpy
	movq	$0, 40(%r14)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r14)
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 24(%r14)
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 28(%r14)
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.12:
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_IsZero
	testl	%eax, %eax
	je	LBB0_13
LBB0_14:
	movl	32(%r14), %edi
	callq	_GenMacAddress
	jmp	LBB0_15
LBB0_13:
	movl	32(%r14), %edi
	movq	%rbx, %rsi
	movl	$6, %edx
	callq	_Copy
LBB0_15:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_Add
	movl	4(%r12), %edi
	callq	_LIST_NUM
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_20
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %r15
	movq	(%rax), %rdi
	movq	8(%r14), %rsi
	callq	_StrCmpi
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movl	4(%r12), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jl	LBB0_16
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_19:
	movl	24(%r15), %edi
	callq	_AddRef
	movq	%r15, %rbx
LBB0_20:
	movl	(%r12), %edi
	callq	_UnlockList
	movl	4(%r12), %edi
	callq	_UnlockList
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.21:
	testq	%r14, %r14
	je	LBB0_29
## %bb.22:
	movq	8(%rbx), %rax
	movq	_HUB_TYPE_FARM_DYNAMIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.23:
	movl	20(%rbx), %edi
	callq	_Lock
	cmpl	$0, 16(%rbx)
	jne	LBB0_28
## %bb.24:
	movl	(%r12), %edi
	callq	_LockList
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_IsInList
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	cmpq	$0, 40(%r14)
	jne	LBB0_27
## %bb.26:
	movq	(%r14), %rsi
	movl	20(%r14), %ecx
	movl	28(%r14), %r8d
	movl	16(%r14), %r9d
	movl	32(%r14), %eax
	movq	%rbx, %rdi
	movl	24(%r14), %ebx
	subq	$8, %rsp
	xorl	%edx, %edx
	pushq	%r14
	pushq	%rbx
	movq	%rdi, %rbx
	pushq	%rax
	callq	_BrNewBridge
	addq	$32, %rsp
	movq	%rax, 40(%r14)
LBB0_27:
	movl	(%r12), %edi
	callq	_UnlockList
LBB0_28:
	movl	20(%rbx), %edi
	callq	_Unlock
LBB0_29:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ReleaseHub                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ## @HUB_TYPE_FARM_DYNAMIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddLocalBridge                 ; -- Begin function AddLocalBridge
	.p2align	2
_AddLocalBridge:                        ; @AddLocalBridge
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x26, x1
	cbz	x1, LBB0_9
; %bb.2:
	mov	x25, x2
	cbz	x2, LBB0_9
; %bb.3:
	mov	x22, x7
	mov	x20, x5
	mov	x23, x4
	mov	x24, x3
	mov	x19, x0
	str	x6, [sp, #8]                    ; 8-byte Folded Spill
	bl	_GetOsInfo
	ldr	w0, [x0]
	bl	_OS_IS_UNIX
	cmp	w0, #0
	csel	w28, wzr, w20, eq
	ldr	w0, [x19, #4]
	bl	_LockList
	ldr	w0, [x19]
	bl	_LockList
	ldr	w0, [x19]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x20, #0
	mov	w21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldr	w0, [x19]
	bl	_LIST_NUM
	cmp	x20, x0
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_LIST_DATA
	mov	x27, x0
	ldr	x0, [x0]
	mov	x1, x25
	bl	_StrCmpi
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x27, #8]
	mov	x1, x26
	bl	_StrCmpi
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27, #16]
	cmp	w8, w28
	csinc	w21, w21, wzr, ne
	b	LBB0_5
LBB0_9:
	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_10:
	cbz	w21, LBB0_12
; %bb.11:
	mov	x21, #0
	mov	x20, #0
	b	LBB0_23
LBB0_12:
	mov	w0, #48
	bl	_ZeroMalloc
	mov	x20, x0
	ldr	x0, [x0, #8]
	mov	w1, #8
	mov	x2, x26
	bl	_StrCpy
	ldr	x0, [x20]
	mov	w1, #8
	mov	x2, x25
	bl	_StrCpy
	str	xzr, [x20, #40]
	stp	w28, w24, [x20, #16]
	stp	w22, w23, [x20, #24]
	cbz	w28, LBB0_17
; %bb.13:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x21, LBB0_15
; %bb.14:
	mov	x0, x21
	mov	w1, #6
	bl	_IsZero
	cbz	w0, LBB0_16
LBB0_15:
	ldr	w0, [x20, #32]
	bl	_GenMacAddress
	b	LBB0_17
LBB0_16:
	ldr	w0, [x20, #32]
	mov	x1, x21
	mov	w2, #6
	bl	_Copy
LBB0_17:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_Add
	ldr	w0, [x19, #4]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_21
; %bb.18:
	mov	x22, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x22
	bl	_LIST_DATA
	mov	x21, x0
	ldr	x0, [x0]
	ldr	x1, [x20, #8]
	bl	_StrCmpi
	cbz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x22, x22, #1
	ldr	w0, [x19, #4]
	bl	_LIST_NUM
	cmp	x22, x0
	b.lt	LBB0_19
LBB0_21:
	mov	x21, #0
	b	LBB0_23
LBB0_22:
	ldr	w0, [x21, #24]
	bl	_AddRef
LBB0_23:
	ldr	w0, [x19]
	bl	_UnlockList
	ldr	w0, [x19, #4]
	bl	_UnlockList
	cbz	x21, LBB0_32
; %bb.24:
	cbz	x20, LBB0_32
; %bb.25:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _HUB_TYPE_FARM_DYNAMIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HUB_TYPE_FARM_DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_32
; %bb.26:
	ldr	w0, [x21, #20]
	bl	_Lock
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_31
; %bb.27:
	ldr	w0, [x19]
	bl	_LockList
	ldr	w0, [x19]
	mov	x1, x20
	bl	_IsInList
	cbz	x0, LBB0_30
; %bb.28:
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_30
; %bb.29:
	ldr	x1, [x20]
	ldp	w5, w3, [x20, #16]
	ldp	w4, w6, [x20, #28]
	ldr	w7, [x20, #24]
	str	x20, [sp]
	mov	x0, x21
	mov	x2, #0
	bl	_BrNewBridge
	str	x0, [x20, #40]
LBB0_30:
	ldr	w0, [x19]
	bl	_UnlockList
LBB0_31:
	ldr	w0, [x21, #20]
	bl	_Unlock
LBB0_32:
	mov	x0, x21
	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
	b	_ReleaseHub
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ; @HUB_TYPE_FARM_DYNAMIC
.subsections_via_symbols
