	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ResampleTexture
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	262140                          ## 0x3fffc
	.long	262140                          ## 0x3fffc
	.long	262140                          ## 0x3fffc
	.long	262140                          ## 0x3fffc
LCPI0_2:
	.quad	0x3fd0000000000000              ## double 0.25
	.quad	0x3fe8000000000000              ## double 0.75
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_3:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ResampleTexture:                       ## @ResampleTexture
	.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
	pushq	%rax
	movl	$16408, %eax                    ## imm = 0x4018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%rcx, %r13
	movl	%edx, %r9d
	movl	%esi, %r10d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%r8d, %r12d
	cmpl	$2049, %r8d                     ## imm = 0x801
	jl	LBB0_4
## %bb.1:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_ERR_DROP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r10d, -16440(%rbp)             ## 4-byte Spill
	movl	%r8d, %ebx
	movl	%r9d, -16436(%rbp)              ## 4-byte Spill
	callq	*(%rax)
	movl	-16436(%rbp), %r9d              ## 4-byte Reload
	movl	%ebx, %r8d
	movl	-16440(%rbp), %r10d             ## 4-byte Reload
	jmp	LBB0_2
LBB0_4:
	testl	%r8d, %r8d
	jle	LBB0_5
LBB0_2:
	movl	%r10d, %eax
	shll	$16, %eax
	cltd
	idivl	%r8d
	movl	%eax, %ebx
	shrl	$2, %ebx
	movd	%eax, %xmm0
	cmpl	$8, %r8d
	jae	LBB0_14
## %bb.3:
	xorl	%edx, %edx
	movl	%ebx, %ecx
	jmp	LBB0_22
LBB0_14:
	movl	%r12d, %edx
	andl	$-8, %edx
	movd	%ebx, %xmm1
	pshufd	$0, %xmm1, %xmm3                ## xmm3 = xmm1[0,0,0,0]
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [0,1,2,3]
	pmulld	%xmm1, %xmm2
	paddd	%xmm3, %xmm2
	pslld	$2, %xmm1
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.16:
	movq	%rcx, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [262140,262140,262140,262140]
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm2, %xmm4
	paddd	%xmm1, %xmm4
	psrld	$14, %xmm2
	movdqa	%xmm4, %xmm5
	psrld	$14, %xmm5
	pand	%xmm3, %xmm2
	pand	%xmm3, %xmm5
	movdqa	%xmm2, -8240(%rbp,%rsi,4)
	movdqa	%xmm5, -8224(%rbp,%rsi,4)
	paddd	%xmm1, %xmm4
	movdqa	%xmm4, %xmm2
	paddd	%xmm1, %xmm2
	psrld	$14, %xmm4
	movdqa	%xmm2, %xmm5
	psrld	$14, %xmm5
	pand	%xmm3, %xmm4
	pand	%xmm3, %xmm5
	movdqa	%xmm4, -8208(%rbp,%rsi,4)
	movdqa	%xmm5, -8192(%rbp,%rsi,4)
	addq	$16, %rsi
	paddd	%xmm1, %xmm2
	addq	$-2, %rdi
	jne	LBB0_17
## %bb.18:
	testb	$1, %cl
	je	LBB0_20
LBB0_19:
	paddd	%xmm2, %xmm1
	psrld	$14, %xmm2
	psrld	$14, %xmm1
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [262140,262140,262140,262140]
	pand	%xmm3, %xmm2
	pand	%xmm3, %xmm1
	movdqa	%xmm2, -8240(%rbp,%rsi,4)
	movdqa	%xmm1, -8224(%rbp,%rsi,4)
LBB0_20:
	cmpq	%r12, %rdx
	je	LBB0_23
## %bb.21:
	movl	%eax, %ecx
	imull	%edx, %ecx
	addl	%ebx, %ecx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %esi
	shrl	$14, %esi
	andl	$-4, %esi
	movl	%esi, -8240(%rbp,%rdx,4)
	addl	%eax, %ecx
	incq	%rdx
	cmpq	%rdx, %r12
	jne	LBB0_22
LBB0_23:
	leal	(%rbx,%rbx,2), %ecx
	cmpl	$8, %r8d
	jae	LBB0_25
## %bb.24:
	xorl	%edx, %edx
	jmp	LBB0_33
