	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_write_pax_header_xattr
_archive_write_pax_header_xattr:        ## @archive_write_pax_header_xattr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_WRITE_LIBARCHIVE_XATTR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_base64_encode
	movq	%rax, %r13
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_archive_string_init
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_archive_strcpy
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_archive_strcat
	leaq	4(%rbx), %rdi
	movl	-48(%rbp), %esi
	movq	%r13, %rdx
	callq	_add_pax_attr
	leaq	-48(%rbp), %rdi
	callq	_archive_string_free
LBB0_4:
	movq	%r13, %rdi
	callq	_free
	movl	(%rbx), %eax
LBB0_5:
	movq	_WRITE_SCHILY_XATTR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_archive_string_init
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_archive_strcpy
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_archive_strcat
	addq	$4, %rbx
	movl	-48(%rbp), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_add_pax_attr_binary
	movq	%r13, %rdi
	callq	_archive_string_free
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_LIBARCHIVE_XATTR,4,2     ## @WRITE_LIBARCHIVE_XATTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LIBARCHIVE.xattr."

	.comm	_WRITE_SCHILY_XATTR,4,2         ## @WRITE_SCHILY_XATTR
L_.str.1:                               ## @.str.1
	.asciz	"SCHILY.xattr."

	.no_dead_strip	_archive_write_pax_header_xattr
.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_xattr
_archive_write_pax_header_xattr:        ; @archive_write_pax_header_xattr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WRITE_LIBARCHIVE_XATTR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WRITE_LIBARCHIVE_XATTR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_base64_encode
	mov	x23, x0
	cbz	x22, LBB0_4
; %bb.2:
	cbz	x23, LBB0_4
; %bb.3:
	add	x0, sp, #8
	bl	_archive_string_init
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_archive_strcpy
	add	x0, sp, #8
	mov	x1, x22
	bl	_archive_strcat
	add	x0, x21, #4
	ldr	w1, [sp, #8]
	mov	x2, x23
	bl	_add_pax_attr
	add	x0, sp, #8
	bl	_archive_string_free
LBB0_4:
	mov	x0, x23
	bl	_free
	ldr	w8, [x21]
LBB0_5:
Lloh5:
	adrp	x9, _WRITE_SCHILY_XATTR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WRITE_SCHILY_XATTR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	add	x0, sp, #8
	bl	_archive_string_init
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_archive_strcpy
	add	x0, sp, #8
	mov	x1, x22
	bl	_archive_strcat
	add	x0, x21, #4
	ldr	w1, [sp, #8]
	mov	x2, x20
	mov	x3, x19
	bl	_add_pax_attr_binary
	add	x0, sp, #8
	bl	_archive_string_free
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_LIBARCHIVE_XATTR,4,2     ; @WRITE_LIBARCHIVE_XATTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LIBARCHIVE.xattr."

	.comm	_WRITE_SCHILY_XATTR,4,2         ; @WRITE_SCHILY_XATTR
l_.str.1:                               ; @.str.1
	.asciz	"SCHILY.xattr."

	.no_dead_strip	_archive_write_pax_header_xattr
.subsections_via_symbols
