	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_write_pax_header_xattrs
_archive_write_pax_header_xattrs:       ## @archive_write_pax_header_xattrs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_archive_entry_xattr_reset
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rcx
	movq	%r12, %rdi
	callq	_archive_write_pax_header_xattr
	testl	%ebx, %ebx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_archive_entry_xattr_next
	movq	-72(%rbp), %rdi
	callq	_url_encode
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	8(%r12), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_archive_strcpy_l
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_free
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rsi
	jmp	LBB0_7
LBB0_8:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate memory for Linkname"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_archive_write_pax_header_xattrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_write_pax_header_xattrs
_archive_write_pax_header_xattrs:       ; @archive_write_pax_header_xattrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	bl	_archive_entry_xattr_reset
	cbz	w0, LBB0_8
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x25, _errno@GOTPAGE
Lloh1:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x26, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x25]
	ldr	x8, [x26]
	cmp	x1, x8
	b.eq	LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w22, w22, #1
	ldp	x3, x2, [sp, #8]
	mov	x0, x21
	bl	_archive_write_pax_header_xattr
	cbz	w22, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	bl	_archive_entry_xattr_next
	ldr	x0, [sp, #24]
	bl	_url_encode
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	ldr	w2, [x21, #8]
	mov	x0, x21
	mov	x1, x23
	bl	_archive_strcpy_l
	mov	x24, x0
	mov	x0, x23
	bl	_free
	cbnz	w24, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x21]
	b	LBB0_4
LBB0_8:
Lloh4:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh8:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate memory for Linkname"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_archive_write_pax_header_xattrs
.subsections_via_symbols