LBB0_25:
	movl	%r12d, %edx
	andl	$-8, %edx
	movd	%ecx, %xmm1
	pshufd	$0, %xmm1, %xmm2                ## xmm2 = xmm1[0,0,0,0]
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	pmulld	%xmm0, %xmm1
	paddd	%xmm2, %xmm1
	pslld	$2, %xmm0
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.27:
	movq	%rbx, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [262140,262140,262140,262140]
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm3
	paddd	%xmm0, %xmm3
	psrld	$14, %xmm1
	movdqa	%xmm3, %xmm4
	psrld	$14, %xmm4
	pand	%xmm2, %xmm1
	pand	%xmm2, %xmm4
	movdqa	%xmm1, -16432(%rbp,%rsi,4)
	movdqa	%xmm4, -16416(%rbp,%rsi,4)
	paddd	%xmm0, %xmm3
	movdqa	%xmm3, %xmm1
	paddd	%xmm0, %xmm1
	psrld	$14, %xmm3
	movdqa	%xmm1, %xmm4
	psrld	$14, %xmm4
	pand	%xmm2, %xmm3
	pand	%xmm2, %xmm4
	movdqa	%xmm3, -16400(%rbp,%rsi,4)
	movdqa	%xmm4, -16384(%rbp,%rsi,4)
	addq	$16, %rsi
	paddd	%xmm0, %xmm1
	addq	$-2, %rdi
	jne	LBB0_28
## %bb.29:
	testb	$1, %bl
	je	LBB0_31
LBB0_30:
	paddd	%xmm1, %xmm0
	psrld	$14, %xmm1
	psrld	$14, %xmm0
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [262140,262140,262140,262140]
	pand	%xmm2, %xmm1
	pand	%xmm2, %xmm0
	movdqa	%xmm1, -16432(%rbp,%rsi,4)
	movdqa	%xmm0, -16416(%rbp,%rsi,4)
LBB0_31:
	movb	$1, %r11b
	cmpq	%r12, %rdx
	je	LBB0_6
## %bb.32:
	movl	%eax, %esi
	imull	%edx, %esi
	addl	%esi, %ecx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %esi
	shrl	$14, %esi
	andl	$-4, %esi
	movl	%esi, -16432(%rbp,%rdx,4)
	addl	%eax, %ecx
	incq	%rdx
	cmpq	%rdx, %r12
	jne	LBB0_33
## %bb.34:
	movb	$1, %r11b
LBB0_6:
	testl	%r14d, %r14d
	jle	LBB0_12
