	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_SetTexinfo                 ## -- Begin function AAS_SetTexinfo
	.p2align	4, 0x90
_AAS_SetTexinfo:                        ## @AAS_SetTexinfo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CONTENTS_LADDER@GOTPCREL(%rip), %rax
	movq	_CONTENTS_AREAPORTAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CONTENTS_CLUSTERPORTAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONTENTS_TELEPORTER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONTENTS_JUMPPAD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONTENTS_DONOTENTER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONTENTS_WATER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONTENTS_LAVA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONTENTS_SLIME@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONTENTS_WINDOW@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONTENTS_PLAYERCLIP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	4(%rdi), %r11d
	testl	%ecx, (%rdi)
	je	LBB0_4
## %bb.1:
	testl	%r11d, %r11d
	jle	LBB0_23
## %bb.2:
	movq	8(%rdi), %rdx
	movq	%r11, %rsi
	decq	%rsi
	movl	%r11d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rsi
	jae	LBB0_7
## %bb.3:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_4:
	testl	%r11d, %r11d
	jle	LBB0_23
## %bb.5:
	movq	8(%rdi), %r8
	movq	_SFL_TEXTURED@GOTPCREL(%rip), %rcx
	movq	_SFL_BEVEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	cmpl	$1, %r11d
	jne	LBB0_12
## %bb.6:
	xorl	%edx, %edx
LBB0_18:
	testb	$1, %r11b
	je	LBB0_23
## %bb.19:
	shlq	$4, %rdx
	andl	(%r8,%rdx), %esi
	jne	LBB0_20
## %bb.21:
	movq	_TEXINFO_NODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_22
LBB0_7:
	andl	$-4, %r11d
	leaq	56(%rdx), %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rdi)
	movq	$0, -32(%rdi)
	movq	$0, -16(%rdi)
	movq	$0, (%rdi)
	addq	$4, %rsi
	addq	$64, %rdi
	cmpq	%rsi, %r11
	jne	LBB0_8
LBB0_9:
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.10:
	shlq	$4, %rsi
	leaq	(%rdx,%rsi), %rax
	addq	$8, %rax
	shlq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_11
LBB0_23:
	popq	%rbp
	retq
LBB0_12:
	movl	%r11d, %r10d
	andl	$-2, %r10d
	leaq	24(%r8), %rcx
	xorl	%edx, %edx
	movq	_TEXINFO_NODE@GOTPCREL(%rip), %r9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdi, (%rcx)
	addq	$2, %rdx
	addq	$32, %rcx
	cmpq	%rdx, %r10
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	-24(%rcx), %eax
	movl	$0, %edi
	andl	%esi, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r9), %rdi
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdi, -16(%rcx)
	movl	-8(%rcx), %eax
	movl	$0, %edi
	andl	%esi, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r9), %rdi
	jmp	LBB0_17
LBB0_20:
	xorl	%eax, %eax
