	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gred_init
_gred_init:                             ## @gred_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_TCA_GRED_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	_gred_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_nla_parse_nested
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	_TCA_GRED_PARMS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r15,%rax,8)
	jne	LBB0_1
## %bb.4:
	movq	_TCA_GRED_STAB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r15,%rax,8)
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_TCA_GRED_DPS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rsi
	movq	%r14, %rdi
	callq	_gred_change_table_def
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TCA_GRED_MAX,4,2               ## @TCA_GRED_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_gred_policy,4,2                ## @gred_policy
	.comm	_TCA_GRED_PARMS,8,3             ## @TCA_GRED_PARMS
	.comm	_TCA_GRED_STAB,8,3              ## @TCA_GRED_STAB
	.comm	_TCA_GRED_DPS,8,3               ## @TCA_GRED_DPS
	.no_dead_strip	_gred_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gred_init
_gred_init:                             ; @gred_init
	.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
	sub	sp, sp, #16
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _TCA_GRED_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCA_GRED_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w8, w1, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cbz	x2, LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _gred_policy@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gred_policy@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_nla_parse_nested
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh11:
	adrp	x8, _TCA_GRED_PARMS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCA_GRED_PARMS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x8, [x20, x8, lsl #3]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _TCA_GRED_STAB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TCA_GRED_STAB@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh23:
	adrp	x8, _TCA_GRED_DPS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TCA_GRED_DPS@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x1, [x20, x8, lsl #3]
	mov	x0, x19
	bl	_gred_change_table_def
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TCA_GRED_MAX,4,2               ; @TCA_GRED_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_gred_policy,4,2                ; @gred_policy
	.comm	_TCA_GRED_PARMS,8,3             ; @TCA_GRED_PARMS
	.comm	_TCA_GRED_STAB,8,3              ; @TCA_GRED_STAB
	.comm	_TCA_GRED_DPS,8,3               ; @TCA_GRED_DPS
	.no_dead_strip	_gred_init
.subsections_via_symbols
