	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Vdp2NBG0PlaneAddr
_Vdp2NBG0PlaneAddr:                     ## @Vdp2NBG0PlaneAddr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$3, %esi
	ja	LBB0_1
## %bb.2:
	movq	_Vdp2Regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	andl	$7, %ecx
	shll	$6, %ecx
	movl	%esi, %edx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_3:
	movzbl	4(%rax), %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movl	4(%rax), %eax
	jmp	LBB0_7
LBB0_5:
	movzbl	8(%rax), %eax
	jmp	LBB0_8
LBB0_6:
	movl	8(%rax), %eax
LBB0_7:
	sarl	$8, %eax
LBB0_8:
	orl	%ecx, %eax
LBB0_9:
	movl	(%rdi), %r8d
	movl	4(%rdi), %edx
	leal	(%r8,%rdx), %ecx
	addl	$-2, %ecx
	cmpl	$1, 8(%rdi)
	movl	12(%rdi), %esi
	jne	LBB0_13
## %bb.10:
	cmpl	$1, %esi
	jne	LBB0_12
## %bb.11:
	andl	$63, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	movl	$13, %ecx
	jmp	LBB0_16
LBB0_13:
	cmpl	$1, %esi
	jne	LBB0_15
## %bb.14:
	andl	$31, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	movl	$14, %ecx
	jmp	LBB0_16
LBB0_12:
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movl	$11, %ecx
	jmp	LBB0_16
LBB0_15:
	andl	$127, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	movl	$12, %ecx
LBB0_16:
	imull	%r8d, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	imull	%eax, %edx
	movl	%edx, 16(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.no_dead_strip	_Vdp2NBG0PlaneAddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Vdp2NBG0PlaneAddr
_Vdp2NBG0PlaneAddr:                     ; @Vdp2NBG0PlaneAddr
	.cfi_startproc
; %bb.0:
	cmp	w1, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	w8, [x9]
	ubfiz	w8, w8, #6, #3
	mov	w10, w1
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	ldrb	w9, [x9, #4]
	orr	w8, w9, w8
	b	LBB0_8
LBB0_3:
	mov	w8, #0
	b	LBB0_8
LBB0_4:
	ldr	w9, [x9, #4]
	b	LBB0_7
LBB0_5:
	ldrb	w9, [x9, #8]
	orr	w8, w9, w8
	b	LBB0_8
LBB0_6:
	ldr	w9, [x9, #8]
LBB0_7:
	orr	w8, w8, w9, asr #8
LBB0_8:
	ldp	w9, w10, [x0]
	add	w11, w9, w10
	sub	w11, w11, #2
	ldp	w12, w13, [x0, #8]
	and	w14, w8, #0x7f
	lsr	w14, w14, w11
	mov	w15, #12
	and	w16, w8, #0x1f
	lsr	w16, w16, w11
	mov	w17, #14
	cmp	w13, #1
	csel	w15, w15, w17, ne
	csel	w14, w14, w16, ne
	asr	w16, w8, w11
	mov	w17, #11
	and	w8, w8, #0x3f
	lsr	w8, w8, w11
	mov	w11, #13
	cmp	w13, #1
	csel	w11, w17, w11, ne
	csel	w8, w16, w8, ne
	cmp	w12, #1
	csel	w11, w15, w11, ne
	csel	w8, w14, w8, ne
	mul	w9, w10, w9
	lsl	w9, w9, w11
	mul	w8, w9, w8
	str	w8, [x0, #16]
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.no_dead_strip	_Vdp2NBG0PlaneAddr
.subsections_via_symbols
