	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_GetTexBufferSize            ## -- Begin function GX_GetTexBufferSize
	.p2align	4, 0x90
_GX_GetTexBufferSize:                   ## @GX_GetTexBufferSize
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	-128(%rdx), %eax
	movl	$2, %r10d
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$23, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.GX_GetTexBufferSize(%rip), %rbx
	movl	(%rbx,%rax,4), %r10d
	leaq	l_switch.table.GX_GetTexBufferSize.1(%rip), %rbx
	movl	(%rbx,%rax,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_2:
	andl	$-3, %edx
	xorl	%r11d, %r11d
	cmpl	$129, %edx
	sete	%r11b
	shll	$5, %r11d
	addl	$32, %r11d
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.3:
	andl	$255, %r8d
	je	LBB0_4
## %bb.5:
	movl	$-1, %r15d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	movl	$-1, %r12d
	movl	%r10d, %ecx
	shll	%cl, %r12d
	notl	%r15d
	notl	%r12d
	xorl	%eax, %eax
	movl	$1, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	shrl	%ebx
	cmpl	$2, %edi
	cmovll	%r14d, %ebx
	shrl	%edx
	cmpl	$2, %esi
	cmovll	%r14d, %edx
	movl	%ebx, %edi
	movl	%edx, %esi
	decl	%r8d
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r13d
	movzwl	%di, %ebx
	movzwl	%si, %edx
	leal	(%rdx,%r15), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	leal	(%rbx,%r12), %r9d
	movl	%r10d, %ecx
	shrl	%cl, %r9d
	imull	%r11d, %eax
	imull	%r9d, %eax
	addl	%r13d, %eax
	cmpl	$1, %ebx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$1, %edx
	jne	LBB0_8
	jmp	LBB0_10
LBB0_9:
	movl	$-1, %eax
	movl	%r10d, %ecx
	shll	%cl, %eax
	movzwl	%di, %ecx
	movl	$-1, %edx
	notl	%eax
	addl	%ecx, %eax
	movl	%r10d, %ecx
	shrl	%cl, %eax
	movzwl	%si, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	shll	%cl, %edx
	notl	%edx
	addl	%esi, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edx
	imull	%r11d, %eax
	imull	%edx, %eax
	jmp	LBB0_10
LBB0_4:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.GX_GetTexBufferSize
l_switch.table.GX_GetTexBufferSize:
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3

	.p2align	2                               ## @switch.table.GX_GetTexBufferSize.1
l_switch.table.GX_GetTexBufferSize.1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_GetTexBufferSize            ; -- Begin function GX_GetTexBufferSize
	.p2align	2
_GX_GetTexBufferSize:                   ; @GX_GetTexBufferSize
	.cfi_startproc
; %bb.0:
	sub	w8, w2, #128
	cmp	w8, #23
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #2, #32
Lloh0:
	adrp	x9, l_switch.table.GX_GetTexBufferSize@PAGE
Lloh1:
	add	x9, x9, l_switch.table.GX_GetTexBufferSize@PAGEOFF
	ldr	w9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.GX_GetTexBufferSize.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.GX_GetTexBufferSize.1@PAGEOFF
	ldr	w10, [x10, x8]
	b	LBB0_3
LBB0_2:
	mov	w9, #2
	mov	w10, #2
LBB0_3:
	and	w8, w2, #0xfffffffd
	mov	w11, #32
	mov	w12, #64
	cmp	w8, #129
	csel	w11, w12, w11, eq
	cbz	w3, LBB0_10
; %bb.4:
	mov	w8, #0
	ands	w12, w4, #0xff
	b.eq	LBB0_9
; %bb.5:
	mov	w14, #-1
	lsl	w13, w14, w10
	mvn	w13, w13
	lsl	w14, w14, w9
	mvn	w14, w14
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	lsr	w16, w16, #1
	cmp	w0, #1
	csinc	w0, w16, wzr, gt
	lsr	w15, w15, #1
	cmp	w1, #1
	csinc	w1, w15, wzr, gt
	subs	w12, w12, #1
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	and	w16, w0, #0xffff
	and	w15, w1, #0xffff
	add	w17, w15, w13
	lsr	w17, w17, w10
	add	w2, w16, w14
	lsr	w2, w2, w9
	mul	w17, w17, w11
	madd	w8, w17, w2, w8
	cmp	w16, #1
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w15, #1
	b.ne	LBB0_6
LBB0_9:
	mov	x0, x8
	ret
LBB0_10:
	mov	w8, #-1
	lsl	w12, w8, w9
	mvn	w12, w12
	add	w12, w12, w0, uxth
	lsr	w9, w12, w9
	lsl	w8, w8, w10
	mvn	w8, w8
	add	w8, w8, w1, uxth
	lsr	w8, w8, w10
	mul	w9, w9, w11
	mul	w8, w9, w8
	mov	x0, x8
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.GX_GetTexBufferSize
l_switch.table.GX_GetTexBufferSize:
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3

	.p2align	2                               ; @switch.table.GX_GetTexBufferSize.1
l_switch.table.GX_GetTexBufferSize.1:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2

.subsections_via_symbols
