	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFWriteRawTile               ## -- Begin function TIFFWriteRawTile
	.p2align	4, 0x90
_TIFFWriteRawTile:                      ## @TIFFWriteRawTile
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	_TIFFWriteRawTile.module(%rip), %rsi
	callq	_WRITECHECKTILES
	movl	$-1, %r13d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %r8
	cmpq	%r15, %r8
	jle	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_TIFFAppendToStrip
	xorl	%r13d, %r13d
	cmpq	$1, %rax
	sbbl	%r13d, %r13d
	orl	%r14d, %r13d
	jmp	LBB0_4
LBB0_2:
	movl	8(%rbx), %edi
	leaq	_TIFFWriteRawTile.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	callq	_TIFFErrorExt
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFWriteRawTile.module
_TIFFWriteRawTile.module:
	.asciz	"TIFFWriteRawTile"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tile %lu out of range, max %lu"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFWriteRawTile               ; -- Begin function TIFFWriteRawTile
	.p2align	2
_TIFFWriteRawTile:                      ; @TIFFWriteRawTile
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x1, _TIFFWriteRawTile.module@PAGE
Lloh1:
	add	x1, x1, _TIFFWriteRawTile.module@PAGEOFF
	bl	_WRITECHECKTILES
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x4, [x22]
	cmp	x4, x19
	b.le	LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_TIFFAppendToStrip
	cmp	x0, #0
	csinv	w0, w20, wzr, ne
	b	LBB0_5
LBB0_3:
	ldr	w0, [x22, #8]
Lloh2:
	adrp	x1, _TIFFWriteRawTile.module@PAGE
Lloh3:
	add	x1, x1, _TIFFWriteRawTile.module@PAGEOFF
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_TIFFErrorExt
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFWriteRawTile.module:               ; @TIFFWriteRawTile.module
	.asciz	"TIFFWriteRawTile"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tile %lu out of range, max %lu"

.subsections_via_symbols
