	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upd64031a_s_routing
_upd64031a_s_routing:                   ## @upd64031a_s_routing
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_to_state
	movl	%r15d, %ecx
	shll	$6, %ecx
	movzbl	%cl, %r8d
	movl	%r8d, (%rax)
	movl	%r15d, %ecx
	andl	$12, %ecx
	shll	$4, %ecx
	movl	%ecx, 4(%rax)
	movq	_UPD64031A_COMPOSITE_EXTERNAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%r15d, %ebx
	addl	%ebx, %ebx
	movl	%ebx, 8(%rax)
	movq	_UPD64031A_VERTICAL_EXTERNAL@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r15d
	shll	$2, %r15d
	movl	%r15d, 12(%rax)
	movq	16(%rax), %r9
	movq	_R00@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	(%r9,%rsi,4), %edi
	movq	_GR_MODE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edi, %edx
	orl	%r8d, %edx
	movq	_SYNC_CIRCUIT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%edi, %eax
	orl	%ebx, %r15d
	orl	%eax, %r15d
	movq	_R08@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_DIRECT_3DYCS_CONNECT_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
	notl	%ebx
	andl	(%r9,%rax,4), %ebx
	orl	%ecx, %ebx
	movq	%r14, %rdi
	callq	_upd64031a_write
	movq	_R05@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_upd64031a_write
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_upd64031a_write
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_upd64031a_s_frequency          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UPD64031A_COMPOSITE_EXTERNAL,4,2 ## @UPD64031A_COMPOSITE_EXTERNAL
	.comm	_UPD64031A_VERTICAL_EXTERNAL,4,2 ## @UPD64031A_VERTICAL_EXTERNAL
	.comm	_R00,8,3                        ## @R00
	.comm	_GR_MODE_MASK,4,2               ## @GR_MODE_MASK
	.comm	_SYNC_CIRCUIT_MASK,4,2          ## @SYNC_CIRCUIT_MASK
	.comm	_R08,8,3                        ## @R08
	.comm	_DIRECT_3DYCS_CONNECT_MASK,4,2  ## @DIRECT_3DYCS_CONNECT_MASK
	.comm	_R05,8,3                        ## @R05
	.no_dead_strip	_upd64031a_s_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upd64031a_s_routing
_upd64031a_s_routing:                   ; @upd64031a_s_routing
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_to_state
	ubfiz	w8, w20, #6, #2
	lsl	w9, w20, #4
	and	w9, w9, #0xc0
	stp	w8, w9, [x0]
Lloh0:
	adrp	x10, _UPD64031A_COMPOSITE_EXTERNAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _UPD64031A_COMPOSITE_EXTERNAL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w10, w10, w20
	lsl	w10, w10, #1
Lloh3:
	adrp	x11, _UPD64031A_VERTICAL_EXTERNAL@GOTPAGE
Lloh4:
	ldr	x11, [x11, _UPD64031A_VERTICAL_EXTERNAL@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	and	w11, w11, w20
	lsl	w11, w11, #2
	stp	w10, w11, [x0, #8]
	ldr	x12, [x0, #16]
Lloh6:
	adrp	x13, _R00@GOTPAGE
Lloh7:
	ldr	x13, [x13, _R00@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x13]
	ldr	w13, [x12, x1, lsl #2]
Lloh9:
	adrp	x14, _GR_MODE_MASK@GOTPAGE
Lloh10:
	ldr	x14, [x14, _GR_MODE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w14, [x14]
	bic	w14, w13, w14
	orr	w2, w14, w8
Lloh12:
	adrp	x8, _SYNC_CIRCUIT_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYNC_CIRCUIT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w8, w13, w8
	orr	w10, w11, w10
Lloh15:
	adrp	x22, _R08@GOTPAGE
Lloh16:
	ldr	x22, [x22, _R08@GOTPAGEOFF]
	ldr	x11, [x22]
	ldr	w11, [x12, x11, lsl #2]
	orr	w20, w10, w8
Lloh17:
	adrp	x8, _DIRECT_3DYCS_CONNECT_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DIRECT_3DYCS_CONNECT_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bic	w8, w11, w8
	orr	w21, w8, w9
	mov	x0, x19
	bl	_upd64031a_write
Lloh20:
	adrp	x8, _R05@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R05@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_upd64031a_write
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_upd64031a_write
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_upd64031a_s_frequency
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UPD64031A_COMPOSITE_EXTERNAL,4,2 ; @UPD64031A_COMPOSITE_EXTERNAL
	.comm	_UPD64031A_VERTICAL_EXTERNAL,4,2 ; @UPD64031A_VERTICAL_EXTERNAL
	.comm	_R00,8,3                        ; @R00
	.comm	_GR_MODE_MASK,4,2               ; @GR_MODE_MASK
	.comm	_SYNC_CIRCUIT_MASK,4,2          ; @SYNC_CIRCUIT_MASK
	.comm	_R08,8,3                        ; @R08
	.comm	_DIRECT_3DYCS_CONNECT_MASK,4,2  ; @DIRECT_3DYCS_CONNECT_MASK
	.comm	_R05,8,3                        ; @R05
	.no_dead_strip	_upd64031a_s_routing
.subsections_via_symbols
