	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_ar
_sync_ar:                               ## @sync_ar
	.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	%rdi, %r15
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movslq	4(%r15), %rax
	testb	$1, %al
	je	LBB0_3
## %bb.2:
	movq	8(%r15), %rcx
	leal	1(%rax), %edx
	movl	%edx, 4(%r15)
	movb	$0, (%rcx,%rax)
LBB0_3:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movslq	24(%r15), %rcx
	testb	$1, %cl
	je	LBB0_6
## %bb.5:
	leal	1(%rcx), %edx
	movl	%edx, 24(%r15)
	movb	$10, (%rax,%rcx)
LBB0_6:
	movslq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movslq	4(%r15), %rcx
	leaq	(%rcx,%rax,4), %rcx
	movq	__ARMAG_LEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	__ARHDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rcx), %r14
	addq	$4, %r14
	cmpq	$0, 16(%r15)
	je	LBB0_9
## %bb.8:
	movslq	24(%r15), %rcx
	addq	%rax, %r14
	addq	%rcx, %r14
LBB0_9:
	movq	32(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rdi
	addq	%r14, %rdi
	callq	_htobe32
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jb	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__ARMAG_LEN,8,3                 ## @_ARMAG_LEN
	.comm	__ARHDR_LEN,8,3                 ## @_ARHDR_LEN
	.no_dead_strip	_sync_ar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_ar
_sync_ar:                               ; @sync_ar
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	ldrsw	x8, [x19, #4]
	tbz	w8, #0, LBB0_3
; %bb.2:
	ldr	x9, [x19, #8]
	add	w10, w8, #1
	str	w10, [x19, #4]
	strb	wzr, [x9, x8]
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldrsw	x9, [x19, #24]
	tbz	w9, #0, LBB0_6
; %bb.5:
	add	w10, w9, #1
	str	w10, [x19, #24]
	mov	w10, #10
	strb	w10, [x8, x9]
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.7:
	add	w8, w8, #1
	ldrsw	x9, [x19, #4]
	add	x9, x9, w8, sxtw #2
Lloh0:
	adrp	x8, __ARMAG_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, __ARMAG_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, __ARHDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, __ARHDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x9, x10
	add	x20, x9, x8
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_9
; %bb.8:
	ldrsw	x9, [x19, #24]
	add	x8, x20, x8
	add	x20, x8, x9
LBB0_9:
	mov	x21, #0
	ldr	x8, [x19, #32]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x22, x21, #3
	ldr	x8, [x8, x22]
	add	x0, x8, x20
	bl	_htobe32
	ldr	x8, [x19, #32]
	str	x0, [x8, x22]
	add	x21, x21, #1
	ldrsw	x9, [x19]
	cmp	x21, x9
	b.lo	LBB0_10
LBB0_11:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__ARMAG_LEN,8,3                 ; @_ARMAG_LEN
	.comm	__ARHDR_LEN,8,3                 ; @_ARHDR_LEN
	.no_dead_strip	_sync_ar
.subsections_via_symbols
