	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BuildMapUaToAa
_BuildMapUaToAa:                        ## @BuildMapUaToAa
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_assert
	movl	$65536, %edi                    ## imm = 0x10000
	callq	__TIFFmalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	xorl	%ecx, %ecx
	movl	$2155905153, %r8d               ## imm = 0x80808081
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	$127, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edx
	imulq	%r8, %rdx
	shrq	$39, %rdx
	movq	%rdx, (%rax,%rdi)
	leal	(%rsi,%rbx), %edx
	imulq	%r8, %rdx
	shrq	$39, %rdx
	movq	%rdx, 8(%rax,%rdi)
	addl	%ecx, %ebx
	addq	$16, %rdi
	cmpl	$2048, %edi                     ## imm = 0x800
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%esi
	addl	$2, %ecx
	addq	%rdi, %rax
	cmpl	$256, %esi                      ## imm = 0x100
	jne	LBB0_2
## %bb.5:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_7:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	_BuildMapUaToAa.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_TIFFErrorExt
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_BuildMapUaToAa.module:                 ## @BuildMapUaToAa.module
	.asciz	"BuildMapUaToAa"

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

	.no_dead_strip	_BuildMapUaToAa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BuildMapUaToAa
_BuildMapUaToAa:                        ; @BuildMapUaToAa
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	mov	w0, #65536
	bl	__TIFFmalloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.1:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
	mov	w11, #0
	mov	w12, #32897
	movk	w12, #32896, lsl #16
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x14, #0
	add	x13, x0, #2048
	mov	w15, #127
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x16, x0, x14
	add	w17, w11, w15
	add	w1, w9, w15
	add	w2, w8, w15
	umull	x3, w15, w12
	lsr	x3, x3, #39
	umull	x17, w17, w12
	lsr	x17, x17, #39
	umull	x1, w1, w12
	lsr	x1, x1, #39
	umull	x2, w2, w12
	lsr	x2, x2, #39
	stp	x3, x17, [x16]
	stp	x1, x2, [x16, #16]
	add	w15, w15, w10
	add	x14, x14, #32
	cmp	x14, #2048
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w11, w11, #1
	add	w10, w10, #4
	add	w9, w9, #2
	add	w8, w8, #3
	mov	x0, x13
	cmp	w11, #256
	b.ne	LBB0_2
; %bb.5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, _BuildMapUaToAa.module@PAGE
Lloh1:
	add	x1, x1, _BuildMapUaToAa.module@PAGEOFF
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_TIFFErrorExt
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_BuildMapUaToAa.module:                 ; @BuildMapUaToAa.module
	.asciz	"BuildMapUaToAa"

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

	.no_dead_strip	_BuildMapUaToAa
.subsections_via_symbols
