	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_frame_buffer_init           ## -- Begin function hb_frame_buffer_init
	.p2align	4, 0x90
_hb_frame_buffer_init:                  ## @hb_frame_buffer_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	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)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rdx
	movl	(%rax), %eax
	movl	$0, %edi
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %rcx
	movslq	(%rcx,%r14,4), %r15
	cmpl	%ebx, %r15d
	cmovgl	%r15d, %ebx
	cmpl	$0, -64(%rbp,%r15,4)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -64(%rbp,%r15,4)
	movl	%edi, -80(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_hb_image_stride
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_hb_image_height_stride
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	imull	%r12d, %eax
	addl	%eax, %edi
	movl	(%rdx), %eax
	jmp	LBB0_5
LBB0_6:
	callq	_hb_buffer_init_internal
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movl	%ebx, (%rax)
	movq	_FRAME_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_hb_buffer_init_planes
	movq	%r14, %rbx
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FRAME_BUF,4,2                  ## @FRAME_BUF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_frame_buffer_init           ; -- Begin function hb_frame_buffer_init
	.p2align	2
_hb_frame_buffer_init:                  ; @hb_frame_buffer_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	x21, x1
	mov	x20, 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
	mov	x22, x0
	stp	xzr, xzr, [sp, #8]
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x27, #0
	mov	w23, #0
	mov	w26, #0
	add	x28, sp, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	ldrsw	x24, [x9, x27, lsl #2]
	cmp	w24, w26
	csel	w26, w24, w26, gt
	ldr	w9, [x28, x24, lsl #2]
	cbnz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [x28, x24, lsl #2]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_hb_image_stride
	mov	x25, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_hb_image_height_stride
	madd	w23, w0, w25, w23
	ldr	w8, [x22]
	b	LBB0_3
LBB0_6:
	mov	w26, #0
	mov	w23, #0
LBB0_7:
	mov	x0, x23
	bl	_hb_buffer_init_internal
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _FRAME_BUF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRAME_BUF@GOTPAGEOFF]
	stp	w26, w21, [x22]
Lloh5:
	ldr	w8, [x8]
	stp	w20, w8, [x22, #12]
	str	w19, [x22, #8]
	mov	x0, x22
	bl	_hb_buffer_init_planes
LBB0_9:
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x22
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FRAME_BUF,4,2                  ; @FRAME_BUF
.subsections_via_symbols
