	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_fow                         ## -- Begin function ar_fow
	.p2align	4, 0x90
_ar_fow:                                ## @ar_fow
	.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	$0, (%rsi)
	xorl	%eax, %eax
	testq	%rdi, %rdi
	jle	LBB0_9
## %bb.1:
	movq	_lstrval@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	movq	_artyp@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ISREG@GOTPCREL(%rip), %rdx
	movl	$0, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_arfd@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_8
## %bb.4:
	leaq	(%rax,%rbx), %rsi
	movq	_arsb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rsi
	jle	LBB0_6
## %bb.5:
	subq	%rax, %rdx
	movq	%rdx, (%r14)
	movq	(%rcx), %rsi
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, (%r14)
LBB0_7:
	movl	(%r12), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_9
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_syswarn
	movl	$-1, (%r15)
	movl	$-1, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lstrval,4,2                    ## @lstrval
	.comm	_artyp,8,3                      ## @artyp
	.comm	_ISREG,8,3                      ## @ISREG
	.comm	_arfd,4,2                       ## @arfd
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_arsb,8,3                       ## @arsb
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Forward positioning operation on archive failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_fow                         ; -- Begin function ar_fow
	.p2align	2
_ar_fow:                                ; @ar_fow
	.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
	str	xzr, [x1]
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x21, _lstrval@GOTPAGE
Lloh1:
	ldr	x21, [x21, _lstrval@GOTPAGEOFF]
	ldr	w0, [x21]
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.2:
Lloh2:
	adrp	x8, _artyp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _artyp@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _ISREG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISREG@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	mov	x19, x1
Lloh8:
	adrp	x22, _arfd@GOTPAGE
Lloh9:
	ldr	x22, [x22, _arfd@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh10:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_lseek
	tbnz	x0, #63, LBB0_10
; %bb.4:
Lloh13:
	adrp	x8, _arsb@GOTPAGE
Lloh14:
	ldr	x8, [x8, _arsb@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x1, x0, x20
	cmp	x1, x9
	b.le	LBB0_6
; %bb.5:
	sub	x9, x9, x0
	str	x9, [x19]
	ldr	x1, [x8]
	b	LBB0_7
LBB0_6:
	str	x20, [x19]
LBB0_7:
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_lseek
	tbnz	x0, #63, LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_syswarn
	mov	w0, #-1
	str	w0, [x21]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_lstrval,4,2                    ; @lstrval
	.comm	_artyp,8,3                      ; @artyp
	.comm	_ISREG,8,3                      ; @ISREG
	.comm	_arfd,4,2                       ; @arfd
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_arsb,8,3                       ; @arsb
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Forward positioning operation on archive failed"

.subsections_via_symbols
