	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function child_write
_child_write:                           ## @child_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	$-1, %ebx
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.1:
	movq	%rsi, %r12
	cmpl	$-1, (%rsi)
	je	LBB0_25
## %bb.2:
	movq	%rcx, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %edi
	callq	_close
	movl	$-1, 4(%r12)
	movl	(%r12), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_fcntl
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_write
	movq	(%r14), %rcx
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r13), %rcx
	je	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_24
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %edi
	cmpl	$-1, %edi
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	24(%r12), %rdx
	movq	16(%r12), %rsi
	addq	%rax, %rsi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subq	%rax, %rdx
	callq	_read
	movq	(%r14), %rcx
	cmpl	$-1, %eax
	sete	%dl
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpq	(%r13), %rcx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	4(%r12), %edi
	movq	8(%r12), %rax
	movq	16(%r12), %rsi
	addq	%rax, %rsi
	movq	24(%r12), %rdx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EPIPE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	sete	%bl
	andb	%dl, %bl
	cmpb	$1, %bl
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	%dl, %dl
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_22
	jmp	LBB0_24
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_fcntl
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	movl	4(%r12), %esi
	callq	___archive_check_child
	jmp	LBB0_3
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rdx
	addq	8(%r12), %rdx
	movq	%rdx, 8(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	16(%r12), %rsi
	callq	___archive_write_filter
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 8(%r12)
	jmp	LBB0_3
LBB0_24:
	movl	$-1, %ebx
	jmp	LBB0_25
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_8:
	movl	(%r12), %edi
	callq	_close
	movl	$-1, (%r12)
	movl	4(%r12), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_fcntl
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EPIPE,8,3                      ## @EPIPE
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_child_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function child_write
_child_write:                           ; @child_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	x22, x0
	mov	w0, #-1
	cbz	x3, LBB0_22
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
	cmn	w8, #1
	b.eq	LBB0_22
; %bb.2:
	mov	x20, x3
	mov	x21, x2
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x25, _EINTR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
Lloh4:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
Lloh6:
	adrp	x23, _F_SETFL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _F_SETFL@GOTPAGEOFF]
	mov	w27, #-1
Lloh8:
	adrp	x28, _EPIPE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _EPIPE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #4]
	bl	_close
	str	w27, [x19, #4]
	ldr	w0, [x19]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_fcntl
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_write
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #0
	b.gt	LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	cmn	w0, #1
	ccmp	x8, x9, #4, eq
	b.ne	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #4]
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x19, #8]
	add	x1, x9, x8
	ldr	x8, [x19, #24]
	sub	x2, x8, x9
	bl	_read
	ldr	x8, [x24]
	cmn	w0, #1
	cset	w9, eq
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x25]
	cmp	x8, x10
	b.ne	LBB0_12
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #4]
	ldp	x9, x8, [x19, #8]
	add	x1, x9, x8
	ldr	x8, [x19, #24]
	sub	x2, x8, x9
	bl	_read
	cmn	w0, #1
	cset	w9, eq
	ldr	x8, [x24]
	ldr	x10, [x25]
	ccmp	x8, x10, #0, eq
	b.eq	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x28]
	cmp	x8, x10
	cset	w10, eq
	and	w10, w9, w10
	cmp	w10, #1
	b.eq	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w9, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_17
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_fcntl
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w0, w1, [x19]
	bl	___archive_check_child
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x1, [x19, #8]
	add	x2, x8, w0, sxtw
	str	x2, [x19, #8]
	ldr	w0, [x22]
	bl	___archive_write_filter
Lloh10:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x19, #8]
	b	LBB0_4
LBB0_20:
	mov	w0, #-1
	b	LBB0_22
LBB0_21:
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
	ldr	w0, [x19, #4]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_fcntl
	mov	w0, #0
LBB0_22:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EPIPE,8,3                      ; @EPIPE
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_child_write
.subsections_via_symbols
