	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFReadDirEntryCheckedSrational
_TIFFReadDirEntryCheckedSrational:      ## @TIFFReadDirEntryCheckedSrational
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$1, %edi
	callq	_assert
	xorl	%edi, %edi
	callq	_assert
	xorl	%edi, %edi
	callq	_assert
	movl	$1, %edi
	callq	_assert
	movl	(%rbx), %eax
	movq	_TIFF_BIGTIFF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.1:
	movl	4(%r15), %esi
	movl	%esi, -28(%rbp)
	movq	_TIFF_SWAB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	leaq	-28(%rbp), %rdi
	callq	_TIFFSwabLong
	movl	-28(%rbp), %esi
LBB0_3:
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_TIFFReadDirEntryData
	movq	_TIFFReadDirEntryErrOk@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.4:
	movl	(%rbx), %eax
LBB0_5:
	movq	_TIFF_SWAB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	$2, %esi
	callq	_TIFFSwabArrayOfLong
LBB0_7:
	movabsq	$9221120237041090560, %rax      ## imm = 0x7FF8000000000000
	movq	%rax, (%r14)
	movq	_TIFFReadDirEntryErrOk@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIFF_BIGTIFF,4,2               ## @TIFF_BIGTIFF
	.comm	_TIFF_SWAB,4,2                  ## @TIFF_SWAB
	.comm	_TIFFReadDirEntryErrOk,4,2      ## @TIFFReadDirEntryErrOk
	.no_dead_strip	_TIFFReadDirEntryCheckedSrational
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFReadDirEntryCheckedSrational
_TIFFReadDirEntryCheckedSrational:      ; @TIFFReadDirEntryCheckedSrational
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mov	w0, #1
	bl	_assert
	mov	w0, #0
	bl	_assert
	mov	w0, #0
	bl	_assert
	mov	w0, #1
	bl	_assert
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _TIFF_BIGTIFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIFF_BIGTIFF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x23, _TIFF_SWAB@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TIFF_SWAB@GOTPAGEOFF]
Lloh5:
	adrp	x22, _TIFFReadDirEntryErrOk@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TIFFReadDirEntryErrOk@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.1:
	ldr	w1, [x21, #4]
	str	w1, [sp, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	add	x0, sp, #12
	bl	_TIFFSwabLong
	ldr	w1, [sp, #12]
LBB0_3:
	mov	x0, x20
	mov	w2, #8
	bl	_TIFFReadDirEntryData
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x20]
LBB0_5:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w1, #2
	bl	_TIFFSwabArrayOfLong
LBB0_7:
	mov	x8, #9221120237041090560
	str	x8, [x19]
	ldr	w0, [x22]
LBB0_8:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIFF_BIGTIFF,4,2               ; @TIFF_BIGTIFF
	.comm	_TIFF_SWAB,4,2                  ; @TIFF_SWAB
	.comm	_TIFFReadDirEntryErrOk,4,2      ; @TIFFReadDirEntryErrOk
	.no_dead_strip	_TIFFReadDirEntryCheckedSrational
.subsections_via_symbols
