	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fq_codel_new_sched
_fq_codel_new_sched:                    ## @fq_codel_new_sched
	.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	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_D
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %rbx
	addq	$40, %rdi
	movq	_DN_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edx
	callq	_set_oid
	movq	%rbx, 32(%rbx)
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	4(%r15), %edi
	movq	_M_DUMMYNET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$4, %esi
	callq	_mallocarray
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_random
	movl	%eax, 16(%rbx)
	leaq	12(%rbx), %rdi
	callq	_STAILQ_INIT
	leaq	8(%rbx), %rdi
	callq	_STAILQ_INIT
	movl	4(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	shlq	$2, %rdx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
LBB0_6:
	movq	_fq_codel_desc@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_D
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"si already configured!"

	.comm	_DN_QUEUE,4,2                   ## @DN_QUEUE
	.comm	_M_DUMMYNET,4,2                 ## @M_DUMMYNET
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
L_.str.1:                               ## @.str.1
	.asciz	"cannot allocate memory for fq_codel configuration parameters"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fq_codel_desc,4,2              ## @fq_codel_desc
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	500                             ## 0x1f4
	.long	500                             ## 0x1f4
	.long	500                             ## 0x1f4
	.long	500                             ## 0x1f4

	.no_dead_strip	_fq_codel_new_sched
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fq_codel_new_sched
_fq_codel_new_sched:                    ; @fq_codel_new_sched
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	add	x0, x0, #40
Lloh2:
	adrp	x8, _DN_QUEUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DN_QUEUE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #24
	bl	_set_oid
	str	x19, [x19, #32]
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x8, _M_DUMMYNET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_DUMMYNET@GOTPAGEOFF]
Lloh7:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w1, #4
	bl	_mallocarray
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_random
	str	w0, [x19, #16]
	add	x0, x19, #12
	bl	_STAILQ_INIT
	add	x0, x19, #8
	bl	_STAILQ_INIT
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x0, [x19]
	lsl	x2, x8, #2
Lloh14:
	adrp	x1, l_.memset_pattern@PAGE
Lloh15:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	bl	_memset_pattern16
LBB0_5:
	mov	w0, #0
Lloh16:
	adrp	x8, _fq_codel_desc@GOTPAGE
Lloh17:
	ldr	x8, [x8, _fq_codel_desc@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"si already configured!"

	.comm	_DN_QUEUE,4,2                   ; @DN_QUEUE
	.comm	_M_DUMMYNET,4,2                 ; @M_DUMMYNET
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
l_.str.1:                               ; @.str.1
	.asciz	"cannot allocate memory for fq_codel configuration parameters"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fq_codel_desc,4,2              ; @fq_codel_desc
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	500                             ; 0x1f4
	.long	500                             ; 0x1f4
	.long	500                             ; 0x1f4
	.long	500                             ; 0x1f4

	.no_dead_strip	_fq_codel_new_sched
.subsections_via_symbols
