	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phar_tar_setmetadata           ## -- Begin function phar_tar_setmetadata
	.p2align	4, 0x90
_phar_tar_setmetadata:                  ## @phar_tar_setmetadata
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	32(%rsi), %r15
	cmpq	$0, 32(%rsi)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_smart_str_free
LBB0_2:
	movq	$0, (%r15)
	callq	_PHP_VAR_SERIALIZE_INIT
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_php_var_serialize
	movl	-44(%rbp), %edi
	callq	_PHP_VAR_SERIALIZE_DESTROY
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	callq	_ZSTR_LEN
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, 64(%rbx)
	movq	%rax, 72(%rbx)
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	movq	(%rbx), %rax
	movq	_PHAR_MOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	callq	_php_stream_close
LBB0_8:
	movq	_PHAR_MOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	$1, 8(%rbx)
	xorl	%eax, %eax
	callq	_php_stream_fopen_tmpfile
	movq	%rax, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	32(%rbx), %rdi
	callq	_ZSTR_LEN
	movq	%rax, %r15
	movq	32(%rbx), %rdi
	movq	40(%rbx), %r12
	callq	_ZSTR_VAL
	movl	%eax, %r13d
	movq	32(%rbx), %rdi
	callq	_ZSTR_LEN
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rax, %rdx
	callq	_php_stream_write
	cmpq	%rax, %r15
	jne	LBB0_11
## %bb.12:
	movq	_ZEND_HASH_APPLY_KEEP@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_spprintf
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_11:
	movl	16(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_spprintf
	movq	24(%rbx), %rdi
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_zend_hash_str_del
	movq	_ZEND_HASH_APPLY_STOP@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHAR_MOD,8,3                   ## @PHAR_MOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phar error: unable to create temporary file"

L_.str.1:                               ## @.str.1
	.asciz	"phar tar error: unable to write metadata to magic metadata file \"%s\""

	.comm	_ZEND_HASH_APPLY_STOP,4,2       ## @ZEND_HASH_APPLY_STOP
	.comm	_ZEND_HASH_APPLY_KEEP,4,2       ## @ZEND_HASH_APPLY_KEEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phar_tar_setmetadata           ; -- Begin function phar_tar_setmetadata
	.p2align	2
_phar_tar_setmetadata:                  ; @phar_tar_setmetadata
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x21, x1
	ldr	x8, [x21, #32]!
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_smart_str_free
LBB0_2:
	str	xzr, [x21]
	bl	_PHP_VAR_SERIALIZE_INIT
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_php_var_serialize
	ldr	w0, [sp, #12]
	bl	_PHP_VAR_SERIALIZE_DESTROY
	ldr	x0, [x21]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_ZSTR_LEN
LBB0_4:
	stp	x0, x0, [x19, #64]
	ldr	x0, [x19, #40]
Lloh0:
	adrp	x21, _PHAR_MOD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHAR_MOD@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	bl	_php_stream_close
LBB0_7:
	ldr	x8, [x21]
	str	x8, [x19]
	mov	w8, #1
	str	w8, [x19, #8]
	bl	_php_stream_fopen_tmpfile
	stp	xzr, xzr, [x19, #48]
	str	x0, [x19, #40]
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x19, #32]
	bl	_ZSTR_LEN
	mov	x21, x0
	ldp	x0, x22, [x19, #32]
	bl	_ZSTR_VAL
	mov	x23, x0
	ldr	x0, [x19, #32]
	bl	_ZSTR_LEN
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_php_stream_write
	cmp	x21, x0
	b.ne	LBB0_11
; %bb.9:
Lloh2:
	adrp	x8, _ZEND_HASH_APPLY_KEEP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZEND_HASH_APPLY_KEEP@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_spprintf
	mov	w0, #-1
	b	LBB0_13
LBB0_11:
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_spprintf
	ldr	x0, [x19, #24]
	ldp	w2, w1, [x19, #12]
	bl	_zend_hash_str_del
Lloh8:
	adrp	x8, _ZEND_HASH_APPLY_STOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZEND_HASH_APPLY_STOP@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHAR_MOD,8,3                   ; @PHAR_MOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phar error: unable to create temporary file"

l_.str.1:                               ; @.str.1
	.asciz	"phar tar error: unable to write metadata to magic metadata file \"%s\""

	.comm	_ZEND_HASH_APPLY_STOP,4,2       ; @ZEND_HASH_APPLY_STOP
	.comm	_ZEND_HASH_APPLY_KEEP,4,2       ; @ZEND_HASH_APPLY_KEEP
.subsections_via_symbols
