	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_write_object
_asf_write_object:                      ## @asf_write_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rsi
	movq	_asf_object_list@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	$-1, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	leaq	(%rax,%rax,2), %rdx
	movq	(%rcx,%rdx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rbx, %rdx
	jne	LBB0_1
LBB0_3:
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.4:
	movl	%eax, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rsi), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_vc_container_writer_extraio_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_6:
	xorl	%edi, %edi
	callq	_vc_container_assert
	movq	_VC_CONTAINER_ERROR_CORRUPTED@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	(%r15), %rax
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movq	%r14, %rdi
	callq	*8(%rax,%rcx,8)
	movq	%r14, %rdi
	callq	_STREAM_POSITION
	movq	%rax, %r15
LBB0_8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_vc_container_writer_extraio_disable
	movq	_ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_WRITE_U32
	movq	_asf_object_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*8(%rax,%rcx,8)                 ## TAILCALL
LBB0_10:
	movq	_asf_object_list@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	leaq	(,%r13,2), %rbx
	addq	%r13, %rbx
	movl	20(%rax,%rbx,8), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_WRITE_GUID
	cmpl	$4, %eax
	jne	LBB0_13
## %bb.11:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	shlq	$3, %r13
	movq	%r15, %rbx
	leaq	(,%r13,2), %r15
	addq	%r13, %r15
	movl	16(%rax,%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_LOG_FORMAT
	movq	_ASF_OBJECT_HEADER_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_WRITE_U64
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incl	(%rbx)
	movq	(%r12), %rax
	movq	%r14, %rdi
	callq	*8(%rax,%r15)
	decl	(%rbx)
	movq	%rax, %rbx
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_15
## %bb.12:
	movq	(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rax,%rcx,8), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_LOG_DEBUG
	jmp	LBB0_15
LBB0_13:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rbx
LBB0_15:
	movq	%rbx, %rax
	addq	$24, %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	_asf_object_list,8,3            ## @asf_object_list
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,8,3 ## @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL,8,3 ## @ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Header Extension Data Size"

L_.str.1:                               ## @.str.1
	.asciz	"Object ID"

	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ## @VC_CONTAINER_ERROR_EOS
L_.str.2:                               ## @.str.2
	.asciz	"Object Name: %s"

	.comm	_ASF_OBJECT_HEADER_SIZE,8,3     ## @ASF_OBJECT_HEADER_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Object Size"

L_.str.4:                               ## @.str.4
	.asciz	"object %s appears to be corrupted"

	.no_dead_strip	_asf_write_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_write_object
_asf_write_object:                      ; @asf_write_object
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x25, [x8]
Lloh0:
	adrp	x24, _asf_object_list@GOTPAGE
Lloh1:
	ldr	x24, [x24, _asf_object_list@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w23, #-1
	mov	w9, #24
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	umull	x10, w23, w9
	ldr	x10, [x8, x10]
	cmp	x10, #0
	ccmp	x10, x20, #4, ne
	b.ne	LBB0_1
; %bb.2:
	cbz	x10, LBB0_5
; %bb.3:
	add	x22, x25, #4
	mov	x0, x19
	mov	x1, x22
	bl	_vc_container_writer_extraio_enable
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, #0
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	bl	_vc_container_assert
Lloh2:
	adrp	x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x23, x9, x8
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_STREAM_POSITION
	mov	x21, x0
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	bl	_vc_container_writer_extraio_disable
Lloh4:
	adrp	x8, _ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.8:
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_WRITE_U32
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x23, x9, x8
	ldr	x1, [x8, #8]
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x1
LBB0_9:
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x23, x9, x8
	ldr	w1, [x8, #20]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_WRITE_GUID
	cmp	w0, #4
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x24]
	add	x9, x23, x23, lsl #1
	lsl	x20, x9, #3
	add	x8, x8, x20
	ldr	w2, [x8, #16]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_LOG_FORMAT
Lloh13:
	adrp	x8, _ASF_OBJECT_HEADER_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASF_OBJECT_HEADER_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x1, x8, x21
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U64
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	ldr	x8, [x24]
	add	x8, x8, x20
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	ldr	w8, [x25]
	sub	w8, w8, #1
	str	w8, [x25]
Lloh18:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.11:
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #16]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
	b	LBB0_14
LBB0_12:
Lloh23:
	adrp	x8, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
LBB0_13:
	ldr	x20, [x8]
LBB0_14:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_asf_object_list,8,3            ; @asf_object_list
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,8,3 ; @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL,8,3 ; @ASF_OBJECT_TYPE_HEADER_EXT_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Header Extension Data Size"

l_.str.1:                               ; @.str.1
	.asciz	"Object ID"

	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ; @VC_CONTAINER_ERROR_EOS
l_.str.2:                               ; @.str.2
	.asciz	"Object Name: %s"

	.comm	_ASF_OBJECT_HEADER_SIZE,8,3     ; @ASF_OBJECT_HEADER_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Object Size"

l_.str.4:                               ; @.str.4
	.asciz	"object %s appears to be corrupted"

	.no_dead_strip	_asf_write_object
.subsections_via_symbols
