	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_link
_config_link:                           ## @config_link
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	24(%rdi), %esi
	cmpl	$32, %esi
	jne	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	movl	(%rdi), %r12d
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.2:
	movq	_DN_MAX_ID@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r12d
	jge	LBB0_13
## %bb.3:
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%r14), %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, 4(%r14)
	imull	8(%r14), %eax
	shll	$3, %eax
	movl	%eax, 8(%r14)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DN_BH_WLOCK
	movl	(%r13), %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_schk_reset_credit
	movl	(%r13), %eax
	addl	%eax, %r12d
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addl	%eax, %eax
	cmpl	%eax, %r12d
	jge	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %edi
	callq	_locate_scheduler
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_M_DUMMYNET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	$0, 24(%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	%r12d, (%rbx)
	movl	4(%r14), %eax
	movl	%eax, 4(%rbx)
	movq	16(%r14), %rax
	cmpq	%rax, 8(%rbx)
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_update_red
	jmp	LBB0_4
LBB0_11:
	leaq	L_.str(%rip), %rdi
LBB0_12:
	callq	_D
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_dn_cfg@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	callq	_DN_BH_WUNLOCK
	jmp	LBB0_14
LBB0_16:
	xorl	%eax, %eax
	callq	_DN_BH_WUNLOCK
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pipe len %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DN_MAX_ID,4,2                  ## @DN_MAX_ID
	.comm	_hz,4,2                         ## @hz
L_.str.1:                               ## @.str.1
	.asciz	"sched %d not found"

	.comm	_M_DUMMYNET,4,2                 ## @M_DUMMYNET
	.comm	_dn_cfg,4,2                     ## @dn_cfg
	.no_dead_strip	_config_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_link
_config_link:                           ; @config_link
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w1, [x0, #24]
	cmp	w1, #32
	b.ne	LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	w19, [x0]
Lloh0:
	adrp	x22, _DN_MAX_ID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DN_MAX_ID@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w19, #1
	ccmp	w19, w8, #0, ge
	b.ge	LBB0_12
; %bb.2:
Lloh2:
	adrp	x8, _hz@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	w9, w10, [x20, #4]
	mul	w9, w8, w9
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x9, w9, w11
	lsr	x11, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w11
	mul	w8, w8, w10
	lsl	w8, w8, #3
	stp	w9, w8, [x20, #4]
	bl	_DN_BH_WLOCK
	ldr	w8, [x22]
	cmp	w19, w8, lsl #1
	b.ge	LBB0_14
; %bb.3:
Lloh5:
	adrp	x23, _M_DUMMYNET@GOTPAGE
Lloh6:
	ldr	x23, [x23, _M_DUMMYNET@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #8]
	str	w8, [x21, #16]
	mov	x0, x21
	bl	_schk_reset_credit
	ldr	w8, [x22]
	add	w19, w8, w19
	cmp	w19, w8, lsl #1
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_locate_scheduler
	cbz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x23]
	bl	_free
	str	xzr, [x21, #24]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #24]
	str	w8, [x21, #20]
	ldr	w8, [x20, #4]
	stp	w19, w8, [x21]
	ldr	x9, [x21, #8]
	ldr	x8, [x20, #16]
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x21, #8]
	mov	x0, x21
	bl	_update_red
	b	LBB0_4
LBB0_10:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_D
LBB0_12:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh12:
	adrp	x8, _dn_cfg@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dn_cfg@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_DN_BH_WUNLOCK
	mov	w0, #0
	b	LBB0_13
LBB0_15:
	bl	_DN_BH_WUNLOCK
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pipe len %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DN_MAX_ID,4,2                  ; @DN_MAX_ID
	.comm	_hz,4,2                         ; @hz
l_.str.1:                               ; @.str.1
	.asciz	"sched %d not found"

	.comm	_M_DUMMYNET,4,2                 ; @M_DUMMYNET
	.comm	_dn_cfg,4,2                     ; @dn_cfg
	.no_dead_strip	_config_link
.subsections_via_symbols