LBB0_22:
	movq	%rax, 8(%r8,%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTENTS_LADDER,4,2            ## @CONTENTS_LADDER
	.comm	_CONTENTS_AREAPORTAL,4,2        ## @CONTENTS_AREAPORTAL
	.comm	_CONTENTS_CLUSTERPORTAL,4,2     ## @CONTENTS_CLUSTERPORTAL
	.comm	_CONTENTS_TELEPORTER,4,2        ## @CONTENTS_TELEPORTER
	.comm	_CONTENTS_JUMPPAD,4,2           ## @CONTENTS_JUMPPAD
	.comm	_CONTENTS_DONOTENTER,4,2        ## @CONTENTS_DONOTENTER
	.comm	_CONTENTS_WATER,4,2             ## @CONTENTS_WATER
	.comm	_CONTENTS_LAVA,4,2              ## @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ## @CONTENTS_SLIME
	.comm	_CONTENTS_WINDOW,4,2            ## @CONTENTS_WINDOW
	.comm	_CONTENTS_PLAYERCLIP,4,2        ## @CONTENTS_PLAYERCLIP
	.comm	_SFL_TEXTURED,4,2               ## @SFL_TEXTURED
	.comm	_SFL_BEVEL,4,2                  ## @SFL_BEVEL
	.comm	_TEXINFO_NODE,8,3               ## @TEXINFO_NODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_SetTexinfo                 ; -- Begin function AAS_SetTexinfo
	.p2align	2
_AAS_SetTexinfo:                        ; @AAS_SetTexinfo
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CONTENTS_LADDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONTENTS_LADDER@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CONTENTS_AREAPORTAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CONTENTS_AREAPORTAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _CONTENTS_CLUSTERPORTAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CONTENTS_CLUSTERPORTAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _CONTENTS_TELEPORTER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CONTENTS_TELEPORTER@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _CONTENTS_JUMPPAD@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CONTENTS_JUMPPAD@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _CONTENTS_DONOTENTER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CONTENTS_DONOTENTER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _CONTENTS_WATER@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CONTENTS_WATER@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _CONTENTS_LAVA@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CONTENTS_LAVA@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh23:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _CONTENTS_SLIME@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CONTENTS_SLIME@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _CONTENTS_WINDOW@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CONTENTS_WINDOW@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _CONTENTS_PLAYERCLIP@GOTPAGE
Lloh31:
	ldr	x10, [x10, _CONTENTS_PLAYERCLIP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh32:
	ldr	w9, [x10]
	orr	w9, w8, w9
	ldp	w10, w8, [x0]
	tst	w9, w10
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.2:
	ldr	x9, [x0, #8]
	cmp	w8, #4
	b.hs	LBB0_7
; %bb.3:
	mov	x10, #0
	b	LBB0_10
LBB0_4:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.5:
	ldr	x10, [x0, #8]
Lloh33:
	adrp	x9, _SFL_TEXTURED@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SFL_TEXTURED@GOTPAGEOFF]
Lloh35:
	adrp	x11, _SFL_BEVEL@GOTPAGE
Lloh36:
	ldr	x11, [x11, _SFL_BEVEL@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	ldr	w11, [x11]
	orr	w9, w11, w9
	add	x10, x10, #8
Lloh39:
	adrp	x11, _TEXINFO_NODE@GOTPAGE
Lloh40:
	ldr	x11, [x11, _TEXINFO_NODE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-8]
	ldr	x13, [x11]
	tst	w9, w12
	csel	x12, x13, xzr, eq
	str	x12, [x10], #16
	subs	x8, x8, #1
	b.ne	LBB0_6
	b	LBB0_12
LBB0_7:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #40
	mov	x12, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	stur	xzr, [x11, #-32]
	stur	xzr, [x11, #-16]
	str	xzr, [x11]
	str	xzr, [x11, #16]
	add	x11, x11, #64
	subs	x12, x12, #4
	b.ne	LBB0_8
; %bb.9:
	cmp	x10, x8
	b.eq	LBB0_12
LBB0_10:
	add	x9, x9, x10, lsl #4
	add	x9, x9, #8
	sub	x8, x8, x10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9], #16
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTENTS_LADDER,4,2            ; @CONTENTS_LADDER
	.comm	_CONTENTS_AREAPORTAL,4,2        ; @CONTENTS_AREAPORTAL
	.comm	_CONTENTS_CLUSTERPORTAL,4,2     ; @CONTENTS_CLUSTERPORTAL
	.comm	_CONTENTS_TELEPORTER,4,2        ; @CONTENTS_TELEPORTER
	.comm	_CONTENTS_JUMPPAD,4,2           ; @CONTENTS_JUMPPAD
	.comm	_CONTENTS_DONOTENTER,4,2        ; @CONTENTS_DONOTENTER
	.comm	_CONTENTS_WATER,4,2             ; @CONTENTS_WATER
	.comm	_CONTENTS_LAVA,4,2              ; @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ; @CONTENTS_SLIME
	.comm	_CONTENTS_WINDOW,4,2            ; @CONTENTS_WINDOW
	.comm	_CONTENTS_PLAYERCLIP,4,2        ; @CONTENTS_PLAYERCLIP
	.comm	_SFL_TEXTURED,4,2               ; @SFL_TEXTURED
	.comm	_SFL_BEVEL,4,2                  ; @SFL_BEVEL
	.comm	_TEXINFO_NODE,8,3               ; @TEXINFO_NODE
.subsections_via_symbols
