	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extend_dpath
_extend_dpath:                          ## @extend_dpath
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	movq	16(%rbx), %rax
	movq	24(%rbx), %r15
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpq	%rcx, (%r15)
	jg	LBB0_8
LBB0_2:
	cmpq	$0, 24(%r12)
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	%rax, 16(%r12)
	movl	$65535, (%r12)                  ## imm = 0xFFFF
LBB0_4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_add_port_to_dpath
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movl	8(%r12), %edx
	subl	(%rbx), %edx
	movq	(%r15), %rcx
	movl	$1, %eax
	cmpq	%rdx, %rcx
	jge	LBB0_8
## %bb.7:
	incq	%rcx
	movq	%rcx, (%r15)
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	callq	_portid2str
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_IBND_ERROR
	movl	$-1, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add port %d to DR path failed; %s\n"

	.no_dead_strip	_extend_dpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extend_dpath
_extend_dpath:                          ; @extend_dpath
	.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	x19, x2
	mov	x20, x1
	ldr	x22, [x0]
	ldp	x8, x21, [x22, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x21]
	cmp	x9, x8
	b.le	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_10
LBB0_3:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x22, #8]
	str	x8, [x20, #16]
	mov	w8, #65535
	str	w8, [x20]
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_add_port_to_dpath
	tbnz	x0, #63, LBB0_9
; %bb.6:
	ldr	w9, [x20, #8]
	ldr	w10, [x22]
	ldr	x8, [x21]
	sub	w9, w9, w10
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.7:
	add	x8, x8, #1
	str	x8, [x21]
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_portid2str
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_IBND_ERROR
	mov	w0, #-1
LBB0_10:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add port %d to DR path failed; %s\n"

	.no_dead_strip	_extend_dpath
.subsections_via_symbols
