	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bstp_set_port_proto
_bstp_set_port_proto:                   ## @bstp_set_port_proto
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$129, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$128, %r14d
	jne	LBB0_4
## %bb.2:
	leaq	12(%rbx), %rdi
	callq	_bstp_timer_stop
	movl	$0, 16(%rbx)
	cmpl	$65536, (%rbx)                  ## imm = 0x10000
	jl	LBB0_6
## %bb.3:
	movl	$65535, (%rbx)                  ## imm = 0xFFFF
	jmp	LBB0_6
LBB0_5:
	movq	24(%rbx), %rax
	leaq	12(%rbx), %rdi
	movl	(%rax), %esi
	callq	_bstp_timer_start
LBB0_6:
	movl	%r14d, 4(%rbx)
	movq	_BSTP_PORT_CANMIGRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported STP version %d\n"

	.comm	_BSTP_PORT_CANMIGRATE,4,2       ## @BSTP_PORT_CANMIGRATE
	.no_dead_strip	_bstp_set_port_proto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bstp_set_port_proto
_bstp_set_port_proto:                   ; @bstp_set_port_proto
	.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	x19, x1
	mov	x20, x0
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #128
	b.ne	LBB0_6
; %bb.2:
	add	x0, x20, #12
	bl	_bstp_timer_stop
	str	wzr, [x20, #16]
	ldr	w8, [x20]
	cmp	w8, #16, lsl #12                ; =65536
	b.lt	LBB0_5
; %bb.3:
	mov	w8, #65535
	str	w8, [x20]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20, #24]
	add	x0, x20, #12
	ldr	w1, [x8]
	bl	_bstp_timer_start
LBB0_5:
Lloh0:
	adrp	x8, _BSTP_PORT_CANMIGRATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSTP_PORT_CANMIGRATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	stp	w19, w8, [x20, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DPRINTF
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported STP version %d\n"

	.comm	_BSTP_PORT_CANMIGRATE,4,2       ; @BSTP_PORT_CANMIGRATE
	.no_dead_strip	_bstp_set_port_proto
.subsections_via_symbols
