	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_cvid_header
_write_cvid_header:                     ## @write_cvid_header
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	testl	%r8d, %r8d
	sete	(%rsi)
	leaq	1(%rsi), %rdi
	movq	_CVID_HEADER_SIZE@GOTPCREL(%rip), %r12
	addl	(%r12), %ecx
	movl	%ecx, %esi
	callq	_AV_WB24
	leaq	4(%rbx), %rdi
	movl	(%r15), %esi
	callq	_AV_WB16
	leaq	6(%rbx), %rdi
	movl	4(%r15), %esi
	callq	_AV_WB16
	addq	$8, %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_AV_WB16
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CVID_HEADER_SIZE,4,2           ## @CVID_HEADER_SIZE
	.no_dead_strip	_write_cvid_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_cvid_header
_write_cvid_header:                     ; @write_cvid_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w4, #0
	cset	w8, eq
	mov	x22, x1
	strb	w8, [x22], #8
	add	x0, x1, #1
Lloh0:
	adrp	x23, _CVID_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CVID_HEADER_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w1, w8, w3
	bl	_AV_WB24
	add	x0, x20, #4
	ldr	w1, [x21]
	bl	_AV_WB16
	add	x0, x20, #6
	ldr	w1, [x21, #4]
	bl	_AV_WB16
	mov	x0, x22
	mov	x1, x19
	bl	_AV_WB16
	ldr	w0, [x23]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CVID_HEADER_SIZE,4,2           ; @CVID_HEADER_SIZE
	.no_dead_strip	_write_cvid_header
.subsections_via_symbols
