	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kodicom4400r_muxsel
_kodicom4400r_muxsel:                   ## @kodicom4400r_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
	movq	_master@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rdi), %rax
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	%esi, %r14d
	subl	8(%rbx), %eax
	incl	%eax
	andl	$3, %eax
	leaq	_kodicom4400r_muxsel.map(%rip), %rcx
	movzbl	(%rax,%rcx), %r15d
	andl	$15, %r14d
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %esi
	cmpl	%r14d, %esi
	jne	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_kodicom4400r_write
	movq	(%rbx), %rax
	movl	%r14d, (%rax,%r15,4)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kodicom4400r_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_kodicom4400r_muxsel.map:               ## @kodicom4400r_muxsel.map
	.ascii	"\003\000\002\001"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kodicom4400r_muxsel
_kodicom4400r_muxsel:                   ; @kodicom4400r_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:
	ldr	w9, [x19, #8]
	sub	w8, w8, w9
	add	w8, w8, #1
	and	x8, x8, #0x3
Lloh3:
	adrp	x9, _kodicom4400r_muxsel.map@PAGE
Lloh4:
	add	x9, x9, _kodicom4400r_muxsel.map@PAGEOFF
	ldrb	w20, [x9, x8]
	and	w21, w1, #0xf
	ldr	x8, [x19]
	ldr	w1, [x8, x20, lsl #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	_kodicom4400r_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	_kodicom4400r_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_kodicom4400r_muxsel.map:               ; @kodicom4400r_muxsel.map
	.ascii	"\003\000\002\001"

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