	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_vprintf                   ## -- Begin function file_vprintf
	.p2align	4, 0x90
_file_vprintf:                          ## @file_vprintf
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EVENT_HAD_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rdi)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	callq	_vasprintf
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	8(%rbx), %rdx
	movq	-32(%rbp), %rcx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	callq	_asprintf
	movl	%eax, %r15d
	movq	-32(%rbp), %rdi
	callq	_free
	testl	%r15d, %r15d
	js	LBB0_6
## %bb.4:
	movq	8(%rbx), %rdi
	callq	_free
	movq	-40(%rbp), %rcx
LBB0_5:
	movq	%rcx, 8(%rbx)
	jmp	LBB0_7
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movl	$-1, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVENT_HAD_ERR,4,2              ## @EVENT_HAD_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"vasprintf failed (%s)"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_vprintf                   ; -- Begin function file_vprintf
	.p2align	2
_file_vprintf:                          ; @file_vprintf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _EVENT_HAD_ERR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVENT_HAD_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	add	x0, sp, #8
	bl	_vasprintf
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	x2, [x19, #8]
	ldr	x3, [sp, #8]
	cbz	x2, LBB0_6
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_asprintf
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_free
	tbnz	w20, #31, LBB0_7
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_free
	ldr	x3, [sp]
LBB0_6:
	mov	w0, #0
	str	x3, [x19, #8]
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EVENT_HAD_ERR,4,2              ; @EVENT_HAD_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"vasprintf failed (%s)"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
