	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bstp_create                    ## -- Begin function bstp_create
	.p2align	4, 0x90
_bstp_create:                           ## @bstp_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$48, %esi
	callq	_bzero
	movq	%r14, %rdi
	callq	_BSTP_LOCK
	movq	%r15, 40(%rbx)
	movq	%r14, 32(%rbx)
	movq	_BSTP_DEFAULT_PORT_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	20(%rbx), %rdi
	movq	_bstp_notify_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_TASK_INIT
	leaq	16(%rbx), %rdi
	movq	_bstp_notify_rtage@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_TASK_INIT
	leaq	12(%rbx), %rdi
	movq	_bstp_ifupdstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_TASK_INIT
	movq	_BSTP_INFO_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_BSTP_PORT_AUTOEDGE@GOTPCREL(%rip), %rax
	movq	_BSTP_PORT_AUTOPTP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_BSTP_IFSTATE_DISCARDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bstp_set_port_state
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bstp_set_port_proto
	movq	_BSTP_ROLE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bstp_set_port_role
	movq	_BSTP_TCSTATE_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bstp_set_port_tc
	movq	%rbx, %rdi
	callq	_bstp_calc_path_cost
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_BSTP_UNLOCK
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BSTP_DEFAULT_PORT_PRIORITY,4,2 ## @BSTP_DEFAULT_PORT_PRIORITY
	.comm	_bstp_notify_state,4,2          ## @bstp_notify_state
	.comm	_bstp_notify_rtage,4,2          ## @bstp_notify_rtage
	.comm	_bstp_ifupdstatus,4,2           ## @bstp_ifupdstatus
	.comm	_BSTP_INFO_DISABLED,4,2         ## @BSTP_INFO_DISABLED
	.comm	_BSTP_PORT_AUTOEDGE,4,2         ## @BSTP_PORT_AUTOEDGE
	.comm	_BSTP_PORT_AUTOPTP,4,2          ## @BSTP_PORT_AUTOPTP
	.comm	_BSTP_IFSTATE_DISCARDING,4,2    ## @BSTP_IFSTATE_DISCARDING
	.comm	_BSTP_ROLE_DISABLED,4,2         ## @BSTP_ROLE_DISABLED
	.comm	_BSTP_TCSTATE_INACTIVE,4,2      ## @BSTP_TCSTATE_INACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bstp_create                    ; -- Begin function bstp_create
	.p2align	2
_bstp_create:                           ; @bstp_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #48
	bl	_bzero
	mov	x0, x19
	bl	_BSTP_LOCK
	stp	x19, x21, [x20, #32]
Lloh0:
	adrp	x8, _BSTP_DEFAULT_PORT_PRIORITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSTP_DEFAULT_PORT_PRIORITY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	add	x0, x20, #20
Lloh3:
	adrp	x8, _bstp_notify_state@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bstp_notify_state@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x20
	bl	_TASK_INIT
	add	x0, x20, #16
Lloh6:
	adrp	x8, _bstp_notify_rtage@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bstp_notify_rtage@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x20
	bl	_TASK_INIT
	add	x0, x20, #12
Lloh9:
	adrp	x8, _bstp_ifupdstatus@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bstp_ifupdstatus@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x20
	bl	_TASK_INIT
Lloh12:
	adrp	x8, _BSTP_INFO_DISABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BSTP_INFO_DISABLED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh15:
	adrp	x8, _BSTP_PORT_AUTOEDGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BSTP_PORT_AUTOEDGE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _BSTP_PORT_AUTOPTP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BSTP_PORT_AUTOPTP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh21:
	adrp	x8, _BSTP_IFSTATE_DISCARDING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BSTP_IFSTATE_DISCARDING@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bstp_set_port_state
	ldr	w1, [x19]
	mov	x0, x20
	bl	_bstp_set_port_proto
Lloh24:
	adrp	x8, _BSTP_ROLE_DISABLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BSTP_ROLE_DISABLED@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bstp_set_port_role
Lloh27:
	adrp	x8, _BSTP_TCSTATE_INACTIVE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BSTP_TCSTATE_INACTIVE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bstp_set_port_tc
	mov	x0, x20
	bl	_bstp_calc_path_cost
	str	w0, [x20, #4]
	mov	x0, x19
	bl	_BSTP_UNLOCK
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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_PORT_PRIORITY,4,2 ; @BSTP_DEFAULT_PORT_PRIORITY
	.comm	_bstp_notify_state,4,2          ; @bstp_notify_state
	.comm	_bstp_notify_rtage,4,2          ; @bstp_notify_rtage
	.comm	_bstp_ifupdstatus,4,2           ; @bstp_ifupdstatus
	.comm	_BSTP_INFO_DISABLED,4,2         ; @BSTP_INFO_DISABLED
	.comm	_BSTP_PORT_AUTOEDGE,4,2         ; @BSTP_PORT_AUTOEDGE
	.comm	_BSTP_PORT_AUTOPTP,4,2          ; @BSTP_PORT_AUTOPTP
	.comm	_BSTP_IFSTATE_DISCARDING,4,2    ; @BSTP_IFSTATE_DISCARDING
	.comm	_BSTP_ROLE_DISABLED,4,2         ; @BSTP_ROLE_DISABLED
	.comm	_BSTP_TCSTATE_INACTIVE,4,2      ; @BSTP_TCSTATE_INACTIVE
.subsections_via_symbols
