	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_buffer_init_planes          ## -- Begin function hb_buffer_init_planes
	.p2align	4, 0x90
_hb_buffer_init_planes:                 ## @hb_buffer_init_planes
	.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
	cmpl	$0, 8(%rdi)
	js	LBB0_3
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rcx
	movq	24(%rdi), %r15
	movq	$-1, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, 24(%rcx,%rbx)
	movl	16(%r12), %edi
	movl	20(%r12), %esi
	incq	%r14
	movl	%r14d, %edx
	callq	_hb_image_stride
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	movl	12(%r12), %esi
	movl	16(%r12), %edi
	movl	%r14d, %edx
	callq	_hb_image_height_stride
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx,%rbx)
	movl	16(%r12), %edi
	movl	20(%r12), %esi
	movl	%r14d, %edx
	callq	_hb_image_width
	movq	(%r12), %rcx
	movl	%eax, 16(%rcx,%rbx)
	movl	12(%r12), %esi
	movl	16(%r12), %edi
	movl	%r14d, %edx
	callq	_hb_image_height
	movq	(%r12), %rcx
	movl	%eax, 12(%rcx,%rbx)
	movslq	(%rcx,%rbx), %rax
	movslq	4(%rcx,%rbx), %rdx
	imulq	%rax, %rdx
	movl	%edx, 8(%rcx,%rbx)
	leaq	(%r15,%rdx,4), %r15
	movslq	8(%r12), %rax
	addq	$32, %rbx
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	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_init_planes          ; -- Begin function hb_buffer_init_planes
	.p2align	2
_hb_buffer_init_planes:                 ; @hb_buffer_init_planes
	.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
	ldr	w8, [x0, #8]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	ldr	x22, [x0, #24]
	ldr	x8, [x0]
	mov	x20, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	str	x22, [x8, #24]
	ldp	w0, w1, [x19, #16]
	add	x20, x20, #1
	mov	x2, x20
	bl	_hb_image_stride
	ldr	x8, [x19]
	str	w0, [x8, x21]
	ldp	w1, w0, [x19, #12]
	mov	x2, x20
	bl	_hb_image_height_stride
	ldr	x8, [x19]
	add	x8, x8, x21
	str	w0, [x8, #4]
	ldp	w0, w1, [x19, #16]
	mov	x2, x20
	bl	_hb_image_width
	ldr	x8, [x19]
	add	x8, x8, x21
	str	w0, [x8, #16]
	ldp	w1, w0, [x19, #12]
	mov	x2, x20
	bl	_hb_image_height
	ldr	x8, [x19]
	add	x9, x8, x21
	ldp	w10, w11, [x9]
	mul	w10, w11, w10
	stp	w10, w0, [x9, #8]
	add	x22, x22, w10, sxtw #2
	ldrsw	x9, [x19, #8]
	add	x21, x21, #32
	cmp	x20, x9
	b.lt	LBB0_2
LBB0_3:
	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
