	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadRGBAStripExt           ## -- Begin function TIFFReadRGBAStripExt
	.p2align	4, 0x90
_TIFFReadRGBAStripExt:                  ## @TIFFReadRGBAStripExt
	.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	%r12
	pushq	%rbx
	subq	$1088, %rsp                     ## imm = 0x440
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	___bzero
	movq	%rbx, %rdi
	callq	_TIFFIsTiled
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_TIFFFileName
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	movq	_TIFFTAG_ROWSPERSTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1080(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_TIFFGetFieldDefaulted
	movq	-1080(%rbp), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	je	LBB0_8
LBB0_7:
	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_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	addq	$1088, %rsp                     ## imm = 0x440
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_7
LBB0_8:
	leaq	-1072(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_TIFFRGBAImageOK
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	-1112(%rbp), %rdi
	leaq	-1072(%rbp), %rcx
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_TIFFRGBAImageBegin
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r15, -1088(%rbp)
	movq	$0, -1096(%rbp)
	movq	-1080(%rbp), %rax
	leaq	(%rax,%r15), %rdx
	movq	-1112(%rbp), %rsi
	movq	%rsi, %rcx
	subq	%r15, %rcx
	cmpq	%rsi, %rdx
	cmovleq	%rax, %rcx
	movl	-1104(%rbp), %edx
	leaq	-1112(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_TIFFRGBAImageGet
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_TIFFRGBAImageEnd
	jmp	LBB0_12
LBB0_11:
	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_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't use TIFFReadRGBAStrip() with tiled file."

	.comm	_TIFFTAG_ROWSPERSTRIP,4,2       ## @TIFFTAG_ROWSPERSTRIP
L_.str.1:                               ## @.str.1
	.asciz	"Row passed to TIFFReadRGBAStrip() must be first in a strip."

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	_TIFFReadRGBAStripExt           ; -- Begin function TIFFReadRGBAStripExt
	.p2align	2
_TIFFReadRGBAStripExt:                  ; @TIFFReadRGBAStripExt
	.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
	sub	sp, sp, #1088
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x0, sp, #56
	mov	w1, #1024
	bl	_bzero
	mov	x0, x20
	bl	_TIFFIsTiled
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w19, [x20]
	mov	x0, x20
	bl	_TIFFFileName
	mov	x1, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
Lloh5:
	adrp	x8, _TIFFTAG_ROWSPERSTRIP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIFFTAG_ROWSPERSTRIP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x20
	bl	_TIFFGetFieldDefaulted
	ldr	x8, [sp, #16]
	sdiv	x9, x21, x8
	msub	x8, x9, x8, x21
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w19, [x20]
	mov	x0, x20
	bl	_TIFFFileName
	mov	x1, x0
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	add	x23, sp, #56
	add	x1, sp, #56
	mov	x0, x20
	bl	_TIFFRGBAImageOK
	cbz	x0, LBB0_7
; %bb.5:
	add	x0, sp, #24
	add	x3, sp, #56
	mov	x1, x20
	mov	x2, x22
	bl	_TIFFRGBAImageBegin
	cbz	x0, LBB0_7
; %bb.6:
	stp	xzr, x21, [sp, #40]
	ldp	x8, x9, [sp, #16]
	sub	x10, x9, x21
	add	x11, x8, x21
	cmp	x11, x9
	csel	x3, x10, x8, gt
	ldr	w2, [sp, #32]
	add	x0, sp, #24
	mov	x1, x19
	bl	_TIFFRGBAImageGet
	mov	x19, x0
	add	x0, sp, #24
	bl	_TIFFRGBAImageEnd
	b	LBB0_9
LBB0_7:
	ldr	w19, [x20]
	mov	x0, x20
	bl	_TIFFFileName
	mov	x1, x0
	str	x23, [sp]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_TIFFErrorExt
	mov	w19, #0
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	add	sp, sp, #1088
	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
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't use TIFFReadRGBAStrip() with tiled file."

	.comm	_TIFFTAG_ROWSPERSTRIP,4,2       ; @TIFFTAG_ROWSPERSTRIP
l_.str.1:                               ; @.str.1
	.asciz	"Row passed to TIFFReadRGBAStrip() must be first in a strip."

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

.subsections_via_symbols
