	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_global_extended_header
_write_global_extended_header:          ## @write_global_extended_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_oid_to_hex
	movq	_the_hash_algo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdi
	movl	%eax, %edx
	callq	_strbuf_append_ext_header
LBB0_2:
	movl	(%rbx), %edx
	movq	_USTAR_MAX_MTIME@GOTPCREL(%rip), %r14
	cmpl	(%r14), %edx
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_strbuf_append_ext_header_uint
	movl	(%r14), %eax
	movl	%eax, (%rbx)
LBB0_4:
	cmpl	$0, -32(%rbp)
	je	LBB0_6
## %bb.5:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_TYPEFLAG_GLOBAL_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	-48(%rbp), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	callq	_xsnprintf
	movl	-32(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$33206, %edx                    ## imm = 0x81B6
	callq	_prepare_header
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_write_blocked
	movq	-24(%rbp), %rdi
	movl	-32(%rbp), %esi
	callq	_write_blocked
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"comment"

	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.comm	_USTAR_MAX_MTIME,4,2            ## @USTAR_MAX_MTIME
L_.str.1:                               ## @.str.1
	.asciz	"mtime"

	.comm	_TYPEFLAG_GLOBAL_HEADER,4,2     ## @TYPEFLAG_GLOBAL_HEADER
L_.str.2:                               ## @.str.2
	.asciz	"pax_global_header"

	.no_dead_strip	_write_global_extended_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_global_extended_header
_write_global_extended_header:          ; @write_global_extended_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_oid_to_hex
	mov	x2, x0
Lloh3:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_append_ext_header
LBB0_2:
	ldr	w2, [x19]
Lloh8:
	adrp	x20, _USTAR_MAX_MTIME@GOTPAGE
Lloh9:
	ldr	x20, [x20, _USTAR_MAX_MTIME@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w2, w8
	b.le	LBB0_4
; %bb.3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_append_ext_header_uint
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_4:
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh12:
	adrp	x8, _TYPEFLAG_GLOBAL_HEADER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TYPEFLAG_GLOBAL_HEADER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	w8, [x9]
	ldr	w0, [sp]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	bl	_xsnprintf
	ldr	w3, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #33206
	bl	_prepare_header
	mov	x0, sp
	mov	w1, #16
	bl	_write_blocked
	ldr	x0, [sp, #24]
	ldr	w1, [sp, #16]
	bl	_write_blocked
	add	x0, sp, #16
	bl	_strbuf_release
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"comment"

	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.comm	_USTAR_MAX_MTIME,4,2            ; @USTAR_MAX_MTIME
l_.str.1:                               ; @.str.1
	.asciz	"mtime"

	.comm	_TYPEFLAG_GLOBAL_HEADER,4,2     ; @TYPEFLAG_GLOBAL_HEADER
l_.str.2:                               ; @.str.2
	.asciz	"pax_global_header"

	.no_dead_strip	_write_global_extended_header
.subsections_via_symbols
