	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function R_MipMap
_R_MipMap:                              ## @R_MipMap
	.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
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	_r_simpleMipMaps@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.1:
	cmpl	$1, %esi
	jne	LBB0_3
## %bb.2:
	cmpl	$1, %edx
	je	LBB0_14
LBB0_3:
	movl	%esi, %r8d
	sarl	%r8d
	movl	%edx, %eax
	sarl	%eax
	cmpl	$2, %esi
	jb	LBB0_11
## %bb.4:
	leal	(,%rsi,4), %ecx
	cmpl	$2, %edx
	jb	LBB0_11
## %bb.5:
	jl	LBB0_14
## %bb.6:
	movslq	%ecx, %r11
	leal	4(%r11), %ecx
	movslq	%ecx, %rdx
	cmpl	$2, %r8d
	movl	$1, %r9d
	cmovll	%r9d, %r8d
	cmpl	$2, %eax
	cmovgel	%eax, %r9d
	xorl	%r10d, %r10d
	movq	%rdi, %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r10d
	leaq	(%rdi,%r11,4), %rdi
	cmpl	%r9d, %r10d
	je	LBB0_14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpl	$2, %esi
	jl	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r8d, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%rdi), %ebx
	addl	(%rdi), %ebx
	addl	(%rdi,%r11,4), %ebx
	addl	(%rdi,%rdx,4), %ebx
	sarl	$2, %ebx
	movl	%ebx, (%rax)
	movl	20(%rdi), %ebx
	addl	4(%rdi), %ebx
	addl	4(%rdi,%r11,4), %ebx
	addl	4(%rdi,%rdx,4), %ebx
	sarl	$2, %ebx
	movl	%ebx, 4(%rax)
	movl	24(%rdi), %ebx
	addl	8(%rdi), %ebx
	addl	8(%rdi,%r11,4), %ebx
	addl	8(%rdi,%rdx,4), %ebx
	sarl	$2, %ebx
	movl	%ebx, 8(%rax)
	movl	28(%rdi), %ebx
	addl	12(%rdi), %ebx
	addl	12(%rdi,%r11,4), %ebx
	addl	12(%rdi,%rdx,4), %ebx
	sarl	$2, %ebx
	movl	%ebx, 12(%rax)
	addq	$16, %rax
	addq	$32, %rdi
	decl	%ecx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_15:
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbx
	popq	%rbp
	jmp	_R_MipMap2                      ## TAILCALL
LBB0_11:
	addl	%r8d, %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.12:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%rdi,%rcx,2), %edx
	addl	(%rdi,%rcx,2), %edx
	sarl	%edx
	movl	%edx, (%rdi,%rcx)
	movl	20(%rdi,%rcx,2), %edx
	addl	4(%rdi,%rcx,2), %edx
	sarl	%edx
	movl	%edx, 4(%rdi,%rcx)
	movl	24(%rdi,%rcx,2), %edx
	addl	8(%rdi,%rcx,2), %edx
	sarl	%edx
	movl	%edx, 8(%rdi,%rcx)
	movl	28(%rdi,%rcx,2), %edx
	addl	12(%rdi,%rcx,2), %edx
	sarl	%edx
	movl	%edx, 12(%rdi,%rcx)
	addq	$16, %rcx
	decl	%eax
	jne	LBB0_13
LBB0_14:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_simpleMipMaps,8,3            ## @r_simpleMipMaps
	.no_dead_strip	_R_MipMap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_MipMap
_R_MipMap:                              ; @R_MipMap
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _r_simpleMipMaps@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_simpleMipMaps@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.1:
	cmp	w1, #1
	b.ne	LBB0_3
; %bb.2:
	cmp	w2, #1
	b.eq	LBB0_15
LBB0_3:
	asr	w10, w1, #1
	asr	w11, w2, #1
	cmp	w1, #2
	b.lo	LBB0_12
; %bb.4:
	cmp	w2, #2
	b.lo	LBB0_12
; %bb.5:
	b.lt	LBB0_15
; %bb.6:
	mov	w8, #0
	lsl	w13, w1, #2
	sxtw	x9, w13
	add	w12, w13, #4
	cmp	w10, #1
	csinc	w10, w10, wzr, gt
	cmp	w11, #1
	csinc	w11, w11, wzr, gt
	sbfiz	x12, x12, #2, #32
	add	x12, x12, #8
	sbfiz	x13, x13, #2, #32
	add	x13, x13, #8
	mov	x14, x0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w8, #1
	add	x0, x0, x9, lsl #2
	cmp	w8, w11
	b.eq	LBB0_15
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w1, #2
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x15, x10
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w16, [x0]
	ldr	w17, [x0, #16]
	add	x2, x0, x13
	ldur	w3, [x2, #-8]
	add	w16, w17, w16
	add	w16, w16, w3
	add	x17, x0, x12
	ldur	w3, [x17, #-8]
	add	w16, w16, w3
	asr	w16, w16, #2
	str	w16, [x14]
	ldr	w16, [x0, #4]
	ldr	w3, [x0, #20]
	ldur	w4, [x2, #-4]
	add	w16, w3, w16
	add	w16, w16, w4
	ldur	w3, [x17, #-4]
	add	w16, w16, w3
	asr	w16, w16, #2
	str	w16, [x14, #4]
	ldr	w16, [x0, #8]
	ldr	w3, [x0, #24]
	ldr	w4, [x2]
	add	w16, w3, w16
	add	w16, w16, w4
	ldr	w3, [x17]
	add	w16, w16, w3
	asr	w16, w16, #2
	str	w16, [x14, #8]
	ldr	w16, [x0, #12]
	ldr	w3, [x0, #28]
	ldr	w2, [x2, #4]
	add	w16, w3, w16
	add	w16, w16, w2
	ldr	w17, [x17, #4]
	add	w16, w16, w17
	asr	w16, w16, #2
	str	w16, [x14, #12]
	add	x14, x14, #16
	add	x0, x0, #32
	subs	w15, w15, #1
	b.ne	LBB0_10
	b	LBB0_7
LBB0_11:
	b	_R_MipMap2
LBB0_12:
	add	w8, w11, w10
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x9, x0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0]
	ldr	w11, [x0, #16]
	add	w10, w11, w10
	asr	w10, w10, #1
	str	w10, [x9]
	ldr	w10, [x0, #4]
	ldr	w11, [x0, #20]
	add	w10, w11, w10
	asr	w10, w10, #1
	str	w10, [x9, #4]
	ldr	w10, [x0, #8]
	ldr	w11, [x0, #24]
	add	w10, w11, w10
	asr	w10, w10, #1
	str	w10, [x9, #8]
	ldr	w10, [x0, #12]
	ldr	w11, [x0, #28]
	add	w10, w11, w10
	asr	w10, w10, #1
	str	w10, [x9, #12]
	add	x0, x0, #32
	add	x9, x9, #16
	subs	w8, w8, #1
	b.ne	LBB0_14
LBB0_15:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_r_simpleMipMaps,8,3            ; @r_simpleMipMaps
	.no_dead_strip	_R_MipMap
.subsections_via_symbols
