	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initYCbCrConversion
_initYCbCrConversion:                   ## @initYCbCrConversion
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movl	$4, %edi
	movl	$8, %esi
	callq	_TIFFroundup_32
	leaq	9216(%rax), %rdi
	callq	__TIFFmalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	8(%rbx), %rdi
	movq	_TIFFTAG_YCBCRCOEFFICIENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_TIFFGetFieldDefaulted
	movq	8(%rbx), %rdi
	movq	_TIFFTAG_REFERENCEBLACKWHITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_TIFFGetFieldDefaulted
	movq	-24(%rbp), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm0
	jp	LBB0_7
## %bb.5:
	xorps	%xmm0, %xmm0
	ucomiss	4(%rax), %xmm0
	je	LBB0_7
## %bb.6:
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm0
	jp	LBB0_7
## %bb.8:
	movq	-16(%rbp), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	callq	_isInRefBlackWhiteRange
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movq	-16(%rbp), %rax
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	callq	_isInRefBlackWhiteRange
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movq	-16(%rbp), %rax
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	callq	_isInRefBlackWhiteRange
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	-16(%rbp), %rax
	movss	12(%rax), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	callq	_isInRefBlackWhiteRange
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	-16(%rbp), %rax
	movss	16(%rax), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	callq	_isInRefBlackWhiteRange
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	-16(%rbp), %rax
	movss	20(%rax), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	callq	_isInRefBlackWhiteRange
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	(%rbx), %rdi
	movq	-24(%rbp), %rsi
	movq	-16(%rbp), %rdx
	callq	_TIFFYCbCrToRGBInit
	shrq	$63, %rax
	xorl	$1, %eax
	jmp	LBB0_16
LBB0_14:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	_initYCbCrConversion.module(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_3
LBB0_7:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	_initYCbCrConversion.module(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	_initYCbCrConversion.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	callq	_TIFFErrorExt
	xorl	%eax, %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @initYCbCrConversion.module
_initYCbCrConversion.module:
	.asciz	"initYCbCrConversion"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No space for YCbCr->RGB conversion state"

	.comm	_TIFFTAG_YCBCRCOEFFICIENTS,4,2  ## @TIFFTAG_YCBCRCOEFFICIENTS
	.comm	_TIFFTAG_REFERENCEBLACKWHITE,4,2 ## @TIFFTAG_REFERENCEBLACKWHITE
L_.str.1:                               ## @.str.1
	.asciz	"Invalid values for YCbCrCoefficients tag"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid values for ReferenceBlackWhite tag"

	.no_dead_strip	_initYCbCrConversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initYCbCrConversion
_initYCbCrConversion:                   ; @initYCbCrConversion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	w0, #4
	mov	w1, #8
	bl	_TIFFroundup_32
	mov	w8, #9216
	add	x0, x0, x8
	bl	__TIFFmalloc
	str	x0, [x19]
	cbz	x0, LBB0_14
LBB0_2:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _TIFFTAG_YCBCRCOEFFICIENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIFFTAG_YCBCRCOEFFICIENTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_TIFFGetFieldDefaulted
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _TIFFTAG_REFERENCEBLACKWHITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIFFTAG_REFERENCEBLACKWHITE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_TIFFGetFieldDefaulted
	ldr	x8, [sp, #8]
	ldr	s0, [x8]
	fcmp	s0, s0
	b.vs	LBB0_13
; %bb.3:
	ldr	s0, [x8, #4]
	fcmp	s0, #0.0
	b.eq	LBB0_13
	b.vs	LBB0_13
; %bb.4:
	ldr	s0, [x8, #8]
	fcmp	s0, s0
	b.vs	LBB0_13
; %bb.5:
	ldr	x8, [sp]
	ldr	s0, [x8]
	bl	_isInRefBlackWhiteRange
	cbz	w0, LBB0_12
; %bb.6:
	ldr	x8, [sp]
	ldr	s0, [x8, #4]
	bl	_isInRefBlackWhiteRange
	cbz	w0, LBB0_12
; %bb.7:
	ldr	x8, [sp]
	ldr	s0, [x8, #8]
	bl	_isInRefBlackWhiteRange
	cbz	w0, LBB0_12
; %bb.8:
	ldr	x8, [sp]
	ldr	s0, [x8, #12]
	bl	_isInRefBlackWhiteRange
	cbz	w0, LBB0_12
; %bb.9:
	ldr	x8, [sp]
	ldr	s0, [x8, #16]
	bl	_isInRefBlackWhiteRange
	cbz	w0, LBB0_12
; %bb.10:
	ldr	x8, [sp]
	ldr	s0, [x8, #20]
	bl	_isInRefBlackWhiteRange
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x0, [x19]
	ldp	x2, x1, [sp]
	bl	_TIFFYCbCrToRGBInit
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	b	LBB0_16
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, _initYCbCrConversion.module@PAGE
Lloh7:
	add	x1, x1, _initYCbCrConversion.module@PAGEOFF
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_13:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh10:
	adrp	x1, _initYCbCrConversion.module@PAGE
Lloh11:
	add	x1, x1, _initYCbCrConversion.module@PAGEOFF
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh14:
	adrp	x1, _initYCbCrConversion.module@PAGE
Lloh15:
	add	x1, x1, _initYCbCrConversion.module@PAGEOFF
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
LBB0_15:
	bl	_TIFFErrorExt
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_initYCbCrConversion.module:            ; @initYCbCrConversion.module
	.asciz	"initYCbCrConversion"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No space for YCbCr->RGB conversion state"

	.comm	_TIFFTAG_YCBCRCOEFFICIENTS,4,2  ; @TIFFTAG_YCBCRCOEFFICIENTS
	.comm	_TIFFTAG_REFERENCEBLACKWHITE,4,2 ; @TIFFTAG_REFERENCEBLACKWHITE
l_.str.1:                               ; @.str.1
	.asciz	"Invalid values for YCbCrCoefficients tag"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid values for ReferenceBlackWhite tag"

	.no_dead_strip	_initYCbCrConversion
.subsections_via_symbols
