	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadRGBAImageOriented      ## -- Begin function TIFFReadRGBAImageOriented
	.p2align	4, 0x90
_TIFFReadRGBAImageOriented:             ## @TIFFReadRGBAImageOriented
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -1076(%rbp)               ## 4-byte Spill
	movq	%rcx, -1088(%rbp)               ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1072(%rbp), %r12
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdi
	callq	___bzero
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_TIFFRGBAImageOK
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-1104(%rbp), %rdi
	leaq	-1072(%rbp), %rcx
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_TIFFRGBAImageBegin
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movslq	-1076(%rbp), %rax               ## 4-byte Folded Reload
	movq	%rax, -1096(%rbp)
	movl	-1104(%rbp), %ecx
	subl	%ecx, %r13d
	imull	%r15d, %r13d
	movslq	%r13d, %rax
	movq	-1088(%rbp), %rdx               ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rsi
	leaq	-1104(%rbp), %r14
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_TIFFRGBAImageGet
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_TIFFRGBAImageEnd
	jmp	LBB0_4
LBB0_3:
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_TIFFFileName
	leaq	L_.str(%rip), %rdx
	leaq	-1072(%rbp), %rcx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_TIFFErrorExt
	xorl	%ebx, %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadRGBAImageOriented      ; -- Begin function TIFFReadRGBAImageOriented
	.p2align	2
_TIFFReadRGBAImageOriented:             ; @TIFFReadRGBAImageOriented
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1056
	mov	x24, x5
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	add	x0, sp, #24
	mov	w1, #1024
	bl	_bzero
	add	x1, sp, #24
	mov	x0, x23
	bl	_TIFFRGBAImageOK
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, sp, #8
	add	x3, sp, #24
	mov	x1, x23
	mov	x2, x24
	bl	_TIFFRGBAImageBegin
	cbz	x0, LBB0_3
; %bb.2:
	sxtw	x8, w22
	str	x8, [sp, #16]
	ldr	w3, [sp, #8]
	sub	w8, w21, w3
	mul	w8, w8, w19
	add	x1, x20, w8, sxtw #2
	add	x0, sp, #8
	mov	x2, x19
	bl	_TIFFRGBAImageGet
	mov	x19, x0
	add	x0, sp, #8
	bl	_TIFFRGBAImageEnd
	b	LBB0_4
LBB0_3:
	ldr	w19, [x23]
	mov	x0, x23
	bl	_TIFFFileName
	mov	x1, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #24
	mov	x0, x19
	bl	_TIFFErrorExt
	mov	w19, #0
LBB0_4:
	ldur	x8, [x29, #-72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	add	sp, sp, #1056
	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
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
