	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_buf_write                   ## -- Begin function dt_buf_write
	.p2align	4, 0x90
_dt_buf_write:                          ## @dt_buf_write
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %r12
	movslq	8(%rsi), %rax
	subq	%rax, %r12
	movq	%r12, %rdi
	movq	%r8, %rsi
	callq	_roundup
	movq	16(%r15), %rsi
	movq	%rbx, %rdi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dt_set_errno                   ## TAILCALL
LBB0_1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	subq	%r12, %rax
	movq	(%r15), %rbx
	leaq	(%rax,%r13), %rsi
	addq	%rbx, %rsi
	movslq	8(%r15), %rcx
	movslq	24(%r15), %r14
	leaq	(%r14,%rcx), %rdx
	cmpq	%rdx, %rsi
	jbe	LBB0_9
## %bb.2:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r14,2), %rdx
	addq	%r14, %r14
	movl	$1, %r13d
	cmpq	%rdx, %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jbe	LBB0_3
## %bb.4:
	movl	$1, %r13d
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	leaq	(%rcx,%r14,2), %rdx
	addq	%r14, %r14
	cmpq	%rdx, %rsi
	ja	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	%rdi, %rbx
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dt_zalloc
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movslq	8(%r15), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r12, %rdx
	callq	_memmove
	movslq	8(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dt_free
	movl	%ebx, 8(%r15)
	addq	%r12, %rbx
	movl	%r14d, 24(%r15)
	addl	%r13d, 28(%r15)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_9:
	addq	%rax, %rbx
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memmove
	addq	%r13, (%r15)
	jmp	LBB0_10
LBB0_7:
	callq	_dtrace_errno
	movq	%rax, 16(%r15)
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_buf_write                   ; -- Begin function dt_buf_write
	.p2align	2
_dt_buf_write:                          ; @dt_buf_write
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x1]
	ldrsw	x9, [x1, #8]
	sub	x23, x8, x9
	mov	x0, x23
	mov	x1, x4
	bl	_roundup
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x22
	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
	b	_dt_set_errno
LBB0_2:
	ldr	x10, [x19]
	sub	x26, x0, x23
	add	x8, x26, x20
	add	x8, x8, x10
	ldrsw	x9, [x19, #8]
	ldrsw	x11, [x19, #24]
	add	x12, x11, x9
	cmp	x8, x12
	b.ls	LBB0_7
; %bb.3:
	lsl	x24, x11, #1
	add	x10, x24, x9
	mov	w27, #1
	cmp	x8, x10
	b.ls	LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x24, x24, #1
	add	w27, w27, #1
	add	x10, x24, x9
	cmp	x8, x10
	b.hi	LBB0_4
LBB0_5:
	mov	x0, x22
	mov	x1, x24
	bl	_dt_zalloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x25, x0
	ldrsw	x1, [x19, #8]
	mov	x2, x23
	bl	_memmove
	ldrsw	x1, [x19, #8]
	mov	x0, x22
	bl	_dt_free
	str	w25, [x19, #8]
	add	x10, x25, x23
	ldr	w8, [x19, #28]
	add	w8, w8, w27
	stp	w24, w8, [x19, #24]
LBB0_7:
	add	x0, x10, x26
	str	x0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_memmove
	ldr	x8, [x19]
	add	x8, x8, x20
	str	x8, [x19]
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_dtrace_errno
	str	x0, [x19, #16]
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
