	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_next_ddcb
_get_next_ddcb:                         ## @get_next_ddcb
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_queue_free_ddcbs
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	16(%rbx), %r12
	leaq	(%rax,%rax,2), %r13
	movq	_DDCB_COMPLETED_BE32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12,%r13,4)
	je	LBB0_5
## %bb.2:
	leaq	(%r12,%r13,4), %r14
	movl	%eax, (%r15)
	incq	%rax
	movslq	8(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:
	movq	%rdx, (%rbx)
	movq	$0, 208(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movups	%xmm0, 128(%r14)
	movups	%xmm0, 144(%r14)
	movq	_DDCB_PRESET_PRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12,%r13,4)
	movl	12(%rbx), %edi
	leal	1(%rdi), %eax
	movl	%eax, 12(%rbx)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_be16
	movl	%eax, 4(%r12,%r13,4)
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DDCB_COMPLETED_BE32,4,2        ## @DDCB_COMPLETED_BE32
	.comm	_DDCB_PRESET_PRE,4,2            ## @DDCB_PRESET_PRE
	.no_dead_strip	_get_next_ddcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_next_ddcb
_get_next_ddcb:                         ; @get_next_ddcb
	.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	x21, x2
	mov	x20, x1
	mov	x0, x1
	bl	_queue_free_ddcbs
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	mov	w10, #12
	madd	x19, x9, x10, x8
	ldr	w10, [x19]
Lloh0:
	adrp	x11, _DDCB_COMPLETED_BE32@GOTPAGE
Lloh1:
	ldr	x11, [x11, _DDCB_COMPLETED_BE32@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.2:
	str	w9, [x21]
	add	x10, x9, #1
	ldrsw	x11, [x20, #8]
	udiv	x12, x10, x11
	msub	x10, x12, x11, x10
	str	x10, [x20]
	mov	w10, #12
	madd	x21, x9, x10, x8
	str	xzr, [x19, #208]
	stp	xzr, xzr, [x19]
	movi.2d	v0, #0000000000000000
Lloh3:
	adrp	x8, _DDCB_PRESET_PRE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DDCB_PRESET_PRE@GOTPAGEOFF]
	stp	q0, q0, [x19, #128]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldr	w0, [x20, #12]
	add	w8, w0, #1
	str	w8, [x20, #12]
	bl	_cpu_to_be16
	str	w0, [x21, #4]
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DDCB_COMPLETED_BE32,4,2        ; @DDCB_COMPLETED_BE32
	.comm	_DDCB_PRESET_PRE,4,2            ; @DDCB_PRESET_PRE
	.no_dead_strip	_get_next_ddcb
.subsections_via_symbols
