	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_cached_object
_write_cached_object:                   ## @write_cached_object
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	movl	4(%rsi), %ebx
	movl	8(%rdi), %edi
	callq	_type_name
	leaq	-32(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_write_object_file
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	4(%r14), %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_die
LBB0_2:
	movq	_FLAG_WRITTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write object %s"

	.comm	_FLAG_WRITTEN,4,2               ## @FLAG_WRITTEN
	.no_dead_strip	_write_cached_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_cached_object
_write_cached_object:                   ; @write_cached_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	w21, w20, [x1]
	ldr	w0, [x0, #8]
	bl	_type_name
	mov	x2, x0
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_write_object_file
	tbz	x0, #63, LBB0_2
; %bb.1:
	add	x0, x19, #4
	bl	_oid_to_hex
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
Lloh2:
	adrp	x8, _FLAG_WRITTEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLAG_WRITTEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write object %s"

	.comm	_FLAG_WRITTEN,4,2               ; @FLAG_WRITTEN
	.no_dead_strip	_write_cached_object
.subsections_via_symbols
