	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wr_start                       ## -- Begin function wr_start
	.p2align	4, 0x90
_wr_start:                              ## @wr_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -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), %r14
	movq	%rdx, (%r14)
	movq	_wrblksz@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r8
	testq	%r8, %r8
	jne	LBB0_2
## %bb.1:
	movq	_frmt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	movq	%r8, (%rbx)
LBB0_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_11
LBB0_4:
	movq	%r8, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.5:
	movq	%r8, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	je	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	jmp	LBB0_10
LBB0_7:
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_6
LBB0_8:
	movq	_MAXBLK_POSIX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %r8
	jbe	LBB0_14
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
LBB0_10:
	movq	%r8, %rdx
LBB0_11:
	callq	_paxwarn
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	_rdblksz@GOTPCREL(%rip), %rax
	movq	%r8, (%rax)
	movq	_blksz@GOTPCREL(%rip), %rax
	movq	%r8, (%rax)
	movq	_arcname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ar_open
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_ar_next
	testq	%rax, %rax
	js	LBB0_12
LBB0_16:
	movq	_wrcnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	addq	%rax, %rcx
	movq	_bufend@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_bufpt@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_bufmem,8,3                     ## @bufmem
	.comm	_BLKMULT,8,3                    ## @BLKMULT
	.comm	_buf,8,3                        ## @buf
	.comm	_wrblksz,8,3                    ## @wrblksz
	.comm	_frmt,8,3                       ## @frmt
	.comm	_MAXBLK,8,3                     ## @MAXBLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write block size of %d too large, maximum is: %d"

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

	.comm	_MAXBLK_POSIX,8,3               ## @MAXBLK_POSIX
L_.str.2:                               ## @.str.2
	.asciz	"Write block size of %d larger than POSIX max %d, archive may not be portable"

	.comm	_rdblksz,8,3                    ## @rdblksz
	.comm	_blksz,8,3                      ## @blksz
	.comm	_arcname,4,2                    ## @arcname
	.comm	_wrcnt,8,3                      ## @wrcnt
	.comm	_bufend,8,3                     ## @bufend
	.comm	_bufpt,8,3                      ## @bufpt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wr_start                       ; -- Begin function wr_start
	.p2align	2
_wr_start:                              ; @wr_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	x20, _wrblksz@GOTPAGE
Lloh9:
	ldr	x20, [x20, _wrblksz@GOTPAGEOFF]
	ldr	x2, [x20]
	cbnz	x2, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _frmt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _frmt@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x2, [x8]
	str	x2, [x20]
LBB0_2:
Lloh13:
	adrp	x8, _MAXBLK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAXBLK@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ls	LBB0_4
; %bb.3:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x8
	b	LBB0_8
LBB0_4:
	udiv	x8, x2, x3
	msub	x8, x8, x3, x2
	cbz	x8, LBB0_6
; %bb.5:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _MAXBLK_POSIX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAXBLK_POSIX@GOTPAGEOFF]
Lloh22:
	ldr	x3, [x8]
	cmp	x2, x3
	b.ls	LBB0_11
; %bb.7:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
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
LBB0_11:
Lloh25:
	adrp	x8, _rdblksz@GOTPAGE
Lloh26:
	ldr	x8, [x8, _rdblksz@GOTPAGEOFF]
Lloh27:
	str	x2, [x8]
Lloh28:
	adrp	x8, _blksz@GOTPAGE
Lloh29:
	ldr	x8, [x8, _blksz@GOTPAGEOFF]
Lloh30:
	str	x2, [x8]
Lloh31:
	adrp	x8, _arcname@GOTPAGE
Lloh32:
	ldr	x8, [x8, _arcname@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_ar_open
	tbz	x0, #63, LBB0_13
; %bb.12:
	bl	_ar_next
	tbnz	x0, #63, LBB0_9
LBB0_13:
	mov	w0, #0
Lloh34:
	adrp	x8, _wrcnt@GOTPAGE
Lloh35:
	ldr	x8, [x8, _wrcnt@GOTPAGEOFF]
Lloh36:
	str	xzr, [x8]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x9, x8, x9
Lloh37:
	adrp	x10, _bufend@GOTPAGE
Lloh38:
	ldr	x10, [x10, _bufend@GOTPAGEOFF]
Lloh39:
	str	x9, [x10]
Lloh40:
	adrp	x9, _bufpt@GOTPAGE
Lloh41:
	ldr	x9, [x9, _bufpt@GOTPAGEOFF]
Lloh42:
	str	x8, [x9]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_bufmem,8,3                     ; @bufmem
	.comm	_BLKMULT,8,3                    ; @BLKMULT
	.comm	_buf,8,3                        ; @buf
	.comm	_wrblksz,8,3                    ; @wrblksz
	.comm	_frmt,8,3                       ; @frmt
	.comm	_MAXBLK,8,3                     ; @MAXBLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write block size of %d too large, maximum is: %d"

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

	.comm	_MAXBLK_POSIX,8,3               ; @MAXBLK_POSIX
l_.str.2:                               ; @.str.2
	.asciz	"Write block size of %d larger than POSIX max %d, archive may not be portable"

	.comm	_rdblksz,8,3                    ; @rdblksz
	.comm	_blksz,8,3                      ; @blksz
	.comm	_arcname,4,2                    ; @arcname
	.comm	_wrcnt,8,3                      ; @wrcnt
	.comm	_bufend,8,3                     ; @bufend
	.comm	_bufpt,8,3                      ; @bufpt
.subsections_via_symbols
