	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_read                        ## -- Begin function ar_read
	.p2align	4, 0x90
_ar_read:                               ## @ar_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_lstrval@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.1:
	movl	%esi, %edx
	movq	%rdi, %rsi
	movq	_artyp@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_arfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read
	movl	%eax, %ebx
	cmpl	$128, %r15d
	jne	LBB0_6
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.3:
	movq	_io_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_rdblksz@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_11
## %bb.4:
	movl	%ebx, (%rax)
	movq	_BLKMULT@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	je	LBB0_11
## %bb.5:
	movq	_invld_rec@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_11
LBB0_6:
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.7:
	movq	_io_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_11
LBB0_8:
	movl	%ebx, (%r14)
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.10:
	movq	_arvol@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_paxwarn
	jmp	LBB0_11
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_arvol@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_syswarn
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lstrval,4,2                    ## @lstrval
	.comm	_artyp,4,2                      ## @artyp
	.comm	_arfd,4,2                       ## @arfd
	.comm	_io_ok,4,2                      ## @io_ok
	.comm	_rdblksz,4,2                    ## @rdblksz
	.comm	_BLKMULT,4,2                    ## @BLKMULT
	.comm	_invld_rec,4,2                  ## @invld_rec
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed read on archive volume %d"

	.comm	_arvol,4,2                      ## @arvol
L_.str.1:                               ## @.str.1
	.asciz	"End of archive volume %d reached"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_read                        ; -- Begin function ar_read
	.p2align	2
_ar_read:                               ; @ar_read
	.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
Lloh0:
	adrp	x20, _lstrval@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lstrval@GOTPAGEOFF]
	ldr	w19, [x20]
	cmp	w19, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x2, x1
	mov	x1, x0
Lloh2:
	adrp	x8, _artyp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _artyp@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	adrp	x8, _arfd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _arfd@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_read
	mov	x19, x0
	cmp	w21, #128
	b.ne	LBB0_6
; %bb.2:
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.3:
Lloh8:
	adrp	x8, _io_ok@GOTPAGE
Lloh9:
	ldr	x8, [x8, _io_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh10:
	str	w9, [x8]
Lloh11:
	adrp	x8, _rdblksz@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rdblksz@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w19, w9
	b.eq	LBB0_12
; %bb.4:
	str	w19, [x8]
Lloh13:
	adrp	x8, _BLKMULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BLKMULT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	sdiv	w9, w19, w8
	msub	w8, w9, w8, w19
	cbz	w8, LBB0_12
; %bb.5:
Lloh16:
	adrp	x8, _invld_rec@GOTPAGE
Lloh17:
	ldr	x8, [x8, _invld_rec@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.7:
Lloh18:
	adrp	x8, _io_ok@GOTPAGE
Lloh19:
	ldr	x8, [x8, _io_ok@GOTPAGEOFF]
LBB0_8:
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_12
LBB0_9:
	str	w19, [x20]
	tbnz	w19, #31, LBB0_11
; %bb.10:
Lloh20:
	adrp	x8, _arvol@GOTPAGE
Lloh21:
	ldr	x8, [x8, _arvol@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #0
	bl	_paxwarn
	mov	w19, #0
	b	LBB0_12
LBB0_11:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _arvol@GOTPAGE
Lloh29:
	ldr	x8, [x8, _arvol@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x2, l_.str@PAGE
Lloh32:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_syswarn
LBB0_12:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_lstrval,4,2                    ; @lstrval
	.comm	_artyp,4,2                      ; @artyp
	.comm	_arfd,4,2                       ; @arfd
	.comm	_io_ok,4,2                      ; @io_ok
	.comm	_rdblksz,4,2                    ; @rdblksz
	.comm	_BLKMULT,4,2                    ; @BLKMULT
	.comm	_invld_rec,4,2                  ; @invld_rec
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed read on archive volume %d"

	.comm	_arvol,4,2                      ; @arvol
l_.str.1:                               ; @.str.1
	.asciz	"End of archive volume %d reached"

.subsections_via_symbols
