	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_rev                         ## -- Begin function ar_rev
	.p2align	4, 0x90
_ar_rev:                                ## @ar_rev
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_lstrval@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	js	LBB0_26
## %bb.1:
	movl	%edi, %r14d
	movq	_artyp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_17
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.3:
	testl	%r14d, %r14d
	jle	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_17:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_phys
	movl	$-1, %r12d
	testl	%eax, %eax
	jle	LBB0_24
## %bb.18:
	movl	%eax, %ecx
	movq	_rdblksz@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movl	$1, %r12d
	testl	%r14d, %r14d
	jle	LBB0_25
## %bb.19:
	xorl	%ebx, %ebx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	je	LBB0_21
## %bb.20:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	movl	$1, %r12d
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.9:
	movq	_arfd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	testl	%eax, %eax
	js	LBB0_10
## %bb.12:
	subl	%r14d, %eax
	jns	LBB0_15
## %bb.13:
	movq	_arvol@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$2, (%rcx)
	jl	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movl	$1, %edi
	callq	_paxwarn
	jmp	LBB0_23
LBB0_4:
	xorl	%ebx, %ebx
	movl	$1, %r12d
	jmp	LBB0_25
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_15:
	movl	(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	_lseek
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_25
## %bb.16:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_11
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_11:
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_syswarn
LBB0_23:
	movl	$-1, %r12d
LBB0_24:
	movl	$-1, %ebx
LBB0_25:
	movl	%r12d, (%r15)
LBB0_26:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_MTBSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -36(%rbp)
	movl	%eax, -40(%rbp)
	movq	_arfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MTIOCTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	jns	LBB0_25
## %bb.22:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %ecx
	leaq	L_.str.5(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_syswarn
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_lstrval,4,2                    ## @lstrval
	.comm	_artyp,4,2                      ## @artyp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reverse positioning on pipes is not supported."

	.comm	_arfd,4,2                       ## @arfd
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Unable to obtain current archive byte offset"

	.comm	_arvol,4,2                      ## @arvol
L_.str.2:                               ## @.str.2
	.asciz	"Reverse position on previous volume."

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"Unable to seek archive backwards"

	.comm	_rdblksz,4,2                    ## @rdblksz
L_.str.4:                               ## @.str.4
	.asciz	"Tape drive unable to backspace requested amount"

	.comm	_MTBSR,4,2                      ## @MTBSR
	.comm	_MTIOCTOP,4,2                   ## @MTIOCTOP
L_.str.5:                               ## @.str.5
	.asciz	"Unable to backspace tape %d blocks."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_rev                         ; -- Begin function ar_rev
	.p2align	2
_ar_rev:                                ; @ar_rev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _lstrval@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lstrval@GOTPAGEOFF]
	ldr	w0, [x20]
	tbnz	w0, #31, LBB0_25
; %bb.1:
Lloh2:
	adrp	x8, _artyp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _artyp@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.3:
	cmp	w19, #1
	b.lt	LBB0_20
; %bb.4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_5:
	bl	_get_phys
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.6:
Lloh7:
	adrp	x8, _rdblksz@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rdblksz@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
	cmp	w19, #1
	b.lt	LBB0_20
; %bb.7:
	udiv	w8, w19, w0
	msub	w9, w8, w0, w19
	cbz	w9, LBB0_16
; %bb.8:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_9:
	cmp	w19, #1
	b.lt	LBB0_20
; %bb.10:
Lloh12:
	adrp	x21, _arfd@GOTPAGE
Lloh13:
	ldr	x21, [x21, _arfd@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	tbnz	w0, #31, LBB0_15
; %bb.11:
	subs	w1, w0, w19
	b.pl	LBB0_19
; %bb.12:
Lloh17:
	adrp	x8, _arvol@GOTPAGE
Lloh18:
	ldr	x8, [x8, _arvol@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.13:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	w0, #1
	bl	_paxwarn
	b	LBB0_23
LBB0_15:
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_16:
Lloh27:
	adrp	x9, _MTBSR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MTBSR@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh30:
	adrp	x8, _arfd@GOTPAGE
Lloh31:
	ldr	x8, [x8, _arfd@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _MTIOCTOP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MTIOCTOP@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbz	w0, #31, LBB0_20
; %bb.17:
Lloh36:
	adrp	x8, _errno@GOTPAGE
Lloh37:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w8, [sp, #8]
	str	x8, [sp]
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_18:
	mov	w1, #0
LBB0_19:
	ldr	w0, [x21]
Lloh41:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	bl	_lseek
	tbnz	w0, #31, LBB0_21
LBB0_20:
	mov	w0, #0
	mov	w8, #1
	b	LBB0_24
LBB0_21:
Lloh44:
	adrp	x8, _errno@GOTPAGE
Lloh45:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x2, l_.str.3@PAGE
Lloh48:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_22:
	mov	w0, #1
	bl	_syswarn
LBB0_23:
	mov	w8, #-1
	mov	w0, #-1
LBB0_24:
	str	w8, [x20]
LBB0_25:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_lstrval,4,2                    ; @lstrval
	.comm	_artyp,4,2                      ; @artyp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reverse positioning on pipes is not supported."

	.comm	_arfd,4,2                       ; @arfd
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Unable to obtain current archive byte offset"

	.comm	_arvol,4,2                      ; @arvol
l_.str.2:                               ; @.str.2
	.asciz	"Reverse position on previous volume."

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"Unable to seek archive backwards"

	.comm	_rdblksz,4,2                    ; @rdblksz
l_.str.4:                               ; @.str.4
	.asciz	"Tape drive unable to backspace requested amount"

	.comm	_MTBSR,4,2                      ; @MTBSR
	.comm	_MTIOCTOP,4,2                   ; @MTIOCTOP
l_.str.5:                               ; @.str.5
	.asciz	"Unable to backspace tape %d blocks."

.subsections_via_symbols
