	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rd_sync                        ## -- Begin function rd_sync
	.p2align	4, 0x90
_rd_sync:                               ## @rd_sync
	.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	_maxflt@GOTPCREL(%rip), %rbx
	movl	$-1, %r15d
	cmpl	$0, (%rbx)
	je	LBB0_16
## %bb.1:
	movq	_act@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_APPND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_paxwarn
	jmp	LBB0_16
LBB0_3:
	xorl	%eax, %eax
	callq	_ar_rdsync
	testq	%rax, %rax
	jns	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_ar_next
	testq	%rax, %rax
	js	LBB0_16
## %bb.5:
	movq	_rdcnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_6:
	movq	_buf@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_blksz@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_ar_read
	testl	%eax, %eax
	jle	LBB0_7
LBB0_15:
	movq	(%r12), %rcx
	movq	_bufpt@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	%eax, %eax
	addq	%rax, %rcx
	movq	_bufend@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_rdcnt@GOTPCREL(%rip), %rcx
	addq	%rax, (%rcx)
	xorl	%r15d, %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_paxwarn
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_ar_next
	testq	%rax, %rax
	js	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_rdcnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%r14d, %r14d
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rdi
	movl	(%r13), %esi
	callq	_ar_read
	testl	%eax, %eax
	jg	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%edx, %r14d
	jge	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%r14d
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_ar_rdsync
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_maxflt,4,2                     ## @maxflt
	.comm	_act,8,3                        ## @act
	.comm	_APPND,8,3                      ## @APPND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to append when there are archive read errors."

	.comm	_rdcnt,8,3                      ## @rdcnt
	.comm	_buf,8,3                        ## @buf
	.comm	_blksz,4,2                      ## @blksz
	.comm	_bufpt,8,3                      ## @bufpt
	.comm	_bufend,8,3                     ## @bufend
L_.str.1:                               ## @.str.1
	.asciz	"Archive read error limit (%d) reached"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rd_sync                        ; -- Begin function rd_sync
	.p2align	2
_rd_sync:                               ; @rd_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x21, _maxflt@GOTPAGE
Lloh1:
	ldr	x21, [x21, _maxflt@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _act@GOTPAGE
Lloh3:
	ldr	x8, [x8, _act@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _APPND@GOTPAGE
Lloh6:
	ldr	x9, [x9, _APPND@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_paxwarn
LBB0_3:
	mov	w0, #-1
	b	LBB0_19
LBB0_4:
	bl	_ar_rdsync
Lloh10:
	adrp	x20, _rdcnt@GOTPAGE
Lloh11:
	ldr	x20, [x20, _rdcnt@GOTPAGEOFF]
	tbz	x0, #63, LBB0_7
; %bb.5:
	bl	_ar_next
	tbnz	x0, #63, LBB0_3
; %bb.6:
	str	xzr, [x20]
LBB0_7:
Lloh12:
	adrp	x22, _buf@GOTPAGE
Lloh13:
	ldr	x22, [x22, _buf@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh14:
	adrp	x23, _blksz@GOTPAGE
Lloh15:
	ldr	x23, [x23, _blksz@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ar_read
	mov	x8, x0
	cmp	w0, #0
	b.gt	LBB0_18
; %bb.8:
	mov	w24, #0
Lloh16:
	adrp	x19, l_.str.1@PAGE
Lloh17:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x22]
	ldr	w1, [x23]
	bl	_ar_read
	cmp	w0, #0
	b.gt	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w24, w8
	b.ge	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w24, w24, #1
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_ar_rdsync
	cbz	x0, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_ar_next
	tbz	x0, #63, LBB0_16
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	str	x8, [sp]
	mov	w0, #0
	mov	x1, x19
	bl	_paxwarn
	bl	_ar_next
	tbnz	x0, #63, LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w24, #0
	str	xzr, [x20]
	b	LBB0_9
LBB0_17:
	mov	x8, x0
LBB0_18:
	mov	w0, #0
	ldr	x9, [x22]
Lloh18:
	adrp	x10, _bufpt@GOTPAGE
Lloh19:
	ldr	x10, [x10, _bufpt@GOTPAGEOFF]
Lloh20:
	str	x9, [x10]
	mov	w8, w8
	add	x9, x9, x8
Lloh21:
	adrp	x10, _bufend@GOTPAGE
Lloh22:
	ldr	x10, [x10, _bufend@GOTPAGEOFF]
Lloh23:
	str	x9, [x10]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_maxflt,4,2                     ; @maxflt
	.comm	_act,8,3                        ; @act
	.comm	_APPND,8,3                      ; @APPND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to append when there are archive read errors."

	.comm	_rdcnt,8,3                      ; @rdcnt
	.comm	_buf,8,3                        ; @buf
	.comm	_blksz,4,2                      ; @blksz
	.comm	_bufpt,8,3                      ; @bufpt
	.comm	_bufend,8,3                     ; @bufend
l_.str.1:                               ; @.str.1
	.asciz	"Archive read error limit (%d) reached"

.subsections_via_symbols
