	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dt_unring_buf
_dt_unring_buf:                         ## @dt_unring_buf
	.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	(%rsi), %r15
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	andl	$3, %r15d
	movl	8(%rsi), %esi
	addl	%r15d, %esi
	callq	_dt_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	xorl	%edi, %edi
	testb	$3, 8(%rbx)
	sete	%dil
	callq	_assert
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_bzero
	movl	%r15d, %r14d
	addq	%r13, %r14
	movq	(%rbx), %rax
	movq	16(%rbx), %rsi
	addq	%rax, %rsi
	movl	8(%rbx), %edx
	subl	%eax, %edx
	movq	%r14, %rdi
	callq	_memmove
	movslq	8(%rbx), %rdi
	movq	(%rbx), %rdx
	movq	16(%rbx), %rsi
	subq	%rdx, %rdi
	addq	%r14, %rdi
	xorl	%r14d, %r14d
	callq	_memmove
	movq	16(%rbx), %rsi
	movq	%r12, %rdi
	callq	_dt_free
	movq	$0, (%rbx)
	movq	%r13, 16(%rbx)
	addl	%r15d, 8(%rbx)
	jmp	LBB0_4
LBB0_2:
	movl	$-1, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dt_unring_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_unring_buf
_dt_unring_buf:                         ; @dt_unring_buf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	and	w20, w8, #0x3
	ldr	w8, [x1, #8]
	add	w1, w8, w20
	bl	_dt_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	w8, [x19, #8]
	tst	w8, #0x3
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	mov	x1, x20
	bl	_bzero
	add	x23, x22, w20, uxtw
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	add	x1, x8, x9
	ldr	w8, [x19, #8]
	sub	w2, w8, w9
	mov	x0, x23
	bl	_memmove
	ldrsw	x8, [x19, #8]
	ldr	x2, [x19]
	sub	x8, x8, x2
	add	x0, x23, x8
	ldr	x1, [x19, #16]
	bl	_memmove
	ldr	x1, [x19, #16]
	mov	x0, x21
	bl	_dt_free
	mov	w0, #0
	str	xzr, [x19]
	str	x22, [x19, #16]
	ldr	w8, [x19, #8]
	add	w8, w8, w20
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dt_unring_buf
.subsections_via_symbols
