	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gred_wred_mode_check
_gred_wred_mode_check:                  ## @gred_wred_mode_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_qdisc_priv
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movq	8(%rax), %rax
	xorl	%r8d, %r8d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r8
	cmpq	%rcx, %r8
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%rax,%r8,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rdi
	cmpq	%rdi, %rcx
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rdi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%rsi, %rdx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%rdx), %rdx
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.7:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gred_wred_mode_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gred_wred_mode_check
_gred_wred_mode_check:                  ; @gred_wred_mode_check
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_qdisc_priv
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, x8
	mov	x13, x10
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x13, x13, #8
	subs	x12, x12, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x13]
	cmp	x14, #0
	ccmp	x14, x11, #4, ne
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x14, [x14]
	ldr	x15, [x11]
	cmp	x14, x15
	b.ne	LBB0_5
; %bb.8:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gred_wred_mode_check
.subsections_via_symbols
