	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function TIFFFetchSubjectDistance
LCPI0_0:
	.quad	0x7ff8000000000000              ## double NaN
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_TIFFFetchSubjectDistance:              ## @TIFFFetchSubjectDistance
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$1, %edi
	callq	_assert
	xorl	%edi, %edi
	callq	_assert
	movl	$1, %edi
	callq	_assert
	cmpl	$1, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	_TIFF_RATIONAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	(%r14), %eax
	movq	_TIFF_BIGTIFF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.8:
	movq	_TIFFReadDirEntryErrOk@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_TIFFReadDirEntryErrCount@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_TIFFReadDirEntryErrType@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
LBB0_10:
	movq	_TIFFReadDirEntryErrOk@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_14
## %bb.11:
	movq	_TIFF_SWAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_13
## %bb.12:
	movl	$2, %esi
	callq	_TIFFSwabArrayOfLong
LBB0_13:
	movl	16(%rbx), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	%r14, %rdi
	callq	_TIFFSetField
	jmp	LBB0_15
LBB0_14:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	_TIFFFetchSubjectDistance.module(%rip), %rdx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_TIFFReadDirEntryOutputErr
	xorl	%eax, %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	24(%rbx), %esi
	movl	%esi, -20(%rbp)
	movq	_TIFF_SWAB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	leaq	-20(%rbp), %rdi
	callq	_TIFFSwabLong
	movl	-20(%rbp), %esi
LBB0_7:
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_TIFFReadDirEntryData
	movl	%eax, %esi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFFetchSubjectDistance.module
_TIFFFetchSubjectDistance.module:
	.asciz	"TIFFFetchSubjectDistance"

	.comm	_TIFFReadDirEntryErrCount,4,2   ## @TIFFReadDirEntryErrCount
	.comm	_TIFF_RATIONAL,8,3              ## @TIFF_RATIONAL
	.comm	_TIFFReadDirEntryErrType,4,2    ## @TIFFReadDirEntryErrType
	.comm	_TIFF_BIGTIFF,4,2               ## @TIFF_BIGTIFF
	.comm	_TIFF_SWAB,4,2                  ## @TIFF_SWAB
	.comm	_TIFFReadDirEntryErrOk,4,2      ## @TIFFReadDirEntryErrOk
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SubjectDistance"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_TIFFFetchSubjectDistance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFFetchSubjectDistance
_TIFFFetchSubjectDistance:              ; @TIFFFetchSubjectDistance
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w0, #1
	bl	_assert
	mov	w0, #0
	bl	_assert
	mov	w0, #1
	bl	_assert
	ldr	w8, [x20]
Lloh0:
	adrp	x21, _TIFFReadDirEntryErrOk@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TIFFReadDirEntryErrOk@GOTPAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _TIFF_RATIONAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TIFF_RATIONAL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _TIFF_BIGTIFF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TIFF_BIGTIFF@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	w1, [x21]
	b	LBB0_9
LBB0_4:
Lloh8:
	adrp	x8, _TIFFReadDirEntryErrCount@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TIFFReadDirEntryErrCount@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _TIFFReadDirEntryErrType@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TIFFReadDirEntryErrType@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	b	LBB0_9
LBB0_6:
	ldr	w1, [x20, #24]
	str	w1, [sp, #12]
Lloh14:
	adrp	x9, _TIFF_SWAB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TIFF_SWAB@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	add	x0, sp, #12
	bl	_TIFFSwabLong
	ldr	w1, [sp, #12]
LBB0_8:
	mov	x0, x19
	mov	w2, #8
	bl	_TIFFReadDirEntryData
	mov	x1, x0
LBB0_9:
	ldr	w8, [x21]
	cmp	w1, w8
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _TIFF_SWAB@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TIFF_SWAB@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	w1, #2
	bl	_TIFFSwabArrayOfLong
LBB0_12:
	ldr	w1, [x20, #16]
	mov	x8, #9221120237041090560
	fmov	d0, x8
	mov	x0, x19
	bl	_TIFFSetField
	b	LBB0_14
LBB0_13:
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
Lloh23:
	adrp	x2, _TIFFFetchSubjectDistance.module@PAGE
Lloh24:
	add	x2, x2, _TIFFFetchSubjectDistance.module@PAGEOFF
Lloh25:
	adrp	x3, l_.str@PAGE
Lloh26:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_TIFFReadDirEntryOutputErr
	mov	w0, #0
LBB0_14:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFFetchSubjectDistance.module:       ; @TIFFFetchSubjectDistance.module
	.asciz	"TIFFFetchSubjectDistance"

	.comm	_TIFFReadDirEntryErrCount,4,2   ; @TIFFReadDirEntryErrCount
	.comm	_TIFF_RATIONAL,8,3              ; @TIFF_RATIONAL
	.comm	_TIFFReadDirEntryErrType,4,2    ; @TIFFReadDirEntryErrType
	.comm	_TIFF_BIGTIFF,4,2               ; @TIFF_BIGTIFF
	.comm	_TIFF_SWAB,4,2                  ; @TIFF_SWAB
	.comm	_TIFFReadDirEntryErrOk,4,2      ; @TIFFReadDirEntryErrOk
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SubjectDistance"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_TIFFFetchSubjectDistance
.subsections_via_symbols
