	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc_input_select_SBx
_adc_input_select_SBx:                  ## @adc_input_select_SBx
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_i2c_unlock
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$236, %esi
	callq	_hw_read_pci
	testl	$8388608, %eax                  ## imm = 0x800000
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$236, %esi
	movl	$5, %edx
	callq	_hw_write_pci
	movq	_GPIO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_hw_read_20kx
	cmpl	$128, %r15d
	je	LBB0_7
## %bb.3:
	cmpl	$130, %r15d
	je	LBB0_6
## %bb.4:
	movl	$-1, %r12d
	cmpl	$129, %r15d
	jne	LBB0_9
## %bb.5:
	orl	$384, %eax                      ## imm = 0x180
	movl	$1, %r15d
	jmp	LBB0_8
LBB0_7:
	andl	$-257, %eax                     ## imm = 0xFEFF
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_6:
	andl	$-385, %eax                     ## imm = 0xFE7F
	orl	$256, %eax                      ## imm = 0x100
	movl	$2, %r15d
LBB0_8:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_hw_write_20kx
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$42, %edx
	movl	%r15d, %ecx
	callq	_i2c_write
	testb	%r14b, %r14b
	movl	$207, %eax
	movl	$231, %r14d
	cmovel	%eax, %r14d
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$28, %edx
	movl	%r14d, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$30, %edx
	movl	%r14d, %ecx
	callq	_i2c_write
	xorl	%r12d, %r12d
LBB0_9:
	movq	%rbx, %rdi
	callq	_i2c_lock
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO,4,2                       ## @GPIO
	.no_dead_strip	_adc_input_select_SBx
.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_SBx
_adc_input_select_SBx:                  ; @adc_input_select_SBx
	.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
	bl	_i2c_unlock
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #-1
	b	LBB0_12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #236
	bl	_hw_read_pci
	tbz	w0, #23, LBB0_2
; %bb.3:
	mov	x0, x19
	mov	w1, #236
	mov	w2, #5
	bl	_hw_write_pci
Lloh0:
	adrp	x22, _GPIO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GPIO@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_hw_read_20kx
	cmp	w21, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w21, #130
	b.eq	LBB0_8
; %bb.5:
	cmp	w21, #129
	b.ne	LBB0_10
; %bb.6:
	orr	w2, w0, #0x180
	mov	w21, #1
	b	LBB0_9
LBB0_7:
	mov	w21, #0
	and	w2, w0, #0xfffffeff
	b	LBB0_9
LBB0_8:
	and	w8, w0, #0xfffffe7f
	orr	w2, w8, #0x100
	mov	w21, #2
LBB0_9:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_hw_write_20kx
	mov	x0, x19
	mov	w1, #128
	movk	w1, #26, lsl #16
	mov	w2, #42
	mov	x3, x21
	bl	_i2c_write
	mov	w8, #231
	mov	w9, #207
	cmp	w20, #0
	csel	w20, w9, w8, eq
	mov	x0, x19
	mov	w1, #128
	movk	w1, #26, lsl #16
	mov	w2, #28
	mov	x3, x20
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #128
	movk	w1, #26, lsl #16
	mov	w2, #30
	mov	x3, x20
	bl	_i2c_write
	mov	w20, #0
	b	LBB0_11
LBB0_10:
	mov	w20, #-1
LBB0_11:
	mov	x0, x19
	bl	_i2c_lock
LBB0_12:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO,4,2                       ; @GPIO
	.no_dead_strip	_adc_input_select_SBx
.subsections_via_symbols
