	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_frames
_allocate_frames:                       ## @allocate_frames
	.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, %rbx
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	leal	28(,%rax,4), %esi
	andl	$-32, %esi
	movl	%esi, 72(%rdi)
	movl	%eax, 76(%rdi)
	movl	%ecx, 80(%rdi)
	imull	%ecx, %esi
	sarl	$3, %esi
	movl	$4, %edi
	callq	_calloc
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, 88(%rbx)
	movq	8(%rbx), %rax
	movq	_SCALER_FMT_ARGB8888@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_4
## %bb.2:
	movl	16(%rbx), %eax
	leal	28(,%rax,4), %esi
	andl	$-32, %esi
	movl	%esi, 56(%rbx)
	imull	4(%rbx), %esi
	sarl	$2, %esi
	movl	$4, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, 64(%rbx)
	movq	(%r15), %rax
LBB0_4:
	cmpq	%rax, 24(%rbx)
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %eax
	leal	28(,%rax,4), %esi
	andl	$-32, %esi
	movl	%esi, 40(%rbx)
	imull	32(%rbx), %esi
	sarl	$2, %esi
	movl	$4, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, 48(%rbx)
LBB0_7:
	movl	$1, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_FMT_ARGB8888,8,3        ## @SCALER_FMT_ARGB8888
	.no_dead_strip	_allocate_frames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_frames
_allocate_frames:                       ; @allocate_frames
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w8, w9, [x0]
	lsl	w10, w8, #2
	add	w10, w10, #28
	and	w10, w10, #0xffffffe0
	stp	w10, w8, [x0, #72]
	str	w9, [x0, #80]
	mul	w8, w10, w9
	asr	w1, w8, #3
	mov	w0, #4
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.1:
	str	x0, [x19, #88]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x20, _SCALER_FMT_ARGB8888@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SCALER_FMT_ARGB8888@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x19, #16]
	lsl	w8, w8, #2
	add	w8, w8, #28
	and	w8, w8, #0xffffffe0
	str	w8, [x19, #56]
	ldr	w9, [x19, #4]
	mul	w8, w8, w9
	asr	w1, w8, #2
	mov	w0, #4
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.3:
	str	x0, [x19, #64]
	ldr	x8, [x20]
LBB0_4:
	ldr	x9, [x19, #24]
	cmp	x9, x8
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x19]
	lsl	w8, w8, #2
	add	w8, w8, #28
	and	w8, w8, #0xffffffe0
	str	w8, [x19, #40]
	ldr	w9, [x19, #32]
	mul	w8, w8, w9
	asr	w1, w8, #2
	mov	w0, #4
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.6:
	str	x0, [x19, #48]
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALER_FMT_ARGB8888,8,3        ; @SCALER_FMT_ARGB8888
	.no_dead_strip	_allocate_frames
.subsections_via_symbols
