	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_image_init                  ## -- Begin function hb_image_init
	.p2align	4, 0x90
_hb_image_init:                         ## @hb_image_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	callq	_av_pix_fmt_desc_get
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	xorl	%edx, %edx
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %rbx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	testl	%eax, %eax
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	jle	LBB0_9
## %bb.3:
	movl	(%rbx), %r13d
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rcx
	movslq	(%rcx,%r14,4), %rbx
	cmpl	%r13d, %ebx
	cmovgl	%ebx, %r13d
	cmpl	$0, -64(%rbp,%rbx,4)
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, -64(%rbp,%rbx,4)
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_hb_image_stride
	movl	%r15d, %edi
	movl	%eax, %r12d
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_hb_image_height_stride
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	imull	%r12d, %eax
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	addl	%eax, %edx
	movl	(%rsi), %eax
	jmp	LBB0_4
LBB0_8:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	%r13d, (%rbx)
LBB0_9:
	movq	%rdx, %r13
	movl	%r13d, %edi
	callq	_av_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%rax, %r14
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rbx)
	movl	%r12d, 20(%rbx)
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, 24(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movl	(%rbx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	movq	32(%rbx), %rbx
	incq	-80(%rbp)                       ## 8-byte Folded Spill
	addq	$24, %rbx
	xorl	%r13d, %r13d
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -24(%rbx)
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_hb_image_stride
	movl	%eax, -16(%rbx)
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_hb_image_height_stride
	movl	%eax, -12(%rbx)
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_hb_image_width
	movl	%eax, (%rbx)
	movl	%r14d, %edi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_hb_image_height
	movl	%eax, -4(%rbx)
	movslq	-16(%rbx), %rax
	movslq	-12(%rbx), %rcx
	imulq	%rax, %rcx
	movl	%ecx, -8(%rbx)
	leaq	(%r14,%rcx,4), %r14
	incq	%r13
	addq	$32, %rbx
	cmpq	%r13, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.13:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_17
LBB0_15:
	movq	%rbx, %rdi
	callq	_free
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_image_init                  ; -- Begin function hb_image_init
	.p2align	2
_hb_image_init:                         ; @hb_image_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_av_pix_fmt_desc_get
	stp	xzr, xzr, [sp, #8]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x24, x0
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.2:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x27, #0
	mov	w23, #0
	str	x21, [sp]                       ; 8-byte Folded Spill
	ldr	w28, [x21]
	add	x21, sp, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24, #8]
	ldrsw	x25, [x9, x27, lsl #2]
	cmp	w25, w28
	csel	w28, w25, w28, gt
	ldr	w9, [x21, x25, lsl #2]
	cbnz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	str	w8, [x21, x25, lsl #2]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x25
	bl	_hb_image_stride
	mov	x26, x0
	mov	x0, x22
	mov	x1, x19
	mov	x2, x25
	bl	_hb_image_height_stride
	madd	w23, w0, w26, w23
	ldr	w8, [x24]
	b	LBB0_4
LBB0_7:
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	str	w28, [x21]
	b	LBB0_9
LBB0_8:
	mov	w23, #0
LBB0_9:
	mov	x0, x23
	bl	_av_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_13
; %bb.10:
	mov	x24, x0
	stp	w22, w20, [x21, #16]
	str	w19, [x21, #24]
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_15
; %bb.11:
	mov	x23, #0
	ldr	x9, [x21, #32]
	add	x25, x8, #1
	add	x26, x9, #12
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	stur	x24, [x26, #-12]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_hb_image_stride
	stur	w0, [x26, #-4]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	bl	_hb_image_height_stride
	str	w0, [x26]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_hb_image_width
	str	w0, [x26, #12]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	bl	_hb_image_height
	ldp	w8, w9, [x26, #-4]
	mul	w8, w9, w8
	stp	w8, w0, [x26, #4]
	add	x24, x24, w8, sxtw #2
	add	x23, x23, #1
	add	x26, x26, #32
	cmp	x25, x23
	b.ne	LBB0_12
	b	LBB0_15
LBB0_13:
	mov	x0, x21
	bl	_free
LBB0_14:
	mov	x21, #0
LBB0_15:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
