	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bstp_attach                    ## -- Begin function bstp_attach
	.p2align	4, 0x90
_bstp_attach:                           ## @bstp_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_BSTP_LOCK_INIT
	leaq	56(%rbx), %rdi
	leaq	52(%rbx), %rsi
	xorl	%edx, %edx
	callq	_callout_init_mtx
	leaq	48(%rbx), %rdi
	callq	_LIST_INIT
	movq	_BSTP_DEFAULT_MAX_AGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_BSTP_DEFAULT_HELLO_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_BSTP_DEFAULT_FORWARD_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_BSTP_DEFAULT_BRIDGE_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_BSTP_DEFAULT_HOLD_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_BSTP_DEFAULT_MIGRATE_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_BSTP_DEFAULT_HOLD_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_BSTP_PROTO_RSTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	_curvnet@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_getmicrotime
	movq	_bstp_list_mtx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_bs_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bstp_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSTP_DEFAULT_MAX_AGE,4,2       ## @BSTP_DEFAULT_MAX_AGE
	.comm	_BSTP_DEFAULT_HELLO_TIME,4,2    ## @BSTP_DEFAULT_HELLO_TIME
	.comm	_BSTP_DEFAULT_FORWARD_DELAY,4,2 ## @BSTP_DEFAULT_FORWARD_DELAY
	.comm	_BSTP_DEFAULT_BRIDGE_PRIORITY,4,2 ## @BSTP_DEFAULT_BRIDGE_PRIORITY
	.comm	_BSTP_DEFAULT_HOLD_TIME,4,2     ## @BSTP_DEFAULT_HOLD_TIME
	.comm	_BSTP_DEFAULT_MIGRATE_DELAY,4,2 ## @BSTP_DEFAULT_MIGRATE_DELAY
	.comm	_BSTP_DEFAULT_HOLD_COUNT,4,2    ## @BSTP_DEFAULT_HOLD_COUNT
	.comm	_BSTP_PROTO_RSTP,4,2            ## @BSTP_PROTO_RSTP
	.comm	_curvnet,4,2                    ## @curvnet
	.comm	_bstp_list_mtx,4,2              ## @bstp_list_mtx
	.comm	_bstp_list,4,2                  ## @bstp_list
	.comm	_bs_list,4,2                    ## @bs_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bstp_attach                    ; -- Begin function bstp_attach
	.p2align	2
_bstp_attach:                           ; @bstp_attach
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_BSTP_LOCK_INIT
	add	x0, x19, #56
	add	x1, x19, #52
	mov	w2, #0
	bl	_callout_init_mtx
	add	x0, x19, #48
	bl	_LIST_INIT
Lloh0:
	adrp	x8, _BSTP_DEFAULT_MAX_AGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSTP_DEFAULT_MAX_AGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BSTP_DEFAULT_HELLO_TIME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BSTP_DEFAULT_HELLO_TIME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh6:
	adrp	x8, _BSTP_DEFAULT_FORWARD_DELAY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BSTP_DEFAULT_FORWARD_DELAY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BSTP_DEFAULT_BRIDGE_PRIORITY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BSTP_DEFAULT_BRIDGE_PRIORITY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh12:
	adrp	x8, _BSTP_DEFAULT_HOLD_TIME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BSTP_DEFAULT_HOLD_TIME@GOTPAGEOFF]
Lloh14:
	adrp	x9, _BSTP_DEFAULT_MIGRATE_DELAY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BSTP_DEFAULT_MIGRATE_DELAY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh18:
	adrp	x8, _BSTP_DEFAULT_HOLD_COUNT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BSTP_DEFAULT_HOLD_COUNT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _BSTP_PROTO_RSTP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BSTP_PROTO_RSTP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	ldr	d0, [x20]
	str	d0, [x19, #8]
Lloh24:
	adrp	x8, _curvnet@GOTPAGE
Lloh25:
	ldr	x8, [x8, _curvnet@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_getmicrotime
Lloh27:
	adrp	x20, _bstp_list_mtx@GOTPAGE
Lloh28:
	ldr	x20, [x20, _bstp_list_mtx@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
Lloh29:
	adrp	x8, _bs_list@GOTPAGE
Lloh30:
	ldr	x8, [x8, _bs_list@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x0, _bstp_list@GOTPAGE
Lloh33:
	ldr	x0, [x0, _bstp_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BSTP_DEFAULT_MAX_AGE,4,2       ; @BSTP_DEFAULT_MAX_AGE
	.comm	_BSTP_DEFAULT_HELLO_TIME,4,2    ; @BSTP_DEFAULT_HELLO_TIME
	.comm	_BSTP_DEFAULT_FORWARD_DELAY,4,2 ; @BSTP_DEFAULT_FORWARD_DELAY
	.comm	_BSTP_DEFAULT_BRIDGE_PRIORITY,4,2 ; @BSTP_DEFAULT_BRIDGE_PRIORITY
	.comm	_BSTP_DEFAULT_HOLD_TIME,4,2     ; @BSTP_DEFAULT_HOLD_TIME
	.comm	_BSTP_DEFAULT_MIGRATE_DELAY,4,2 ; @BSTP_DEFAULT_MIGRATE_DELAY
	.comm	_BSTP_DEFAULT_HOLD_COUNT,4,2    ; @BSTP_DEFAULT_HOLD_COUNT
	.comm	_BSTP_PROTO_RSTP,4,2            ; @BSTP_PROTO_RSTP
	.comm	_curvnet,4,2                    ; @curvnet
	.comm	_bstp_list_mtx,4,2              ; @bstp_list_mtx
	.comm	_bstp_list,4,2                  ; @bstp_list
	.comm	_bs_list,4,2                    ; @bs_list
.subsections_via_symbols
