	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_buffer_realloc              ## -- Begin function hb_buffer_realloc
	.p2align	4, 0x90
_hb_buffer_realloc:                     ## @hb_buffer_realloc
	.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	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %r12d
	movq	8(%rdi), %rax
	cmpl	%esi, %r12d
	jge	LBB0_2
## %bb.1:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%ecx, %r12d
	jmp	LBB0_4
LBB0_2:
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	xorl	%r12d, %r12d
LBB0_4:
	movl	%ebx, %edi
	callq	_size_to_pool
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r15
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_memcpy
	movq	8(%r14), %rdi
	callq	_av_free
LBB0_9:
	movq	%r15, 8(%r14)
	movl	%ebx, (%r14)
	movq	_buffers@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_hb_lock
	subl	%r12d, %ebx
	addl	%ebx, 4(%r14)
	movl	(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_unlock                      ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buffers,8,2                    ## @buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_buffer_realloc              ; -- Begin function hb_buffer_realloc
	.p2align	2
_hb_buffer_realloc:                     ; @hb_buffer_realloc
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	x9, [x0, #8]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
	cmp	x9, #0
	csel	w22, wzr, w8, eq
	b	LBB0_4
LBB0_2:
	cbnz	x9, LBB0_10
; %bb.3:
	mov	w22, #0
LBB0_4:
	mov	x0, x19
	bl	_size_to_pool
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w19, [x0]
LBB0_6:
	mov	x0, x19
	bl	_av_malloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x21, x0
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_9
; %bb.8:
	ldr	w2, [x20]
	mov	x0, x21
	bl	_memcpy
	ldr	x0, [x20, #8]
	bl	_av_free
LBB0_9:
	str	x21, [x20, #8]
	str	w19, [x20]
Lloh0:
	adrp	x20, _buffers@GOTPAGE
Lloh1:
	ldr	x20, [x20, _buffers@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_hb_lock
	ldp	w0, w8, [x20]
	sub	w9, w19, w22
	add	w8, w9, w8
	str	w8, [x20, #4]
	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
	b	_hb_unlock
LBB0_10:
	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	_buffers,8,2                    ; @buffers
.subsections_via_symbols
