	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tiler_get_address
_tiler_get_address:                     ## @tiler_get_address
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_CONT_WIDTH_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_geom@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %ecx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %r13
	movq	8(%rax,%rcx), %rcx
	subq	%r13, %rbx
	movq	_CONT_HEIGHT_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	subq	%rcx, %r12
	movq	%rbx, %rdi
	callq	_MASK
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_MASK
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	testq	%r15, %r15
	js	LBB0_4
## %bb.1:
	testq	%r8, %r8
	js	LBB0_4
## %bb.2:
	cmpq	%r15, %r14
	jl	LBB0_4
## %bb.3:
	cmpq	%r8, %rax
	jl	LBB0_4
## %bb.5:
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	addq	%r13, %r9
	movq	_MASK_X_INVERT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	andq	%rsi, %rcx
	cmoveq	%rcx, %r14
	xorq	%r15, %r14
	movq	_MASK_Y_INVERT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	%rsi, %rcx
	cmoveq	%rcx, %rax
	xorq	%r8, %rax
	movq	_MASK_XY_FLIP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	andq	%rsi, %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	shlq	%cl, %rdi
	addq	%rax, %rdi
	movl	%ebx, %ecx
	shlq	%cl, %rax
	addq	%r14, %rax
	testq	%rdx, %rdx
	cmovneq	%rdi, %rax
	movl	%r9d, %ecx
	shlq	%cl, %rax
	movq	%rax, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TIL_ADDR                       ## TAILCALL
LBB0_4:
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r8, %r9
	callq	_DBG
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONT_WIDTH_BITS,8,3            ## @CONT_WIDTH_BITS
	.comm	_geom,8,3                       ## @geom
	.comm	_CONT_HEIGHT_BITS,8,3           ## @CONT_HEIGHT_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid coords: %u < 0 || %u > %u || %u < 0 || %u > %u"

	.comm	_MASK_X_INVERT,8,3              ## @MASK_X_INVERT
	.comm	_MASK_Y_INVERT,8,3              ## @MASK_Y_INVERT
	.comm	_MASK_XY_FLIP,8,3               ## @MASK_XY_FLIP
	.no_dead_strip	_tiler_get_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tiler_get_address
_tiler_get_address:                     ; @tiler_get_address
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CONT_WIDTH_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONT_WIDTH_BITS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _geom@GOTPAGE
Lloh4:
	ldr	x9, [x9, _geom@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, w0, uxtw #4
	ldp	x26, x27, [x9]
	sub	x23, x8, x26
Lloh6:
	adrp	x8, _CONT_HEIGHT_BITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONT_HEIGHT_BITS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sub	x24, x8, x27
	mov	x0, x23
	bl	_MASK
	mov	x25, x0
	mov	x0, x24
	bl	_MASK
	mov	x6, x0
	tbnz	x22, #63, LBB0_4
; %bb.1:
	tbnz	x19, #63, LBB0_4
; %bb.2:
	cmp	x25, x22
	ccmp	x6, x19, #8, ge
	b.lt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _MASK_X_INVERT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MASK_X_INVERT@GOTPAGEOFF]
	add	x9, x27, x26
Lloh11:
	ldr	x8, [x8]
	tst	x8, x21
	csel	x8, xzr, x25, eq
Lloh12:
	adrp	x10, _MASK_Y_INVERT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MASK_Y_INVERT@GOTPAGEOFF]
	eor	x8, x8, x22
Lloh14:
	ldr	x10, [x10]
	tst	x10, x21
	csel	x10, xzr, x6, eq
Lloh15:
	adrp	x11, _MASK_XY_FLIP@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MASK_XY_FLIP@GOTPAGEOFF]
	eor	x10, x10, x19
Lloh17:
	ldr	x11, [x11]
	lsl	x12, x8, x24
	add	x12, x12, x10
	lsl	x10, x10, x23
	add	x8, x10, x8
	tst	x11, x21
	csel	x8, x8, x12, eq
	lsl	x0, x8, x9
	mov	x1, x21
	mov	x2, x20
	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	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_TIL_ADDR
LBB0_4:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x22
	mov	x3, x25
	mov	x4, x19
	mov	x5, x19
	bl	_DBG
	mov	x0, #0
	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	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CONT_WIDTH_BITS,8,3            ; @CONT_WIDTH_BITS
	.comm	_geom,8,3                       ; @geom
	.comm	_CONT_HEIGHT_BITS,8,3           ; @CONT_HEIGHT_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid coords: %u < 0 || %u > %u || %u < 0 || %u > %u"

	.comm	_MASK_X_INVERT,8,3              ; @MASK_X_INVERT
	.comm	_MASK_Y_INVERT,8,3              ; @MASK_Y_INVERT
	.comm	_MASK_XY_FLIP,8,3               ; @MASK_XY_FLIP
	.no_dead_strip	_tiler_get_address
.subsections_via_symbols
