	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zlib_fast_alloc                ## -- Begin function zlib_fast_alloc
	.p2align	4, 0x90
_zlib_fast_alloc:                       ## @zlib_fast_alloc
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	imull	%edx, %ebx
	addl	$1023, %ebx                     ## imm = 0x3FF
	andl	$-1024, %ebx                    ## imm = 0xFC00
	movq	_MAX_ZLIB_ALLOCS@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	(%r14), %rdx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%rax), %ebx
	jne	LBB0_4
	jmp	LBB0_12
LBB0_5:
	movl	%ebx, %edi
	orl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.8:
	movq	(%r14), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_9
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_10:
	movq	%rax, (%rdx,%rsi,8)
LBB0_12:
	orl	$1, %ebx
	movl	%ebx, (%rax)
	addq	$4, %rax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ZLIB_ALLOCS,4,2            ## @MAX_ZLIB_ALLOCS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zlib_fast_alloc                ; -- Begin function zlib_fast_alloc
	.p2align	2
_zlib_fast_alloc:                       ; @zlib_fast_alloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	orr	w8, wzr, #0x3ff
	madd	w8, w2, w1, w8
	and	w20, w8, #0xfffffc00
Lloh0:
	adrp	x21, _MAX_ZLIB_ALLOCS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_ZLIB_ALLOCS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x9, [x19]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x9]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x0]
	cmp	w20, w10
	b.ne	LBB0_2
	b	LBB0_11
LBB0_5:
	orr	w0, w20, #0x4
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	ldr	x9, [x19]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_8
	b	LBB0_11
LBB0_10:
	str	x0, [x9]
LBB0_11:
	orr	w8, w20, #0x1
	str	w8, [x0], #4
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ZLIB_ALLOCS,4,2            ; @MAX_ZLIB_ALLOCS
.subsections_via_symbols
