	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_buffer_to_image             ## -- Begin function hb_buffer_to_image
	.p2align	4, 0x90
_hb_buffer_to_image:                    ## @hb_buffer_to_image
	.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
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, %r14
	movl	24(%r15), %edi
	callq	_av_malloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	20(%r15), %eax
	movl	%eax, 24(%r14)
	movl	16(%r15), %eax
	movl	%eax, 20(%r14)
	movl	12(%r15), %eax
	movl	%eax, 16(%r14)
	movl	24(%r15), %edx
	movl	28(%r15), %esi
	movq	%rbx, %rdi
	callq	_memcpy
	movl	8(%r15), %edx
	testl	%edx, %edx
	js	LBB0_5
## %bb.3:
	movq	(%r14), %rax
	movq	(%r15), %rcx
	leaq	(%rdx,%rdx,4), %rdx
	addq	$24, %rax
	leaq	20(,%rdx,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, (%rax)
	movl	16(%rcx,%rsi), %edi
	movl	%edi, -8(%rax)
	movslq	(%rcx,%rsi), %rdi
	movups	(%rcx,%rsi), %xmm0
	movups	%xmm0, -24(%rax)
	leaq	(%rbx,%rdi,4), %rbx
	addq	$32, %rax
	addq	$20, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	%r14, %rdi
	callq	_free
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_buffer_to_image             ; -- Begin function hb_buffer_to_image
	.p2align	2
_hb_buffer_to_image:                    ; @hb_buffer_to_image
	.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	x21, x0
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x19, x0
	ldr	w0, [x21, #24]
	bl	_av_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldp	w8, w2, [x21, #20]
	str	w8, [x19, #24]
	ldur	d0, [x21, #12]
	str	d0, [x19, #16]
	ldr	w1, [x21, #28]
	bl	_memcpy
	ldr	w8, [x21, #8]
	tbnz	w8, #31, LBB0_5
; %bb.2:
	ldr	x9, [x19]
	ldr	x10, [x21]
	add	x8, x8, #1
	add	x9, x9, #24
	add	x10, x10, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x20, [x9]
	ldr	w11, [x10]
	stur	w11, [x9, #-8]
	ldur	q0, [x10, #-16]
	stur	q0, [x9, #-24]
	fmov	w11, s0
	add	x20, x20, w11, sxtw #2
	add	x9, x9, #32
	add	x10, x10, #20
	subs	x8, x8, #1
	b.ne	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
