	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadRGBATileExt            ## -- Begin function TIFFReadRGBATileExt
	.p2align	4, 0x90
_TIFFReadRGBATileExt:                   ## @TIFFReadRGBATileExt
	.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	$1160, %rsp                     ## imm = 0x488
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	___bzero
	movq	%rbx, %rdi
	callq	_TIFFIsTiled
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_TIFFTAG_TILEWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1096(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_TIFFGetFieldDefaulted
	movq	_TIFFTAG_TILELENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1088(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_TIFFGetFieldDefaulted
	movq	-1096(%rbp), %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	jne	LBB0_11
	jmp	LBB0_7
LBB0_1:
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_TIFFFileName
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_11
LBB0_7:
	movq	-1088(%rbp), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%r15, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	je	LBB0_12
LBB0_11:
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_TIFFFileName
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TIFFErrorExt
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.27:
	movl	%ebx, %eax
	addq	$1160, %rsp                     ## imm = 0x488
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_11
LBB0_12:
	leaq	-1072(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_TIFFRGBAImageOK
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	-1192(%rbp), %rdi
	leaq	-1072(%rbp), %rcx
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_TIFFRGBAImageBegin
	testl	%eax, %eax
	je	LBB0_14
## %bb.17:
	movq	-1088(%rbp), %rax
	movq	%r15, %rcx
	addq	%rax, %r15
	movq	-1192(%rbp), %rdx
	movq	-1184(%rbp), %rsi
	movq	%rdx, %rbx
	subq	%rcx, %rbx
	movq	%rdx, -1120(%rbp)               ## 8-byte Spill
	cmpq	%rdx, %r15
	cmovleq	%rax, %rbx
	movq	-1096(%rbp), %rax
	movq	%r13, %rdx
	addq	%rax, %r13
	movq	%rsi, %r12
	subq	%rdx, %r12
	movq	%rsi, -1144(%rbp)               ## 8-byte Spill
	cmpq	%rsi, %r13
	cmovleq	%rax, %r12
	movq	%rcx, -1128(%rbp)               ## 8-byte Spill
	movq	%rcx, -1168(%rbp)
	movq	%rdx, -1112(%rbp)               ## 8-byte Spill
	movq	%rdx, -1176(%rbp)
	movq	%r14, %rsi
	leaq	-1192(%rbp), %r14
	movq	%r14, %rdi
	movq	%rsi, -1104(%rbp)               ## 8-byte Spill
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_TIFFRGBAImageGet
	movl	%eax, -1076(%rbp)               ## 4-byte Spill
	movq	%r14, %rdi
	callq	_TIFFRGBAImageEnd
	movq	-1096(%rbp), %rcx
	movq	-1088(%rbp), %rax
	movq	%r12, %rdx
	movq	%r12, -1136(%rbp)               ## 8-byte Spill
	cmpq	%rcx, %r12
	jne	LBB0_19
## %bb.18:
	cmpq	%rax, %rbx
	je	LBB0_23
LBB0_19:
	testq	%rbx, %rbx
	jle	LBB0_20
## %bb.24:
	movq	-1136(%rbp), %rdi               ## 8-byte Reload
	leaq	(,%rdi,8), %rdx
	movq	%rdx, -1160(%rbp)               ## 8-byte Spill
	movq	-1104(%rbp), %r8                ## 8-byte Reload
	leaq	(%r8,%rdi,8), %rdx
	movq	%rdx, -1152(%rbp)               ## 8-byte Spill
	movq	-1120(%rbp), %rsi               ## 8-byte Reload
	cmpq	%r15, %rsi
	movq	%r15, %rdx
	cmovlq	%rsi, %rdx
	movq	-1128(%rbp), %rsi               ## 8-byte Reload
	notq	%rsi
	addq	%rdx, %rsi
	imulq	%rdi, %rsi
	leaq	(%r8,%rsi,8), %r14
	movq	-1112(%rbp), %rdx               ## 8-byte Reload
	shlq	$3, %rdx
	movq	-1144(%rbp), %rsi               ## 8-byte Reload
	cmpq	%r13, %rsi
	cmovlq	%rsi, %r13
	shlq	$3, %r13
	subq	%r13, %rdx
	movq	%rdx, -1112(%rbp)               ## 8-byte Spill
	movl	$1, %r12d
	movq	$-1, %r13
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	addq	%r13, %rax
	imulq	%rcx, %rax
	movq	-1104(%rbp), %rcx               ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	movq	%r14, %rsi
	movq	-1160(%rbp), %rdx               ## 8-byte Reload
	callq	_memmove
	movq	-1088(%rbp), %rax
	addq	%r13, %rax
	movq	-1096(%rbp), %rdx
	imulq	%rdx, %rax
	movq	-1152(%rbp), %rcx               ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	subl	-1136(%rbp), %edx               ## 4-byte Folded Reload
	shll	$3, %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	__TIFFmemset
	movq	-1088(%rbp), %rax
	cmpq	%r12, %rbx
	jle	LBB0_20
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-1096(%rbp), %rcx
	incq	%r12
	decq	%r13
	addq	-1112(%rbp), %r14               ## 8-byte Folded Reload
	jmp	LBB0_25
LBB0_14:
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_TIFFFileName
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	leaq	-1072(%rbp), %rcx
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TIFFErrorExt
	jmp	LBB0_15
LBB0_20:
	movq	-1104(%rbp), %r14               ## 8-byte Reload
	cmpq	%rbx, %rax
	jle	LBB0_23
## %bb.21:
	movq	-1120(%rbp), %rcx               ## 8-byte Reload
	cmpq	%r15, %rcx
	cmovlq	%rcx, %r15
	notq	%r15
	addq	-1128(%rbp), %r15               ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	addq	%r15, %rax
	movq	-1096(%rbp), %rdx
	imulq	%rdx, %rax
	leaq	(%r14,%rax,8), %rdi
	shll	$3, %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	__TIFFmemset
	incq	%rbx
	movq	-1088(%rbp), %rax
	decq	%r15
	cmpq	%rbx, %rax
	jg	LBB0_22
LBB0_23:
	movl	-1076(%rbp), %ebx               ## 4-byte Reload
	jmp	LBB0_15
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't use TIFFReadRGBATile() with stripped file."

	.comm	_TIFFTAG_TILEWIDTH,4,2          ## @TIFFTAG_TILEWIDTH
	.comm	_TIFFTAG_TILELENGTH,4,2         ## @TIFFTAG_TILELENGTH
L_.str.1:                               ## @.str.1
	.asciz	"Row/col passed to TIFFReadRGBATile() must be topleft corner of a tile."

L_.str.2:                               ## @.str.2
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadRGBATileExt            ; -- Begin function TIFFReadRGBATileExt
	.p2align	2
_TIFFReadRGBATileExt:                   ; @TIFFReadRGBATileExt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #1120
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x0, sp, #80
	mov	w1, #1024
	bl	_bzero
	mov	x0, x21
	bl	_TIFFIsTiled
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _TIFFTAG_TILEWIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIFFTAG_TILEWIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x21
	bl	_TIFFGetFieldDefaulted
Lloh6:
	adrp	x8, _TIFFTAG_TILELENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIFFTAG_TILELENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x21
	bl	_TIFFGetFieldDefaulted
	ldr	x8, [sp, #40]
	sdiv	x9, x23, x8
	msub	x8, x9, x8, x23
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [sp, #32]
	sdiv	x9, x20, x8
	msub	x8, x9, x8, x20
	cbz	x8, LBB0_8
LBB0_3:
	ldr	w19, [x21]
	mov	x0, x21
	bl	_TIFFFileName
	mov	x1, x0
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w19, [x21]
	mov	x0, x21
	bl	_TIFFFileName
	mov	x1, x0
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_TIFFErrorExt
	mov	w21, #0
LBB0_6:
	ldur	x8, [x29, #-96]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.7:
	mov	x0, x21
	add	sp, sp, #1120
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x24, sp, #80
	add	x1, sp, #80
	mov	x0, x21
	bl	_TIFFRGBAImageOK
	cbz	w0, LBB0_16
; %bb.9:
	add	x0, sp, #48
	add	x3, sp, #80
	mov	x1, x21
	mov	x2, x22
	bl	_TIFFRGBAImageBegin
	cbz	w0, LBB0_16
; %bb.10:
	ldr	x8, [sp, #32]
	ldp	x26, x24, [sp, #48]
	sub	x9, x26, x20
	add	x25, x8, x20
	cmp	x25, x26
	csel	x22, x9, x8, gt
	ldr	x8, [sp, #40]
	sub	x9, x24, x23
	add	x27, x8, x23
	cmp	x27, x24
	csel	x28, x9, x8, gt
	stp	x23, x20, [sp, #64]
	add	x0, sp, #48
	mov	x1, x19
	mov	x2, x28
	mov	x3, x22
	bl	_TIFFRGBAImageGet
	mov	x21, x0
	add	x0, sp, #48
	bl	_TIFFRGBAImageEnd
	ldp	x8, x9, [sp, #32]
	str	x28, [sp, #24]                  ; 8-byte Folded Spill
	cmp	x28, x9
	b.ne	LBB0_12
; %bb.11:
	cmp	x22, x8
	b.eq	LBB0_6
LBB0_12:
	cmp	x22, #1
	b.lt	LBB0_18
; %bb.13:
	mov	x10, x25
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	lsl	x25, x12, #3
	add	x28, x19, x25
	cmp	x26, x10
	stp	x10, x26, [sp, #8]              ; 16-byte Folded Spill
	csel	x10, x26, x10, lt
	mvn	x11, x20
	add	x10, x11, x10
	mul	x10, x10, x12
	add	x26, x19, x10, lsl #3
	lsl	x10, x23, #3
	cmp	x24, x27
	csel	x11, x24, x27, lt
	sub	x23, x10, x11, lsl #3
	mov	x27, #-1
	mov	w24, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x27
	mul	x8, x8, x9
	add	x0, x19, x8, lsl #3
	mov	x1, x26
	mov	x2, x25
	bl	_memmove
	ldp	x8, x9, [sp, #32]
	add	x8, x27, x8
	mul	x8, x8, x9
	add	x0, x28, x8, lsl #3
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	w8, w9, w8
	lsl	w2, w8, #3
	mov	w1, #0
	bl	__TIFFmemset
	ldr	x8, [sp, #32]
	cmp	x22, x24
	b.le	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [sp, #40]
	add	x24, x24, #1
	sub	x27, x27, #1
	add	x26, x26, x23
	b	LBB0_14
LBB0_16:
	ldr	w19, [x21]
	mov	x0, x21
	bl	_TIFFFileName
	mov	x1, x0
	str	x24, [sp]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_17:
	ldp	x25, x26, [sp, #8]              ; 16-byte Folded Reload
LBB0_18:
	cmp	x8, x22
	b.le	LBB0_6
; %bb.19:
	cmp	x26, x25
	csel	x9, x26, x25, lt
	mvn	x9, x9
	add	x20, x9, x20
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x20
	ldr	x9, [sp, #40]
	mul	x8, x9, x8
	add	x0, x19, x8, lsl #3
	lsl	w2, w9, #3
	mov	w1, #0
	bl	__TIFFmemset
	add	x22, x22, #1
	ldr	x8, [sp, #32]
	sub	x20, x20, #1
	cmp	x8, x22
	b.gt	LBB0_20
	b	LBB0_6
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't use TIFFReadRGBATile() with stripped file."

	.comm	_TIFFTAG_TILEWIDTH,4,2          ; @TIFFTAG_TILEWIDTH
	.comm	_TIFFTAG_TILELENGTH,4,2         ; @TIFFTAG_TILELENGTH
l_.str.1:                               ; @.str.1
	.asciz	"Row/col passed to TIFFReadRGBATile() must be topleft corner of a tile."

l_.str.2:                               ; @.str.2
	.asciz	"%s"

.subsections_via_symbols
