	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gtStripContig
_gtStripContig:                         ## @gtStripContig
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	40(%rdi), %r14
	movq	$0, -88(%rbp)
	movl	(%rdi), %r12d
	movq	_TIFFTAG_YCBCRSUBSAMPLING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-148(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_TIFFGetFieldDefaulted
	cmpl	$0, -72(%rbp)
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_TIFFStripSize
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_setorientation
	movq	_FLIP_VERTICALLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	andl	%eax, %ebx
	leal	(%r13,%r13), %eax
	negl	%eax
	testl	%ebx, %ebx
	cmovel	%ebx, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_TIFFTAG_ROWSPERSTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_TIFFGetFieldDefaulted
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_TIFFScanlineSize
	subl	%r13d, %r12d
	movl	$0, %ecx
	cmovlel	%ecx, %r12d
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.4:
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	leal	-1(%r15), %ecx
	testl	%ebx, %ebx
	cmovel	%ebx, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r12), %eax
	addl	%r14d, %eax
	cltd
	idivl	-44(%rbp)
	imull	-68(%rbp), %edx                 ## 4-byte Folded Reload
	movl	8(%r12), %eax
	imull	16(%r12), %eax
	addl	%edx, %eax
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	imull	%r8d, %ecx
	movslq	%ecx, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rsi
	cltq
	addq	%rax, %r10
	subq	$8, %rsp
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r13d, %r9d
	pushq	%r10
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	callq	*-144(%rbp)                     ## 8-byte Folded Reload
	addq	$32, %rsp
	movl	%r13d, %eax
	negl	%eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	_FLIP_VERTICALLY@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	cmovel	%r13d, %eax
	addl	%eax, %ebx
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	addl	%r14d, %r13d
	movl	%r13d, %r14d
	cmpl	%r15d, %r13d
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %ecx
	movl	4(%r12), %esi
	addl	%r14d, %esi
	movl	%esi, %eax
	cltd
	idivl	%ecx
	subl	%edx, %ecx
	leal	(%rcx,%r14), %eax
	movl	%r15d, %r13d
	subl	%r14d, %r13d
	cmpl	%r15d, %eax
	cmovlel	%ecx, %r13d
	movl	-72(%rbp), %r15d
	movl	%r13d, %eax
	cltd
	idivl	%r15d
	subl	%edx, %r15d
	testl	%edx, %edx
	cmovel	%edx, %r15d
	addl	%r13d, %r15d
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_TIFFComputeStrip
	movl	%eax, %esi
	movl	4(%r12), %eax
	addl	%r14d, %eax
	cltd
	idivl	-44(%rbp)
	addl	%edx, %r15d
	imull	-68(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rdx
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	callq	__TIFFReadEncodedStripAndAllocBuffer
	movq	-88(%rbp), %r10
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	testq	%r10, %r10
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 24(%r12)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_8
	jmp	LBB0_10
LBB0_1:
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_TIFFFileName
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_TIFFErrorExt
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_3:
	movl	$1, %r12d
	jmp	LBB0_26
LBB0_9:
	movl	$1, %ecx
LBB0_10:
	movq	_FLIP_HORIZONTALLY@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rax)
	je	LBB0_11
## %bb.12:
	movslq	-104(%rbp), %r11                ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r8d
	movl	%ecx, %r12d
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.13:
	xorl	%edx, %edx
LBB0_22:
	testb	$1, %r8b
	je	LBB0_26
## %bb.23:
	imulq	%r11, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rdx,4), %rcx
	leaq	(%rcx,%r11,4), %rax
	addq	$-4, %rax
	cmpq	%rax, %rcx
	jae	LBB0_26
## %bb.24:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rcx
	addq	$4, %rcx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rcx), %edx
	movl	(%rax), %esi
	movl	%esi, -4(%rcx)
	movl	%edx, (%rax)
	addq	$-4, %rax
	leaq	4(%rcx), %rdx
	cmpq	%rax, %rcx
	movq	%rdx, %rcx
	jb	LBB0_25
	jmp	LBB0_26
LBB0_11:
	movl	%ecx, %r12d
LBB0_26:
	movq	-88(%rbp), %rdi
	callq	__TIFFfree
	movl	%r12d, %eax
LBB0_27:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %r14
	leaq	(,%r11,8), %r10
	leaq	(%rax,%r11,4), %rcx
	addq	$4, %rcx
	xorl	%edx, %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$2, %rdx
	addq	%r10, %r14
	addq	%r10, %rcx
	cmpq	%r9, %rdx
	je	LBB0_22
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	movq	%rdx, %rsi
	imulq	%r11, %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rsi,4), %rdi
	leaq	(%rdi,%r11,4), %rsi
	addq	$-4, %rsi
	cmpq	%rsi, %rdi
	jae	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r14, %rdi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdi), %eax
	movl	(%rsi), %ebx
	movl	%ebx, -4(%rdi)
	movl	%eax, (%rsi)
	addq	$-4, %rsi
	leaq	4(%rdi), %rax
	cmpq	%rsi, %rdi
	movq	%rax, %rdi
	jb	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rdx, %rax
	orq	$1, %rax
	imulq	%r11, %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rax
	leaq	(%rax,%r11,4), %rsi
	addq	$-4, %rsi
	cmpq	%rsi, %rax
	jae	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rcx, %rdi
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdi), %eax
	movl	(%rsi), %ebx
	movl	%ebx, -4(%rdi)
	movl	%eax, (%rsi)
	addq	$-4, %rsi
	leaq	4(%rdi), %rax
	cmpq	%rsi, %rdi
	movq	%rax, %rdi
	jb	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_TIFFTAG_YCBCRSUBSAMPLING,4,2   ## @TIFFTAG_YCBCRSUBSAMPLING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid vertical YCbCr subsampling"

	.comm	_FLIP_VERTICALLY,4,2            ## @FLIP_VERTICALLY
	.comm	_TIFFTAG_ROWSPERSTRIP,4,2       ## @TIFFTAG_ROWSPERSTRIP
	.comm	_FLIP_HORIZONTALLY,4,2          ## @FLIP_HORIZONTALLY
	.no_dead_strip	_gtStripContig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gtStripContig
