	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	cmpl	$7, %edi
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r12
	movq	16(%rsi), %rdi
	callq	_atoi
	movl	%eax, %r15d
	movq	24(%r12), %rdi
	callq	_atoi
	movl	%eax, %r14d
	movq	32(%r12), %rdi
	callq	_atoi
	movl	%eax, %r13d
	movq	40(%r12), %rdi
	callq	_atoi
	movl	%eax, %ebx
	movq	48(%r12), %rdi
	callq	_atoi
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	%r13d, %ecx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r8d
	movl	%eax, %r14d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_printf
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.4:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	movq	8(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_gdImageCreateFromGd2Part
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_fclose
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %edi
	callq	_gdImageDestroy
	decl	%r13d
	movq	%rbx, %r12
	jne	LBB0_5
LBB0_10:
	xorl	%edi, %edi
	callq	_time
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_2:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: gd2time filename.gd count x y w h\n"

L_.str.1:                               ## @.str.1
	.asciz	"Extracting %d times from (%d, %d), size is %dx%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"rb"

L_.str.3:                               ## @.str.3
	.asciz	"Input file does not exist!\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error reading source file!\n"

L_.str.5:                               ## @.str.5
	.asciz	"%d seconds to extract (& destroy) %d times\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	cmp	w0, #7
	b.ne	LBB0_10
; %bb.1:
	mov	x20, x1
	ldr	x0, [x1, #16]
	bl	_atoi
	mov	x25, x0
	ldr	x0, [x20, #24]
	bl	_atoi
	mov	x21, x0
	ldr	x0, [x20, #32]
	bl	_atoi
	mov	x22, x0
	ldr	x0, [x20, #40]
	bl	_atoi
	mov	x23, x0
	ldr	x0, [x20, #48]
	bl	_atoi
	mov	x24, x0
	stp	x23, x24, [sp, #8]
	str	x22, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	mov	x2, x21
	bl	_printf
	mov	w0, #0
	bl	_time
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.2:
Lloh2:
	adrp	x26, l_.str.2@PAGE
Lloh3:
	add	x26, x26, l_.str.2@PAGEOFF
	mov	x19, x25
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	mov	x1, x26
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x0
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_gdImageCreateFromGd2Part
	mov	x28, x0
	mov	x0, x27
	bl	_fclose
	cbz	w28, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_gdImageDestroy
	subs	w19, w19, #1
	b.ne	LBB0_3
LBB0_6:
	mov	w0, #0
	bl	_time
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	sub	w1, w0, w8
Lloh4:
	adrp	x0, l_.str.5@PAGE
Lloh5:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x2, x25
	bl	_printf
	mov	w0, #0
	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_7:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_9:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_10:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: gd2time filename.gd count x y w h\n"

l_.str.1:                               ; @.str.1
	.asciz	"Extracting %d times from (%d, %d), size is %dx%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"rb"

l_.str.3:                               ; @.str.3
	.asciz	"Input file does not exist!\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error reading source file!\n"

l_.str.5:                               ; @.str.5
	.asciz	"%d seconds to extract (& destroy) %d times\n"

.subsections_via_symbols
