	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_buffer_init_internal        ## -- Begin function hb_buffer_init_internal
	.p2align	4, 0x90
_hb_buffer_init_internal:               ## @hb_buffer_init_internal
	.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	%edi, %r14d
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addl	%edi, %r15d
	movl	%r15d, %edi
	callq	_size_to_pool
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_hb_fifo_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	40(%rax), %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movl	%r14d, 4(%rbx)
	movq	%r15, 40(%rbx)
	jmp	LBB0_10
LBB0_3:
	movl	$48, %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %rbx
	movl	%r14d, 4(%rax)
	jmp	LBB0_7
LBB0_5:
	movl	$48, %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %rbx
	movl	%r14d, 4(%rax)
	movl	(%r12), %r15d
LBB0_7:
	movl	%r15d, (%rbx)
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.8:
	movl	%r15d, %edi
	callq	_av_malloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_buffers@GOTPCREL(%rip), %r14
	movl	4(%r14), %edi
	callq	_hb_lock
	addl	%r15d, (%r14)
	movl	4(%r14), %edi
	callq	_hb_unlock
LBB0_10:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movl	$-1, 8(%rbx)
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
	movq	%rbx, %rdi
	callq	_free
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_buffers,12,2                   ## @buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_buffer_init_internal        ; -- Begin function hb_buffer_init_internal
	.p2align	2
_hb_buffer_init_internal:               ; @hb_buffer_init_internal
	.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	x20, x0
Lloh0:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w21, w8, w0
	mov	x0, x21
	bl	_size_to_pool
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	bl	_hb_fifo_get
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x21, [x0, #40]
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	w8, [x22]
	stp	w8, w20, [x19]
Lloh3:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x21, [x19, #40]
	b	LBB0_10
LBB0_3:
	mov	w0, #48
	mov	w1, #1
	bl	_calloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x19, x0
	str	w20, [x0, #4]
	str	w21, [x19]
	cbnz	w20, LBB0_7
	b	LBB0_9
LBB0_5:
	mov	w0, #48
	mov	w1, #1
	bl	_calloc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x19, x0
	str	w20, [x0, #4]
	ldr	w21, [x22]
	str	w21, [x19]
	cbz	w20, LBB0_9
LBB0_7:
	mov	x0, x21
	bl	_av_malloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_12
; %bb.8:
Lloh6:
	adrp	x20, _buffers@GOTPAGE
Lloh7:
	ldr	x20, [x20, _buffers@GOTPAGEOFF]
	ldr	w0, [x20, #4]
	bl	_hb_lock
	ldp	w8, w0, [x20]
	add	w8, w8, w21
	str	w8, [x20]
	bl	_hb_unlock
LBB0_9:
Lloh8:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
LBB0_10:
	stp	x8, x8, [x19, #24]
	str	x8, [x19, #16]
	mov	w8, #-1
	str	w8, [x19, #8]
	b	LBB0_14
LBB0_11:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	mov	x0, x19
	bl	_free
LBB0_13:
	mov	x19, #0
LBB0_14:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_buffers,12,2                   ; @buffers
.subsections_via_symbols
