	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rd_start                       ## -- Begin function rd_start
	.p2align	4, 0x90
_rd_start:                              ## @rd_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_bufmem@GOTPCREL(%rip), %rax
	movq	_BLKMULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(,%rcx,4), %rdx
	addq	(%rax), %rdx
	movq	_buf@GOTPCREL(%rip), %rbx
	movq	%rdx, (%rbx)
	movq	_act@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_APPND@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_10
## %bb.1:
	movq	_wrblksz@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_10
## %bb.2:
	movq	_MAXBLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r8
	jbe	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r8, %rdx
	movq	%rax, %rcx
	jmp	LBB0_9
LBB0_4:
	movq	%r8, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	je	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r8, %rdx
LBB0_9:
	callq	_paxwarn
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_5:
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_8
LBB0_10:
	movq	_arcname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ar_open
	testq	%rax, %rax
	jns	LBB0_13
## %bb.11:
	xorl	%eax, %eax
	callq	_ar_next
	testq	%rax, %rax
	js	LBB0_12
LBB0_13:
	movq	_rdblksz@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rbx), %rax
	movq	_bufend@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_bufpt@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_rdcnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	movl	$-1, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_bufmem,8,3                     ## @bufmem
	.comm	_BLKMULT,8,3                    ## @BLKMULT
	.comm	_buf,8,3                        ## @buf
	.comm	_act,8,3                        ## @act
	.comm	_APPND,8,3                      ## @APPND
	.comm	_wrblksz,8,3                    ## @wrblksz
	.comm	_MAXBLK,8,3                     ## @MAXBLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write block size %d too large, maximum is: %d"

L_.str.1:                               ## @.str.1
	.asciz	"Write block size %d is not a %d byte multiple"

	.comm	_arcname,4,2                    ## @arcname
	.comm	_rdblksz,4,2                    ## @rdblksz
	.comm	_bufend,8,3                     ## @bufend
	.comm	_bufpt,8,3                      ## @bufpt
	.comm	_rdcnt,8,3                      ## @rdcnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rd_start                       ; -- Begin function rd_start
	.p2align	2
_rd_start:                              ; @rd_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _bufmem@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bufmem@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _BLKMULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BLKMULT@GOTPAGEOFF]
Lloh5:
	ldr	x3, [x9]
	add	x8, x8, x3, lsl #2
Lloh6:
	adrp	x19, _buf@GOTPAGE
Lloh7:
	ldr	x19, [x19, _buf@GOTPAGEOFF]
	str	x8, [x19]
Lloh8:
	adrp	x8, _act@GOTPAGE
Lloh9:
	ldr	x8, [x8, _act@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _APPND@GOTPAGE
Lloh12:
	ldr	x9, [x9, _APPND@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _wrblksz@GOTPAGE
Lloh15:
	ldr	x10, [x10, _wrblksz@GOTPAGEOFF]
Lloh16:
	ldr	x2, [x10]
	cmp	x8, x9
	ccmp	x2, #0, #4, eq
	b.ne	LBB0_4
LBB0_1:
Lloh17:
	adrp	x8, _arcname@GOTPAGE
Lloh18:
	ldr	x8, [x8, _arcname@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_ar_open
	tbz	x0, #63, LBB0_3
; %bb.2:
	bl	_ar_next
	tbnz	x0, #63, LBB0_9
LBB0_3:
	mov	w0, #0
Lloh20:
	adrp	x8, _rdblksz@GOTPAGE
Lloh21:
	ldr	x8, [x8, _rdblksz@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh22:
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #2
Lloh23:
	adrp	x9, _bufend@GOTPAGE
Lloh24:
	ldr	x9, [x9, _bufend@GOTPAGEOFF]
Lloh25:
	str	x8, [x9]
Lloh26:
	adrp	x9, _bufpt@GOTPAGE
Lloh27:
	ldr	x9, [x9, _bufpt@GOTPAGEOFF]
Lloh28:
	str	x8, [x9]
Lloh29:
	adrp	x8, _rdcnt@GOTPAGE
Lloh30:
	ldr	x8, [x8, _rdcnt@GOTPAGEOFF]
Lloh31:
	str	xzr, [x8]
	b	LBB0_10
LBB0_4:
Lloh32:
	adrp	x8, _MAXBLK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MAXBLK@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ls	LBB0_6
; %bb.5:
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x8
	b	LBB0_8
LBB0_6:
	udiv	x8, x2, x3
	msub	x8, x8, x3, x2
	cbz	x8, LBB0_1
; %bb.7:
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
LBB0_8:
	bl	_paxwarn
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_bufmem,8,3                     ; @bufmem
	.comm	_BLKMULT,8,3                    ; @BLKMULT
	.comm	_buf,8,3                        ; @buf
	.comm	_act,8,3                        ; @act
	.comm	_APPND,8,3                      ; @APPND
	.comm	_wrblksz,8,3                    ; @wrblksz
	.comm	_MAXBLK,8,3                     ; @MAXBLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write block size %d too large, maximum is: %d"

l_.str.1:                               ; @.str.1
	.asciz	"Write block size %d is not a %d byte multiple"

	.comm	_arcname,4,2                    ; @arcname
	.comm	_rdblksz,4,2                    ; @rdblksz
	.comm	_bufend,8,3                     ; @bufend
	.comm	_bufpt,8,3                      ; @bufpt
	.comm	_rdcnt,8,3                      ; @rdcnt
.subsections_via_symbols
