	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enqueue_ddcb
_enqueue_ddcb:                          ## @enqueue_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_ddcb_mark_unused
	movl	%r15d, %eax
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
LBB0_2:
	movq	8(%rbx), %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	%eax, %rbx
	movq	%r12, %rdi
	callq	_ddcb_mark_appended
	movl	-4(%r13,%rbx,4), %r14d
	movq	_DDCB_COMPLETED_BE32@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
LBB0_6:
	movq	%r12, %rdi
	callq	_ddcb_mark_tapped
	shll	$8, %r15d
	xorl	%eax, %eax
	callq	_wmb
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	___genwqe_writeq
	movq	_RET_DDCB_TAPPED@GOTPCREL(%rip), %r13
LBB0_7:
	movl	(%r13), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-4(,%rbx,4), %rbx
	addq	%r13, %rbx
	movq	_DDCB_NEXT_BE32@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	orl	%r14d, %r13d
	xorl	%eax, %eax
	callq	_wmb
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_cmpxchg
	movq	_RET_DDCB_APPENDED@GOTPCREL(%rip), %r13
	cmpl	%r14d, %eax
	je	LBB0_7
## %bb.4:
	movl	(%rbx), %r14d
	movq	_DDCB_COMPLETED_BE32@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_DDCB_NEXT_BE32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r14d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_wmb
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_cmpxchg
	cmpl	%r14d, %eax
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DDCB_COMPLETED_BE32,4,2        ## @DDCB_COMPLETED_BE32
	.comm	_DDCB_NEXT_BE32,4,2             ## @DDCB_NEXT_BE32
	.comm	_RET_DDCB_APPENDED,4,2          ## @RET_DDCB_APPENDED
	.comm	_RET_DDCB_TAPPED,4,2            ## @RET_DDCB_TAPPED
	.no_dead_strip	_enqueue_ddcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enqueue_ddcb
_enqueue_ddcb:                          ; @enqueue_ddcb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_ddcb_mark_unused
	mov	x23, x21
	cbnz	w21, LBB0_2
; %bb.1:
	ldr	w23, [x20]
LBB0_2:
	ldr	x24, [x20, #8]
	mov	x0, x22
	bl	_ddcb_mark_appended
	add	x23, x24, w23, sxtw #2
	ldr	w24, [x23, #-4]!
Lloh0:
	adrp	x26, _DDCB_COMPLETED_BE32@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DDCB_COMPLETED_BE32@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w24
	b.eq	LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_ddcb_mark_tapped
	lsl	w21, w21, #8
	bl	_wmb
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	x2, x21
	bl	___genwqe_writeq
Lloh2:
	adrp	x8, _RET_DDCB_TAPPED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RET_DDCB_TAPPED@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x27, _DDCB_NEXT_BE32@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DDCB_NEXT_BE32@GOTPAGEOFF]
	ldr	w8, [x27]
	orr	w25, w8, w24
	bl	_wmb
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_cmpxchg
	cmp	w0, w24
	b.ne	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _RET_DDCB_APPENDED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RET_DDCB_APPENDED@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w24, [x23]
	ldr	w8, [x26]
	tst	w8, w24
	b.ne	LBB0_3
; %bb.8:
	ldr	w8, [x27]
	orr	w25, w8, w24
	bl	_wmb
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_cmpxchg
	cmp	w0, w24
	b.ne	LBB0_3
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DDCB_COMPLETED_BE32,4,2        ; @DDCB_COMPLETED_BE32
	.comm	_DDCB_NEXT_BE32,4,2             ; @DDCB_NEXT_BE32
	.comm	_RET_DDCB_APPENDED,4,2          ; @RET_DDCB_APPENDED
	.comm	_RET_DDCB_TAPPED,4,2            ; @RET_DDCB_TAPPED
	.no_dead_strip	_enqueue_ddcb
.subsections_via_symbols