LBB0_7:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r9d, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r14d, %xmm1
	movslq	%r8d, %r9
	movddup	%xmm0, %xmm0                    ## xmm0 = xmm0[0,0]
	movddup	%xmm1, %xmm1                    ## xmm1 = xmm1[0,0]
	movd	%r10d, %xmm2
	pshufd	$80, %xmm2, %xmm2               ## xmm2 = xmm2[0,0,1,1]
	shlq	$2, %r9
	xorl	%r10d, %r10d
	pxor	%xmm3, %xmm3
	movapd	LCPI0_2(%rip), %xmm4            ## xmm4 = [2.5E-1,7.5E-1]
	movsd	LCPI0_3(%rip), %xmm5            ## xmm5 = mem[0],zero
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	addsd	%xmm5, %xmm3
	incl	%r10d
	addq	%r9, %r13
	cmpl	%r14d, %r10d
	je	LBB0_12
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movddup	%xmm3, %xmm6                    ## xmm6 = xmm3[0,0]
	addpd	%xmm4, %xmm6
	testb	%r11b, %r11b
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	mulpd	%xmm0, %xmm6
	divpd	%xmm1, %xmm6
	cvttpd2dq	%xmm6, %xmm6
	pmulld	%xmm2, %xmm6
	movd	%xmm6, %eax
	cltq
	pextrd	$1, %xmm6, %ecx
	leaq	(%r15,%rax,4), %rdx
	movslq	%ecx, %rax
	leaq	(%r15,%rax,4), %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-8240(%rbp,%rsi,4), %eax
	movl	-16432(%rbp,%rsi,4), %ecx
	movl	(%rdx,%rcx,4), %ebx
	addl	(%rdx,%rax,4), %ebx
	addl	(%rdi,%rax,4), %ebx
	addl	(%rdi,%rcx,4), %ebx
	sarl	$2, %ebx
	movl	%ebx, (%r13,%rsi,4)
	movl	4(%rdx,%rcx,4), %ebx
	addl	4(%rdx,%rax,4), %ebx
	addl	4(%rdi,%rax,4), %ebx
	addl	4(%rdi,%rcx,4), %ebx
	sarl	$2, %ebx
	movl	%ebx, 4(%r13,%rsi,4)
	movl	8(%rdx,%rcx,4), %ebx
	addl	8(%rdx,%rax,4), %ebx
	addl	8(%rdi,%rax,4), %ebx
	addl	8(%rdi,%rcx,4), %ebx
	sarl	$2, %ebx
	movl	%ebx, 8(%r13,%rsi,4)
	movl	12(%rdx,%rcx,4), %ebx
	addl	12(%rdx,%rax,4), %ebx
	addl	12(%rdi,%rax,4), %ebx
	addl	12(%rdi,%rcx,4), %ebx
	sarl	$2, %ebx
	movl	%ebx, 12(%r13,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %r12
	jne	LBB0_10
	jmp	LBB0_11
LBB0_5:
	xorl	%r11d, %r11d
	testl	%r14d, %r14d
	jg	LBB0_7
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.35:
	addq	$16408, %rsp                    ## imm = 0x4018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%esi, %esi
	testb	$1, %cl
	jne	LBB0_19
	jmp	LBB0_20
LBB0_26:
	xorl	%esi, %esi
	testb	$1, %bl
	jne	LBB0_30
	jmp	LBB0_31
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ri,8,3                         ## @ri
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ResampleTexture: max width"

	.no_dead_strip	_ResampleTexture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ResampleTexture
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ResampleTexture:                       ; @ResampleTexture
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	mov	w9, #16400
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #16
	mov	x19, x5
	mov	x23, x4
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cmp	w4, #2049
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ri@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ERR_DROP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ERR_DROP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
	b	LBB0_3
LBB0_2:
	cmp	w23, #1
	b.lt	LBB0_23
LBB0_3:
	lsl	w8, w21, #16
	sdiv	w8, w8, w23
	lsr	w12, w8, #2
	mov	w9, w23
	dup.4s	v0, w8
	adrp	x11, lCPI0_0@PAGE
	lsl	w10, w8, #2
	cmp	w23, #16
	b.hs	LBB0_5
; %bb.4:
	mov	x14, #0
	mov	x13, x12
	b	LBB0_8
LBB0_5:
	and	x14, x9, #0xfffffff0
	madd	w13, w8, w14, w12
	dup.4s	v3, w12
	ldr	q1, [x11, lCPI0_0@PAGEOFF]
	mla.4s	v3, v0, v1
	dup.4s	v1, w10
	add	x15, sp, #2, lsl #12            ; =8192
	add	x15, x15, #8
	add	x15, x15, #32
	mov	w16, #262140
	dup.4s	v2, w16
	mov	x16, x14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v4, v3, v1
	add.4s	v5, v4, v1
	add.4s	v6, v5, v1
	ushr.4s	v3, v3, #14
	ushr.4s	v4, v4, #14
	ushr.4s	v5, v5, #14
	ushr.4s	v7, v6, #14
	and.16b	v3, v3, v2
	and.16b	v4, v4, v2
	and.16b	v5, v5, v2
	and.16b	v7, v7, v2
	stp	q3, q4, [x15, #-32]
	stp	q5, q7, [x15], #64
	add.4s	v3, v6, v1
	subs	x16, x16, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x14, x9
	b.eq	LBB0_10
LBB0_8:
	add	x15, sp, #2, lsl #12            ; =8192
	add	x15, x15, #8
	add	x15, x15, x14, lsl #2
	sub	x14, x9, x14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w16, w13, #14
	and	w16, w16, #0x3fffc
	str	w16, [x15], #4
	add	w13, w13, w8
	subs	x14, x14, #1
	b.ne	LBB0_9
LBB0_10:
	add	w14, w12, w12, lsl #1
	cmp	w23, #16
	b.hs	LBB0_12
; %bb.11:
	mov	x13, #0
	mov	x12, x14
	b	LBB0_15
LBB0_12:
	and	x13, x9, #0xfffffff0
	madd	w12, w8, w13, w14
	dup.4s	v2, w14
	ldr	q1, [x11, lCPI0_0@PAGEOFF]
	mla.4s	v2, v0, v1
	dup.4s	v0, w10
	add	x10, sp, #8
	add	x10, x10, #32
	mov	w11, #262140
	dup.4s	v1, w11
	mov	x11, x13
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v3, v2, v0
	add.4s	v4, v3, v0
	add.4s	v5, v4, v0
	ushr.4s	v2, v2, #14
	ushr.4s	v3, v3, #14
	ushr.4s	v4, v4, #14
	ushr.4s	v6, v5, #14
	and.16b	v2, v2, v1
	and.16b	v3, v3, v1
	and.16b	v4, v4, v1
	and.16b	v6, v6, v1
	stp	q2, q3, [x10, #-32]
	stp	q4, q6, [x10], #64
	add.4s	v2, v5, v0
	subs	x11, x11, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x13, x9
	b.eq	LBB0_17
LBB0_15:
	add	x10, sp, #8
	add	x10, x10, x13, lsl #2
	sub	x9, x9, x13
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	lsr	w11, w12, #14
	and	w11, w11, #0x3fffc
	str	w11, [x10], #4
	add	w12, w12, w8
	subs	x9, x9, #1
	b.ne	LBB0_16
LBB0_17:
	mov	w8, #1
	cmp	w19, #1
	b.lt	LBB0_24
LBB0_18:
	mov	w9, #0
	scvtf	d0, w24
	scvtf	d1, w19
	sbfiz	x10, x23, #2, #32
	movi	d2, #0000000000000000
	mov	w11, w23
	fmov	d3, #0.25000000
	fmov	d4, #0.75000000
	add	x12, sp, #2, lsl #12            ; =8192
	add	x12, x12, #8
	add	x13, sp, #8
	fmov	d5, #1.00000000
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	fadd	d2, d2, d5
	add	w9, w9, #1
	add	x20, x20, x10
	cmp	w9, w19
	b.eq	LBB0_24
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	cbz	w8, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x14, #0
	fadd	d6, d2, d3
	fmul	d6, d6, d0
	fdiv	d6, d6, d1
	fcvtzs	w15, d6
	mul	w15, w15, w21
	add	x15, x22, w15, sxtw #2
	fadd	d6, d2, d4
	fmul	d6, d6, d0
	fdiv	d6, d6, d1
	fcvtzs	w16, d6
	mul	w16, w16, w21
	add	x16, x22, w16, sxtw #2
	mov	x17, x11
LBB0_22:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x12, x14]
	lsl	x0, x0, #2
	ldr	w1, [x13, x14]
	lsl	x1, x1, #2
	add	x2, x15, x0
	add	x3, x15, x1
	add	x0, x16, x0
	add	x1, x16, x1
	ldr	w4, [x2]
	ldr	w5, [x3]
	ldr	w6, [x0]
	add	w4, w5, w4
	add	w4, w4, w6
	ldr	w5, [x1]
	add	w4, w4, w5
	add	x5, x20, x14
	asr	w4, w4, #2
	str	w4, [x5]
	ldr	w4, [x2, #4]
	ldr	w6, [x3, #4]
	ldr	w7, [x0, #4]
	add	w4, w6, w4
	add	w4, w4, w7
	ldr	w6, [x1, #4]
	add	w4, w4, w6
	asr	w4, w4, #2
	str	w4, [x5, #4]
	ldr	w4, [x2, #8]
	ldr	w6, [x3, #8]
	ldr	w7, [x0, #8]
	add	w4, w6, w4
	add	w4, w4, w7
	ldr	w6, [x1, #8]
	add	w4, w4, w6
	asr	w4, w4, #2
	str	w4, [x5, #8]
	ldr	w2, [x2, #12]
	ldr	w3, [x3, #12]
	ldr	w0, [x0, #12]
	add	w2, w3, w2
	add	w0, w2, w0
	ldr	w1, [x1, #12]
	add	w0, w0, w1
	asr	w0, w0, #2
	str	w0, [x5, #12]
	add	x14, x14, #4
	subs	x17, x17, #1
	b.ne	LBB0_22
	b	LBB0_19
LBB0_23:
	mov	w8, #0
	cmp	w19, #1
	b.ge	LBB0_18
LBB0_24:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #16
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ri,8,3                         ; @ri
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ResampleTexture: max width"

	.no_dead_strip	_ResampleTexture
.subsections_via_symbols
