	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc_input_select_SB055x
_adc_input_select_SB055x:               ## @adc_input_select_SB055x
	.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	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_GPIO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_hw_read_20kx
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_1
## %bb.2:
	andl	$60531, %eax                    ## imm = 0xEC73
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_6:
	orl	$4096, %eax                     ## imm = 0x1000
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_3:
	xorl	%edx, %edx
	testb	%r14b, %r14b
	setne	%dl
	shll	$2, %edx
	orl	%eax, %edx
	orl	$896, %edx                      ## imm = 0x380
	jmp	LBB0_8
LBB0_4:
	orl	$256, %eax                      ## imm = 0x100
	jmp	LBB0_7
LBB0_5:
	orl	$4352, %eax                     ## imm = 0x1100
LBB0_7:
	movl	%eax, %edx
LBB0_8:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_hw_write_20kx
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.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
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_GPIO,4,2                       ## @GPIO
	.no_dead_strip	_adc_input_select_SB055x
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc_input_select_SB055x
_adc_input_select_SB055x:               ; @adc_input_select_SB055x
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _GPIO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GPIO@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_hw_read_20kx
	sub	w9, w21, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
	mov	w8, #60531
	and	w8, w0, w8
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	orr	w2, w8, #0x1000
	b	LBB0_7
LBB0_3:
	mov	w0, #-1
	b	LBB0_8
LBB0_4:
	mov	w9, #900
	mov	w10, #896
	cmp	w20, #0
	csel	w9, w10, w9, eq
	orr	w2, w9, w8
	b	LBB0_7
LBB0_5:
	orr	w2, w8, #0x100
	b	LBB0_7
LBB0_6:
	mov	w9, #4352
	orr	w2, w8, w9
LBB0_7:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_hw_write_20kx
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.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	_GPIO,4,2                       ; @GPIO
	.no_dead_strip	_adc_input_select_SB055x
.subsections_via_symbols
