	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function TIFFDefaultTransferFunction
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x400199999999999a              ## double 2.2000000000000002
LCPI0_2:
	.quad	0x40efffe000000000              ## double 65535
LCPI0_3:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_TIFFDefaultTransferFunction:           ## @TIFFDefaultTransferFunction
	.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	16(%rdi), %r15
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%r15)
	movq	$0, 16(%r15)
	movl	(%rdi), %r13d
	xorl	%ebx, %ebx
	cmpq	$29, %r13
	ja	LBB0_17
## %bb.1:
	movq	%rdi, %r12
	movl	$1, %r14d
	movl	%r13d, %ecx
	shlq	%cl, %r14
	leal	(,%r14,8), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	__TIFFmalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	$0, (%rax)
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14d, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	divsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_pow
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	LCPI0_3(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_floor
	cltq
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_4
LBB0_5:
	movl	4(%r12), %eax
	subl	8(%r12), %eax
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	__TIFFmalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	(%r15), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	__TIFFmemcpy
	movl	%ebx, %edi
	callq	__TIFFmalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%r15), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	__TIFFmemcpy
LBB0_9:
	movl	$1, %ebx
	jmp	LBB0_17
LBB0_10:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	movl	$0, %ebx
	je	LBB0_12
## %bb.11:
	callq	__TIFFfree
LBB0_12:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	__TIFFfree
LBB0_14:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	__TIFFfree
LBB0_16:
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%r15)
	movq	$0, 16(%r15)
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_TIFFDefaultTransferFunction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFDefaultTransferFunction
_TIFFDefaultTransferFunction:           ; @TIFFDefaultTransferFunction
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -88
	.cfi_offset b9, -96
	ldr	x21, [x0, #16]
	stp	xzr, xzr, [x21]
	str	xzr, [x21, #16]
	ldr	w23, [x0]
	cmp	w23, #29
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_18
LBB0_2:
	mov	x20, x0
	mov	w8, #1
	lsl	x22, x8, x23
	lsl	w19, w22, #3
	mov	x0, x19
	bl	__TIFFmalloc
	str	x0, [x21]
	cbz	x0, LBB0_18
; %bb.3:
	str	xzr, [x0]
	cbz	w23, LBB0_6
; %bb.4:
	scvtf	d0, w22
	fmov	d1, #-1.00000000
	fadd	d8, d0, d1
	mov	w23, #1
	mov	x24, #-7378697629483820647
	movk	x24, #39322
	movk	x24, #16385, lsl #48
	mov	x25, #281337537757184
	movk	x25, #16623, lsl #48
	fmov	d9, #0.50000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w23
	fdiv	d0, d0, d8
	fmov	d1, x24
	bl	_pow
	scvtf	d0, w0
	fmov	d1, x25
	fmadd	d0, d0, d1, d9
	fcvtzs	w0, d0
	bl	_floor
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x21]
	str	x8, [x9, x23, lsl #3]
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_5
LBB0_6:
	ldp	w8, w9, [x20, #4]
	sub	w8, w8, w9
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.7:
	mov	x0, x19
	bl	__TIFFmalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x1, [x21]
	mov	x2, x19
	bl	__TIFFmemcpy
	mov	x0, x19
	bl	__TIFFmalloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x1, [x21]
	mov	x2, x19
	bl	__TIFFmemcpy
LBB0_10:
	mov	w0, #1
	b	LBB0_18
LBB0_11:
	ldr	x0, [x21]
	cbz	x0, LBB0_13
; %bb.12:
	bl	__TIFFfree
LBB0_13:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_15
; %bb.14:
	bl	__TIFFfree
LBB0_15:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_17
; %bb.16:
	bl	__TIFFfree
LBB0_17:
	mov	w0, #0
	stp	xzr, xzr, [x21]
	str	xzr, [x21, #16]
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_TIFFDefaultTransferFunction
.subsections_via_symbols