_gtStripContig:                         ; @gtStripContig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldp	x8, x22, [x0, #32]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	str	xzr, [sp, #56]
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _TIFFTAG_YCBCRSUBSAMPLING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIFFTAG_YCBCRSUBSAMPLING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x8, sp, #44
	str	x8, [sp]
	add	x2, sp, #48
	mov	x0, x22
	bl	_TIFFGetFieldDefaulted
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x0, x22
	bl	_TIFFStripSize
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x23
	bl	_setorientation
Lloh3:
	adrp	x8, _FLIP_VERTICALLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLIP_VERTICALLY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	ands	w25, w8, w0
	lsl	w8, w21, #1
	csneg	w8, wzr, w8, eq
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _TIFFTAG_ROWSPERSTRIP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIFFTAG_ROWSPERSTRIP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #52
	mov	x0, x22
	bl	_TIFFGetFieldDefaulted
	mov	x0, x22
	bl	_TIFFScanlineSize
	subs	w8, w24, w21
	csel	w8, w8, wzr, gt
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	subs	w8, w20, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x27, x0
	mov	w26, #0
	cmp	w25, #0
	csel	w25, wzr, w8, eq
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w10, [x23, #4]
	add	w9, w9, w26
	ldr	w11, [sp, #52]
	sdiv	w12, w9, w11
	msub	w9, w12, w11, w9
	mul	w9, w9, w27
	ldr	w11, [x23, #16]
	madd	w9, w10, w11, w9
	mul	w10, w25, w21
	add	x1, x19, w10, sxtw #2
	add	x8, x8, w9, sxtw
	str	x8, [sp]
	mov	x0, x23
	mov	w2, #0
	mov	x3, x25
	mov	x4, x21
	mov	x5, x24
	ldp	w6, w7, [sp, #20]               ; 8-byte Folded Reload
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	blr	x8
Lloh9:
	adrp	x8, _FLIP_VERTICALLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLIP_VERTICALLY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	tst	w8, w9
	cneg	w8, w24, ne
	add	w25, w8, w25
	add	w26, w24, w26
	cmp	w26, w20
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #52]
	ldr	w9, [x23, #4]
	add	w1, w9, w26
	neg	w9, w1
	sdiv	w10, w1, w8
	madd	w9, w10, w8, w9
	add	w8, w8, w9
	add	w9, w8, w26
	sub	w10, w20, w26
	cmp	w9, w20
	csel	w24, w10, w8, gt
	ldr	w8, [sp, #44]
	sdiv	w9, w24, w8
	msub	w9, w9, w8, w24
	sub	w8, w8, w9
	cmp	w9, #0
	csel	w8, wzr, w8, eq
	add	w28, w24, w8
	mov	x0, x22
	mov	w2, #0
	bl	_TIFFComputeStrip
	mov	x1, x0
	ldr	w8, [x23, #4]
	add	w8, w8, w26
	ldr	w9, [sp, #52]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	add	w8, w28, w8
	mul	w4, w8, w27
	add	x2, sp, #56
	mov	x0, x22
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	bl	__TIFFReadEncodedStripAndAllocBuffer
	ldr	x8, [sp, #56]
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23, #24]
	cbz	x9, LBB0_3
LBB0_7:
	mov	w22, #0
	b	LBB0_11
LBB0_8:
	ldr	w19, [x22]
	mov	x0, x22
	bl	_TIFFFileName
	mov	x1, x0
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_TIFFErrorExt
	mov	w22, #0
	b	LBB0_18
LBB0_9:
	mov	w22, #1
	b	LBB0_17
LBB0_10:
	mov	w22, #1
LBB0_11:
Lloh14:
	adrp	x8, _FLIP_HORIZONTALLY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FLIP_HORIZONTALLY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	tst	w8, w9
	b.eq	LBB0_17
; %bb.12:
	mov	x8, #0
	sxtw	x9, w21
	add	x10, x19, #4
	sbfiz	x11, x21, #2, #32
	mov	w12, w20
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #1
	add	x10, x10, x11
	cmp	x8, x12
	b.eq	LBB0_17
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	mul	x13, x8, x9
	add	x14, x19, x13, lsl #2
	add	x13, x14, x9, lsl #2
	sub	x13, x13, #4
	cmp	x14, x13
	b.hs	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x14, x10
LBB0_16:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w15, [x14, #-4]
	ldr	w16, [x13]
	stur	w16, [x14, #-4]
	str	w15, [x13], #-4
	add	x15, x14, #4
	cmp	x14, x13
	mov	x14, x15
	b.lo	LBB0_16
	b	LBB0_13
LBB0_17:
	ldr	x0, [sp, #56]
	bl	__TIFFfree
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TIFFTAG_YCBCRSUBSAMPLING,4,2   ; @TIFFTAG_YCBCRSUBSAMPLING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid vertical YCbCr subsampling"

	.comm	_FLIP_VERTICALLY,4,2            ; @FLIP_VERTICALLY
	.comm	_TIFFTAG_ROWSPERSTRIP,4,2       ; @TIFFTAG_ROWSPERSTRIP
	.comm	_FLIP_HORIZONTALLY,4,2          ; @FLIP_HORIZONTALLY
	.no_dead_strip	_gtStripContig
.subsections_via_symbols
