	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_writer_extraio_create_temp ## -- Begin function vc_container_writer_extraio_create_temp
	.p2align	4, 0x90
_vc_container_writer_extraio_create_temp: ## @vc_container_writer_extraio_create_temp
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_strlen
	movl	%eax, %ebx
	addl	$5, %ebx
	movl	%ebx, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_vc_container_writer_extraio_create
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_free
	movl	$1, (%r14)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	4(%r14), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_5
LBB0_1:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_5:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.tmp"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_writer_extraio_create_temp ; -- Begin function vc_container_writer_extraio_create_temp
	.p2align	2
_vc_container_writer_extraio_create_temp: ; @vc_container_writer_extraio_create_temp
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_strlen
	add	w21, w0, #5
	mov	x0, x21
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x3, [x8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	bl	_snprintf
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_vc_container_writer_extraio_create
	mov	x21, x0
	mov	x0, x22
	bl	_free
	mov	w8, #1
	str	w8, [x19]
Lloh2:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cbnz	w9, LBB0_5
; %bb.3:
	ldr	w9, [x19, #4]
	str	w9, [x8]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x8]
LBB0_5:
	mov	x0, x21
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.tmp"

.subsections_via_symbols
