	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dn_compat_copy_pipe            ## -- Begin function dn_compat_copy_pipe
	.p2align	4, 0x90
_dn_compat_copy_pipe:                   ## @dn_compat_copy_pipe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movq	8(%rdi), %rax
	subl	(%rax), %ebx
	movq	_DN_HAVE_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	(%rsi), %rdi
	testl	%eax, 8(%rsi)
	je	LBB0_2
## %bb.1:
	callq	_dn_ht_entries
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	testq	%rdi, %rdi
	setne	%al
LBB0_3:
	leal	4(,%rax,4), %edx
	cmpl	%edx, %ebx
	jge	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_D
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_dn_c_copy_pipe
	movl	(%r12), %eax
	movq	(%r15), %rdi
	testl	%eax, 8(%r15)
	je	LBB0_7
## %bb.6:
	movq	_dn_c_copy_q@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_dn_ht_scan
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movq	%r14, %rsi
	callq	_dn_c_copy_q
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DN_HAVE_MASK,4,2               ## @DN_HAVE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"have %d < need %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dn_compat_copy_pipe            ; -- Begin function dn_compat_copy_pipe
	.p2align	2
_dn_compat_copy_pipe:                   ; @dn_compat_copy_pipe
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	sub	w21, w8, w9
	ldr	w8, [x1, #8]
Lloh0:
	adrp	x22, _DN_HAVE_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DN_HAVE_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
	ldr	x0, [x1]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_dn_ht_entries
	mov	x8, x0
	b	LBB0_3
LBB0_2:
	cmp	x0, #0
	cset	w8, ne
LBB0_3:
	lsl	w9, w8, #2
	add	w2, w9, #4
	cmp	w21, w2
	b.ge	LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_D
	mov	w0, #1
	b	LBB0_10
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x8
	bl	_dn_c_copy_pipe
	ldr	w8, [x20, #8]
	ldr	w9, [x22]
	ldr	x0, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, _dn_c_copy_q@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dn_c_copy_q@GOTPAGEOFF]
	mov	x2, x19
	bl	_dn_ht_scan
	b	LBB0_9
LBB0_7:
	cbz	x0, LBB0_10
; %bb.8:
	mov	x1, x19
	bl	_dn_c_copy_q
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DN_HAVE_MASK,4,2               ; @DN_HAVE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"have %d < need %d"

.subsections_via_symbols
