	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function TIFFWriteDirectoryTagCheckedSrationalArray
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0x4f000000                      ## float 2.14748365E+9
LCPI0_3:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x41dfffffffc00000              ## double 2147483647
LCPI0_4:
	.quad	0xc1dfffffffc00000              ## double -2147483647
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_TIFFWriteDirectoryTagCheckedSrationalArray: ## @TIFFWriteDirectoryTagCheckedSrationalArray
	.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	%r9, %r12
	movl	%r8d, %ebx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	$1, %edi
	callq	_assert
	leal	(,%rbx,8), %r15d
	movl	%r15d, %edi
	callq	__TIFFmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.2:
	movl	%ebx, %eax
	xorl	%ecx, %ecx
	xorps	%xmm0, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_3(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	movss	LCPI0_2(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	movsd	LCPI0_4(%rip), %xmm5            ## xmm5 = mem[0],zero
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rcx), %rdx
	movss	(%r12,%rcx,4), %xmm7            ## xmm7 = mem[0],zero,zero,zero
	xorps	%xmm6, %xmm6
	cvtss2sd	%xmm7, %xmm6
	ucomiss	%xmm7, %xmm0
	jbe	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	ucomiss	%xmm7, %xmm7
	jnp	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	ucomiss	%xmm2, %xmm7
	ja	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$-822083584, (%r14,%rdx,4)      ## imm = 0xCF000000
	movss	(%r12,%rcx,4), %xmm6            ## xmm6 = mem[0],zero,zero,zero
	cvtss2sd	%xmm6, %xmm6
	movapd	%xmm5, %xmm7
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	ucomiss	%xmm7, %xmm7
	jp	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movss	%xmm7, (%r14,%rdx,4)
	movaps	%xmm1, %xmm6
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movss	%xmm6, 4(%r14,%rcx,8)
	incq	%rcx
	cmpl	%ecx, %eax
	jne	LBB0_3
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	ucomiss	%xmm7, %xmm1
	jbe	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	mulsd	%xmm3, %xmm6
	cvtsd2ss	%xmm6, %xmm6
	movss	%xmm6, (%r14,%rdx,4)
	movaps	%xmm4, %xmm6
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1325400064, (%r14,%rdx,4)      ## imm = 0x4F000000
	movss	(%r12,%rcx,4), %xmm6            ## xmm6 = mem[0],zero,zero,zero
	cvtss2sd	%xmm6, %xmm6
	movapd	%xmm3, %xmm7
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	divsd	%xmm6, %xmm7
	xorps	%xmm6, %xmm6
	cvtsd2ss	%xmm7, %xmm6
	jmp	LBB0_15
LBB0_16:
	movq	_TIFF_SWAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_18
## %bb.17:
	leal	(%rbx,%rbx), %esi
	movq	%r14, %rdi
	callq	_TIFFSwabArrayOfLong
LBB0_18:
	movq	_TIFF_SRATIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%r14
	pushq	%r15
	callq	_TIFFWriteDirectoryTagData
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	__TIFFfree
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_6:
	movl	4(%r13), %edi
	leaq	_TIFFWriteDirectoryTagCheckedSrationalArray.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_TIFFErrorExt
	xorl	%eax, %eax
LBB0_7:
	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                               ## @TIFFWriteDirectoryTagCheckedSrationalArray.module
_TIFFWriteDirectoryTagCheckedSrationalArray.module:
	.asciz	"TIFFWriteDirectoryTagCheckedSrationalArray"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory"

	.comm	_TIFF_SWAB,4,2                  ## @TIFF_SWAB
	.comm	_TIFF_SRATIONAL,4,2             ## @TIFF_SRATIONAL
	.no_dead_strip	_TIFFWriteDirectoryTagCheckedSrationalArray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFWriteDirectoryTagCheckedSrationalArray
_TIFFWriteDirectoryTagCheckedSrationalArray: ; @TIFFWriteDirectoryTagCheckedSrationalArray
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x26, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w0, #1
	bl	_assert
	lsl	w25, w19, #3
	mov	x0, x25
	bl	__TIFFmalloc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x24, x0
	cmp	w19, #1
	b.lt	LBB0_14
; %bb.2:
	fmov	s0, #-1.00000000
	mov	x8, #281474972516352
	movk	x8, #16863, lsl #48
	mov	w9, #-822083584
	mov	x10, #281474972516352
	movk	x10, #49631, lsl #48
	fmov	s1, #1.00000000
	mov	w11, #1325400064
	mov	x12, x19
	mov	x13, x24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s3, [x26]
	fcvt	d2, s3
	fcmp	s3, #0.0
	b.pl	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	fcmp	s3, s3
	b.vc	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	fcmp	s3, s0
	b.gt	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w9, [x13]
	ldr	s2, [x26]
	fcvt	d2, s2
	fmov	d3, x10
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	fcmp	s3, s3
	b.vs	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	s3, [x13]
	fmov	s2, #1.00000000
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	s2, [x13, #4]
	add	x26, x26, #4
	add	x13, x13, #8
	subs	w12, w12, #1
	b.ne	LBB0_3
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	fcmp	s3, s1
	b.pl	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	fmov	d3, x8
	fmul	d2, d2, d3
	fcvt	s2, d2
	str	s2, [x13]
	movi.2s	v2, #79, lsl #24
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w11, [x13]
	ldr	s2, [x26]
	fcvt	d2, s2
	fmov	d3, x8
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	fdiv	d2, d3, d2
	fcvt	s2, d2
	b	LBB0_9
LBB0_14:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _TIFF_SWAB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIFF_SWAB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	lsl	w1, w19, #1
	mov	x0, x24
	bl	_TIFFSwabArrayOfLong
LBB0_16:
Lloh3:
	adrp	x8, _TIFF_SRATIONAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIFF_SRATIONAL@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x5, x19
	mov	x6, x25
	mov	x7, x24
	bl	_TIFFWriteDirectoryTagData
	mov	x19, x0
	mov	x0, x24
	bl	__TIFFfree
	mov	x0, x19
	b	LBB0_18
LBB0_17:
	ldr	w0, [x23, #4]
Lloh6:
	adrp	x1, _TIFFWriteDirectoryTagCheckedSrationalArray.module@PAGE
Lloh7:
	add	x1, x1, _TIFFWriteDirectoryTagCheckedSrationalArray.module@PAGEOFF
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_TIFFErrorExt
	mov	w0, #0
LBB0_18:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFWriteDirectoryTagCheckedSrationalArray.module: ; @TIFFWriteDirectoryTagCheckedSrationalArray.module
	.asciz	"TIFFWriteDirectoryTagCheckedSrationalArray"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory"

	.comm	_TIFF_SWAB,4,2                  ; @TIFF_SWAB
	.comm	_TIFF_SRATIONAL,4,2             ; @TIFF_SRATIONAL
	.no_dead_strip	_TIFFWriteDirectoryTagCheckedSrationalArray
.subsections_via_symbols
