	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFFetchStripThing
_TIFFFetchStripThing:                   ## @TIFFFetchStripThing
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdx
	movq	%r15, %rcx
	callq	_TIFFReadDirEntryLong8ArrayWithLimit
	movl	%eax, %ebx
	movq	_TIFFReadDirEntryErrOk@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_1
## %bb.5:
	cmpq	%r15, (%r12)
	jge	LBB0_6
## %bb.7:
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_TIFFFieldWithTag
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.9:
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, %r13
	jmp	LBB0_10
LBB0_1:
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_TIFFFieldWithTag
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rcx
	jmp	LBB0_4
LBB0_6:
	movq	-48(%rbp), %rbx
	jmp	LBB0_17
LBB0_2:
	leaq	L_.str(%rip), %rcx
LBB0_4:
	leaq	_TIFFFetchStripThing.module(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	callq	_TIFFReadDirEntryOutputErr
	jmp	LBB0_18
LBB0_8:
	movl	$1000000, %r13d                 ## imm = 0xF4240
LBB0_10:
	movq	_TIFFReadDirEntryErrCount@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	movq	(%rbx), %rcx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str(%rip), %rcx
LBB0_13:
	xorl	%r8d, %r8d
	cmpq	%r15, %r13
	setge	%r8b
	leaq	_TIFFFetchStripThing.module(%rip), %rdx
	movq	%r14, %rdi
	callq	_TIFFReadDirEntryOutputErr
	cmpq	%r15, %r13
	jl	LBB0_14
## %bb.15:
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	__TIFFCheckMalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:
	movq	%rax, %rbx
	movq	-48(%rbp), %rsi
	movq	(%r12), %rdx
	shlq	$3, %rdx
	movq	%rax, %rdi
	callq	__TIFFmemcpy
	movq	(%r12), %rax
	leaq	(%rbx,%rax,8), %rdi
	subq	%rax, %r15
	shlq	$3, %r15
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	__TIFFmemset
	movq	-48(%rbp), %rdi
	callq	__TIFFfree
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_17:
	movq	%rbx, (%r13)
	movl	$1, %r15d
	jmp	LBB0_18
LBB0_14:
	movq	-48(%rbp), %rdi
	callq	__TIFFfree
	xorl	%r15d, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFFetchStripThing.module
_TIFFFetchStripThing.module:
	.asciz	"TIFFFetchStripThing"

	.comm	_TIFFReadDirEntryErrOk,4,2      ## @TIFFReadDirEntryErrOk
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown tagname"

L_.str.1:                               ## @.str.1
	.asciz	"LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT"

	.comm	_TIFFReadDirEntryErrCount,4,2   ## @TIFFReadDirEntryErrCount
L_.str.2:                               ## @.str.2
	.asciz	"for strip array"

	.no_dead_strip	_TIFFFetchStripThing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFFetchStripThing
_TIFFFetchStripThing:                   ; @TIFFFetchStripThing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x2, sp, #8
	mov	x3, x21
	bl	_TIFFReadDirEntryLong8ArrayWithLimit
Lloh0:
	adrp	x8, _TIFFReadDirEntryErrOk@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIFFReadDirEntryErrOk@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x22]
	cmp	x8, x21
	b.ge	LBB0_6
; %bb.2:
	ldr	w1, [x22, #8]
	mov	x0, x20
	bl	_TIFFFieldWithTag
	mov	x24, x0
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_9
; %bb.3:
	bl	_atoi
	mov	x23, x0
	b	LBB0_10
LBB0_4:
	mov	x23, x0
	ldr	w1, [x22, #8]
	mov	x0, x20
	bl	_TIFFFieldWithTag
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x3, [x0]
	b	LBB0_8
LBB0_6:
	ldr	x20, [sp, #8]
	b	LBB0_16
LBB0_7:
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
LBB0_8:
Lloh7:
	adrp	x2, _TIFFFetchStripThing.module@PAGE
Lloh8:
	add	x2, x2, _TIFFFetchStripThing.module@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	mov	w4, #0
	bl	_TIFFReadDirEntryOutputErr
	b	LBB0_18
LBB0_9:
	mov	w23, #16960
	movk	w23, #15, lsl #16
LBB0_10:
Lloh9:
	adrp	x8, _TIFFReadDirEntryErrCount@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TIFFReadDirEntryErrCount@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	cbz	x24, LBB0_12
; %bb.11:
	ldr	x3, [x24]
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
LBB0_13:
	cmp	x23, x21
	cset	w4, ge
Lloh14:
	adrp	x2, _TIFFFetchStripThing.module@PAGE
Lloh15:
	add	x2, x2, _TIFFFetchStripThing.module@PAGEOFF
	mov	x0, x20
	bl	_TIFFReadDirEntryOutputErr
	cmp	x23, x21
	b.lt	LBB0_17
; %bb.14:
Lloh16:
	adrp	x3, l_.str.2@PAGE
Lloh17:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8
	bl	__TIFFCheckMalloc
	cbz	x0, LBB0_17
; %bb.15:
	mov	x20, x0
	ldr	x1, [sp, #8]
	ldr	x8, [x22]
	lsl	x2, x8, #3
	bl	__TIFFmemcpy
	ldr	x8, [x22]
	add	x0, x20, x8, lsl #3
	sub	x8, x21, x8
	lsl	x2, x8, #3
	mov	w1, #0
	bl	__TIFFmemset
	ldr	x0, [sp, #8]
	bl	__TIFFfree
LBB0_16:
	str	x20, [x19]
	mov	w0, #1
	b	LBB0_19
LBB0_17:
	ldr	x0, [sp, #8]
	bl	__TIFFfree
LBB0_18:
	mov	w0, #0
LBB0_19:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFFetchStripThing.module:            ; @TIFFFetchStripThing.module
	.asciz	"TIFFFetchStripThing"

	.comm	_TIFFReadDirEntryErrOk,4,2      ; @TIFFReadDirEntryErrOk
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown tagname"

l_.str.1:                               ; @.str.1
	.asciz	"LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT"

	.comm	_TIFFReadDirEntryErrCount,4,2   ; @TIFFReadDirEntryErrCount
l_.str.2:                               ; @.str.2
	.asciz	"for strip array"

	.no_dead_strip	_TIFFFetchStripThing
.subsections_via_symbols
