	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_thumbs2
_make_thumbs2:                          ## @make_thumbs2
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	4(%rbx), %esi
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdx
	callq	_get_thumb2_transforms
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ReferenceImage
	movq	%rax, %rbx
	movq	_THUMB2_RESIZE_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.1:
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	movl	%r13d, %r9d
	callq	_gm_resize_image
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_DestroyImage
	movq	%r13, %rbx
	testq	%r13, %r13
	je	LBB0_2
LBB0_4:
	movq	_THUMB2_CROP_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.5:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gm_crop_image
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_DestroyImage
	movq	%r12, %rbx
	testq	%r12, %r12
	je	LBB0_6
LBB0_7:
	movl	4(%r15), %edx
	movl	8(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gm_write_image
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_DestroyImage
	testq	%r12, %r12
	js	LBB0_8
## %bb.9:
	movl	$1, (%r15)
	movq	_FORTH_PASS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_2:
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_8:
	movl	4(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_6:
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_failf
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THUMB2_RESIZE_MASK,4,2         ## @THUMB2_RESIZE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GENERATE_THUMBS2: gm_resize_image fail. %s"

	.comm	_THUMB2_CROP_MASK,4,2           ## @THUMB2_CROP_MASK
L_.str.1:                               ## @.str.1
	.asciz	"GENERATE_THUMBS2: gm_crop_image fail. %s"

L_.str.2:                               ## @.str.2
	.asciz	"GENERATE_THUMBS2: write_image fail. %s"

	.comm	_FORTH_PASS,8,3                 ## @FORTH_PASS
	.no_dead_strip	_make_thumbs2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_thumbs2
_make_thumbs2:                          ; @make_thumbs2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	ldr	w1, [x21, #4]
	add	x3, sp, #8
	mov	x4, sp
	mov	x2, x20
	bl	_get_thumb2_transforms
	mov	x22, x0
	mov	x0, x21
	bl	_ReferenceImage
	mov	x21, x0
Lloh0:
	adrp	x8, _THUMB2_RESIZE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THUMB2_RESIZE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	ldp	w3, w2, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	mov	w4, #0
	mov	x5, x23
	bl	_gm_resize_image
	mov	x23, x0
	mov	x0, x21
	bl	_DestroyImage
	mov	x21, x23
	cbz	x23, LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _THUMB2_CROP_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THUMB2_CROP_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_gm_crop_image
	mov	x22, x0
	mov	x0, x21
	bl	_DestroyImage
	mov	x21, x22
	cbz	x22, LBB0_8
LBB0_4:
	ldp	w2, w3, [x20, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_gm_write_image
	mov	x22, x0
	mov	x0, x21
	bl	_DestroyImage
	tbnz	x22, #63, LBB0_7
; %bb.5:
	mov	w8, #1
	str	w8, [x20]
Lloh6:
	adrp	x8, _FORTH_PASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FORTH_PASS@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	b	LBB0_10
LBB0_6:
	ldr	w2, [x20, #4]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	w2, [x20, #4]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	w2, [x20, #4]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_failf
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_THUMB2_RESIZE_MASK,4,2         ; @THUMB2_RESIZE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GENERATE_THUMBS2: gm_resize_image fail. %s"

	.comm	_THUMB2_CROP_MASK,4,2           ; @THUMB2_CROP_MASK
l_.str.1:                               ; @.str.1
	.asciz	"GENERATE_THUMBS2: gm_crop_image fail. %s"

l_.str.2:                               ; @.str.2
	.asciz	"GENERATE_THUMBS2: write_image fail. %s"

	.comm	_FORTH_PASS,8,3                 ; @FORTH_PASS
	.no_dead_strip	_make_thumbs2
.subsections_via_symbols
