	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_block
_write_block:                           ## @write_block
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movl	4(%rdi), %edi
	movq	_HAS_DIFF_BLOCKS@GOTPCREL(%rip), %rcx
	leal	2(%rax), %ebx
	testl	%edi, (%rcx)
	cmovel	%eax, %ebx
	movq	_ZLIB_PRIME_COMPRESS_CURRENT@GOTPCREL(%rip), %r8
	leal	2(%rbx), %eax
	testl	%edi, (%r8)
	cmovel	%ebx, %eax
	leal	1(%rax), %edi
	testl	%eax, %eax
	cmovel	%eax, %edi
	leal	2(%rdi), %eax
	movl	$-1, %ebx
	cmpl	%edx, %eax
	ja	LBB0_9
## %bb.1:
	movl	%edi, %eax
	shrl	$8, %eax
	movl	%eax, (%rsi)
	movl	%edi, 4(%rsi)
	testl	%edi, %edi
	je	LBB0_2
## %bb.3:
	movl	4(%r14), %eax
	movl	%eax, 8(%rsi)
	movl	4(%r14), %edx
	testl	%edx, (%rcx)
	je	LBB0_4
## %bb.5:
	movl	8(%r14), %eax
	movl	%eax, 12(%rsi)
	movl	12(%r14), %eax
	movl	%eax, 16(%rsi)
	movl	4(%r14), %edx
	movl	$5, %ebx
	testl	%edx, (%r8)
	je	LBB0_8
LBB0_7:
	movl	16(%r14), %eax
	movl	%ebx, %ecx
	movl	%eax, (%rsi,%rcx,4)
	movl	20(%r14), %eax
	addl	$2, %ebx
	movl	%eax, 4(%rsi,%rcx,4)
LBB0_8:
	movl	%ebx, %eax
	leaq	(%rsi,%rax,4), %rdi
	movl	(%r14), %edx
	movl	24(%r14), %esi
	callq	_memcpy
	addl	(%r14), %ebx
	jmp	LBB0_9
LBB0_2:
	movl	$2, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	$3, %ebx
	testl	%edx, (%r8)
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HAS_DIFF_BLOCKS,4,2            ## @HAS_DIFF_BLOCKS
	.comm	_ZLIB_PRIME_COMPRESS_CURRENT,4,2 ## @ZLIB_PRIME_COMPRESS_CURRENT
	.no_dead_strip	_write_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_block
_write_block:                           ; @write_block
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	w8, w10, [x0]
Lloh0:
	adrp	x9, _HAS_DIFF_BLOCKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HAS_DIFF_BLOCKS@GOTPAGEOFF]
	ldr	w11, [x9]
	add	w12, w8, #2
	tst	w11, w10
	csel	w11, w8, w12, eq
Lloh2:
	adrp	x8, _ZLIB_PRIME_COMPRESS_CURRENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZLIB_PRIME_COMPRESS_CURRENT@GOTPAGEOFF]
	ldr	w12, [x8]
	add	w13, w11, #2
	tst	w12, w10
	csel	w10, w11, w13, eq
	cmp	w10, #0
	csinc	w10, wzr, w10, eq
	add	w11, w10, #2
	cmp	w11, w2
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_10
LBB0_2:
	lsr	w11, w10, #8
	stp	w11, w10, [x1]
	cbz	w10, LBB0_5
; %bb.3:
	mov	x19, x0
	ldr	w10, [x0, #4]
	str	w10, [x1, #8]
	ldr	w10, [x0, #4]
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_6
; %bb.4:
	ldr	w9, [x19, #8]
	str	w9, [x1, #12]
	ldr	w9, [x19, #12]
	str	w9, [x1, #16]
	ldr	w10, [x19, #4]
	mov	w20, #5
	b	LBB0_7
LBB0_5:
	mov	w0, #2
	b	LBB0_10
LBB0_6:
	mov	w20, #3
LBB0_7:
	ldr	w8, [x8]
	tst	w8, w10
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x19, #16]
	add	w9, w20, #1
	str	w8, [x1, w20, uxtw #2]
	ldr	w8, [x19, #20]
	add	w20, w20, #2
	str	w8, [x1, w9, uxtw #2]
LBB0_9:
	add	x0, x1, w20, uxtw #2
	ldr	w1, [x19, #24]
	ldr	w2, [x19]
	bl	_memcpy
	ldr	w8, [x19]
	add	w0, w8, w20
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HAS_DIFF_BLOCKS,4,2            ; @HAS_DIFF_BLOCKS
	.comm	_ZLIB_PRIME_COMPRESS_CURRENT,4,2 ; @ZLIB_PRIME_COMPRESS_CURRENT
	.no_dead_strip	_write_block
.subsections_via_symbols
