	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gv800s_muxsel
_gv800s_muxsel:                         ## @gv800s_muxsel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	_master@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %rbx
	movq	(%rax,%rbx,8), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	andl	$3, %esi
	subl	8(%r14), %ebx
	andl	$3, %ebx
	movq	%rbx, %rax
	shlq	$4, %rax
	leaq	_gv800s_muxsel.map(%rip), %rcx
	addq	%rax, %rcx
	movl	(%rcx,%rsi,4), %r15d
	andl	$15, %r15d
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	cmpl	%r15d, %esi
	jne	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_gv800s_write
	movq	(%r14), %rax
	movl	%r15d, (%rax,%rbx,4)
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gv800s_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @gv800s_muxsel.map
_gv800s_muxsel.map:
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	10                              ## 0xa
	.long	6                               ## 0x6
	.long	1                               ## 0x1
	.long	5                               ## 0x5
	.long	11                              ## 0xb
	.long	7                               ## 0x7
	.long	2                               ## 0x2
	.long	8                               ## 0x8
	.long	12                              ## 0xc
	.long	14                              ## 0xe
	.long	3                               ## 0x3
	.long	9                               ## 0x9
	.long	13                              ## 0xd
	.long	15                              ## 0xf

	.comm	_master,8,3                     ## @master
	.no_dead_strip	_gv800s_muxsel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gv800s_muxsel
_gv800s_muxsel:                         ; @gv800s_muxsel
	.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
Lloh0:
	adrp	x8, _master@GOTPAGE
Lloh1:
	ldr	x8, [x8, _master@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	x8, [x0, #8]
	ldr	x19, [x9, x8, lsl #3]
	cbz	x19, LBB0_2
; %bb.1:
	and	w9, w1, #0x3
	ldr	w10, [x19, #8]
	sub	w8, w8, w10
	and	w20, w8, #0x3
Lloh3:
	adrp	x8, _gv800s_muxsel.map@PAGE
Lloh4:
	add	x8, x8, _gv800s_muxsel.map@PAGEOFF
	add	x8, x8, w20, uxtw #4
	ldr	w8, [x8, w9, uxtw #2]
	and	w21, w8, #0xf
	ldr	x8, [x19]
	ldr	w1, [x8, w20, uxtw #2]
	cmp	w1, w21
	b.ne	LBB0_3
LBB0_2:
	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
	ret
LBB0_3:
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_gv800s_write
	ldr	x8, [x19]
	str	w21, [x8, x20, lsl #2]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	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	_gv800s_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @gv800s_muxsel.map
_gv800s_muxsel.map:
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	10                              ; 0xa
	.long	6                               ; 0x6
	.long	1                               ; 0x1
	.long	5                               ; 0x5
	.long	11                              ; 0xb
	.long	7                               ; 0x7
	.long	2                               ; 0x2
	.long	8                               ; 0x8
	.long	12                              ; 0xc
	.long	14                              ; 0xe
	.long	3                               ; 0x3
	.long	9                               ; 0x9
	.long	13                              ; 0xd
	.long	15                              ; 0xf

	.comm	_master,8,3                     ; @master
	.no_dead_strip	_gv800s_muxsel
.subsections_via_symbols
