	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_picture_crop                ## -- Begin function hb_picture_crop
	.p2align	4, 0x90
_hb_picture_crop:                       ## @hb_picture_crop
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	8(%rdx), %edi
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movb	(%rax), %dl
	movb	4(%rax), %cl
	movq	(%rbx), %rax
	movslq	(%rax), %rsi
	movslq	%r13d, %rdi
	imulq	%rdi, %rsi
	shlq	$2, %rsi
	addq	8(%rax), %rsi
	movslq	%r12d, %rax
	leaq	(%rsi,%rax,4), %rsi
	sarl	%cl, %edi
	movq	%rsi, (%r15)
	movq	(%rbx), %rcx
	movslq	16(%rcx), %rsi
	movslq	%edi, %rdi
	imulq	%rdi, %rsi
	shlq	$2, %rsi
	addq	24(%rcx), %rsi
	movl	%edx, %ecx
	sarl	%cl, %eax
	cltq
	leaq	(%rsi,%rax,4), %rcx
	movq	%rcx, 8(%r15)
	movq	(%rbx), %rcx
	movslq	32(%rcx), %rdx
	imulq	%rdi, %rdx
	shlq	$2, %rdx
	addq	40(%rcx), %rdx
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, 16(%r15)
	movq	$0, 24(%r15)
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	16(%rax), %ecx
	movl	%ecx, 4(%r14)
	movl	32(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$0, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_picture_crop                ; -- Begin function hb_picture_crop
	.p2align	2
_hb_picture_crop:                       ; @hb_picture_crop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x2, #8]
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	ldr	x10, [x9, #8]
	ldr	w9, [x9]
	mul	w9, w9, w23
	add	x9, x10, w9, sxtw #2
	ldp	w10, w8, [x8]
	add	x9, x9, w22, sxtw #2
	str	x9, [x21]
	ldr	x9, [x20]
	asr	w8, w23, w8
	ldr	x11, [x9, #24]
	ldr	w9, [x9, #16]
	mul	w9, w9, w8
	add	x9, x11, w9, sxtw #2
	asr	w10, w22, w10
	sbfiz	x10, x10, #2, #32
	add	x9, x9, x10
	str	x9, [x21, #8]
	ldr	x9, [x20]
	ldr	x11, [x9, #40]
	ldr	w9, [x9, #32]
	mul	w8, w9, w8
	add	x8, x11, w8, sxtw #2
	add	x8, x8, x10
	stp	x8, xzr, [x21, #16]
	ldr	x8, [x20]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w9, [x8, #16]
	str	w9, [x19, #4]
	ldr	w8, [x8, #32]
	stp	w8, wzr, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
