	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_object
_write_object:                          ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_pack_to_stdout@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_crc32_begin
LBB0_2:
	movq	_pack_size_limit@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_nr_written@GOTPCREL(%rip), %rcx
	movq	%rax, %rdx
	subq	%r12, %rdx
	movl	$1, %ebx
	cmovgq	%rdx, %rbx
	xorl	%r12d, %r12d
	cmpl	$0, (%rcx)
	cmoveq	%r12, %rbx
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	movq	%r15, %rdi
	callq	_DELTA
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%r12d, %r12d
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_DELTA
	cmpq	$-1, (%rax)
	movb	$1, %r13b
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_DELTA
	xorl	%r12d, %r12d
	cmpq	$0, (%rax)
	sete	%r13b
	setne	%r12b
	jmp	LBB0_8
LBB0_3:
	movb	$1, %r13b
	jmp	LBB0_8
LBB0_5:
	movl	$1, %r12d
	xorl	%r13d, %r13d
LBB0_8:
	movq	_reuse_object@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
## %bb.9:
	movq	%r15, %rdi
	callq	_IN_PACK
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movq	%r15, %rdi
	callq	_oe_type
	movq	_OBJ_REF_DELTA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.11:
	movq	%r15, %rdi
	callq	_oe_type
	movq	_OBJ_OFS_DELTA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_15:
	testl	%r12d, %r12d
	je	LBB0_16
LBB0_14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_write_reuse_object
	jmp	LBB0_17
LBB0_12:
	movq	%r15, %rdi
	callq	_oe_type
	cmpq	(%r15), %rax
	jne	LBB0_16
## %bb.13:
	movq	%r15, %rdi
	callq	_DELTA
	testq	%rax, %rax
	je	LBB0_14
LBB0_16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_write_no_reuse_object
LBB0_17:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	testb	%r13b, %r13b
	jne	LBB0_20
## %bb.19:
	movq	_written_delta@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_20:
	movq	_written@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_pack_to_stdout@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	callq	_crc32_end
	movl	%eax, 8(%r15)
LBB0_22:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pack_to_stdout,4,2             ## @pack_to_stdout
	.comm	_pack_size_limit,8,3            ## @pack_size_limit
	.comm	_nr_written,4,2                 ## @nr_written
	.comm	_reuse_object,4,2               ## @reuse_object
	.comm	_OBJ_REF_DELTA,8,3              ## @OBJ_REF_DELTA
	.comm	_OBJ_OFS_DELTA,8,3              ## @OBJ_OFS_DELTA
	.comm	_written_delta,4,2              ## @written_delta
	.comm	_written,4,2                    ## @written
	.no_dead_strip	_write_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_object
_write_object:                          ; @write_object
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _pack_to_stdout@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pack_to_stdout@GOTPAGEOFF]
	ldr	w8, [x23]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_crc32_begin
LBB0_2:
Lloh2:
	adrp	x22, _pack_size_limit@GOTPAGE
Lloh3:
	ldr	x22, [x22, _pack_size_limit@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _nr_written@GOTPAGE
Lloh5:
	ldr	x9, [x9, _nr_written@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	subs	x10, x8, x21
	csinc	x10, x10, xzr, gt
	cmp	w9, #0
	ccmp	x8, #0, #4, ne
	csel	x21, x10, xzr, ne
	mov	x0, x19
	bl	_DELTA
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_DELTA
	ldr	x8, [x0]
	cmn	x8, #1
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_DELTA
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w24, eq
	cset	w22, ne
	b	LBB0_8
LBB0_6:
	mov	w22, #0
	mov	w24, #1
	b	LBB0_8
LBB0_7:
	mov	w24, #0
	mov	w22, #1
LBB0_8:
Lloh7:
	adrp	x8, _reuse_object@GOTPAGE
Lloh8:
	ldr	x8, [x8, _reuse_object@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.9:
	mov	x0, x19
	bl	_IN_PACK
	cbz	w0, LBB0_16
; %bb.10:
	mov	x0, x19
	bl	_oe_type
Lloh10:
	adrp	x8, _OBJ_REF_DELTA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OBJ_REF_DELTA@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_oe_type
Lloh13:
	adrp	x8, _OBJ_OFS_DELTA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OBJ_OFS_DELTA@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
LBB0_12:
	cbz	w22, LBB0_16
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_write_reuse_object
	mov	x21, x0
	cbnz	x0, LBB0_17
	b	LBB0_21
LBB0_14:
	mov	x0, x19
	bl	_oe_type
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_DELTA
	cbz	x0, LBB0_13
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_write_no_reuse_object
	mov	x21, x0
	cbz	x0, LBB0_21
LBB0_17:
	tbnz	w24, #0, LBB0_19
; %bb.18:
Lloh16:
	adrp	x8, _written_delta@GOTPAGE
Lloh17:
	ldr	x8, [x8, _written_delta@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_19:
Lloh18:
	adrp	x8, _written@GOTPAGE
Lloh19:
	ldr	x8, [x8, _written@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x23]
	cbnz	w8, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_crc32_end
	str	w0, [x19, #8]
LBB0_21:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_pack_to_stdout,4,2             ; @pack_to_stdout
	.comm	_pack_size_limit,8,3            ; @pack_size_limit
	.comm	_nr_written,4,2                 ; @nr_written
	.comm	_reuse_object,4,2               ; @reuse_object
	.comm	_OBJ_REF_DELTA,8,3              ; @OBJ_REF_DELTA
	.comm	_OBJ_OFS_DELTA,8,3              ; @OBJ_OFS_DELTA
	.comm	_written_delta,4,2              ; @written_delta
	.comm	_written,4,2                    ; @written
	.no_dead_strip	_write_object
.subsections_via_symbols
