	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc_init_SBx
_adc_init_SBx:                          ## @adc_init_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %rbx
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_1
## %bb.2:
	movslq	%esi, %rax
	leaq	l_switch.table.adc_init_SBx(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	leaq	l_switch.table.adc_init_SBx.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r12d
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
	movl	$256, %r14d                     ## imm = 0x100
LBB0_3:
	movq	%rbx, %rdi
	callq	_i2c_unlock
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$236, %esi
	callq	_hw_read_pci
	testl	$8388608, %eax                  ## imm = 0x800000
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	movl	$236, %esi
	movl	$5, %edx
	callq	_hw_write_pci
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$14, %edx
	movl	$8, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$24, %edx
	movl	$10, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$40, %edx
	movl	$134, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$42, %edx
	movl	%r12d, %ecx
	callq	_i2c_write
	testl	%r15d, %r15d
	movl	$207, %eax
	movl	$247, %r15d
	cmovel	%eax, %r15d
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$28, %edx
	movl	%r15d, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$30, %edx
	movl	%r15d, %ecx
	callq	_i2c_write
	movq	_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hw_read_20kx
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$1704064, %esi                  ## imm = 0x1A0080
	movl	$22, %edx
	movl	$38, %ecx
	callq	_i2c_write
LBB0_7:
	movq	%rbx, %rdi
	callq	_i2c_lock
	movq	_GPIO@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hw_read_20kx
	andl	$65151, %eax                    ## imm = 0xFE7F
	orl	%eax, %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_hw_write_20kx
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ID0,4,2                        ## @ID0
	.comm	_GPIO,4,2                       ## @GPIO
	.no_dead_strip	_adc_init_SBx
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.adc_init_SBx
l_switch.table.adc_init_SBx:
	.long	256                             ## 0x100
	.long	0                               ## 0x0
	.long	384                             ## 0x180
	.long	256                             ## 0x100
	.long	256                             ## 0x100

	.p2align	2                               ## @switch.table.adc_init_SBx.1
l_switch.table.adc_init_SBx.1:
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	8                               ## 0x8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc_init_SBx
_adc_init_SBx:                          ; @adc_init_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	x19, x0
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #2, #32
Lloh0:
	adrp	x9, l_switch.table.adc_init_SBx@PAGE
Lloh1:
	add	x9, x9, l_switch.table.adc_init_SBx@PAGEOFF
	ldr	w22, [x9, x8]
Lloh2:
	adrp	x9, l_switch.table.adc_init_SBx.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.adc_init_SBx.1@PAGEOFF
	ldr	w21, [x9, x8]
	b	LBB0_3
LBB0_2:
	mov	w21, #0
	mov	w22, #256
LBB0_3:
	mov	x0, x19
	bl	_i2c_unlock
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #-1
	b	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #236
	bl	_hw_read_pci
	tbz	w0, #23, LBB0_5
; %bb.6:
	mov	x0, x19
	mov	w1, #236
	mov	w2, #5
	bl	_hw_write_pci
	mov	x0, x19
	mov	w1, #128
	movk	w1, #26, lsl #16
	mov	w2, #14
	mov	w3, #8
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #128
	movk	w1, #26, lsl #16
	mov	w2, #24
	mov	w3, #10
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #128
	movk	w1, #26, lsl #16
	mov	w2, #40
	mov	w3, #134
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #128
	movk	w1, #26, lsl #16
	mov	w2, #42
	mov	x3, x21
	bl	_i2c_write
	mov	w8, #247
	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
Lloh4:
	adrp	x8, _ID0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ID0@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hw_read_20kx
	tbnz	w0, #8, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #128
	movk	w1, #26, lsl #16
	mov	w2, #22
	mov	w3, #38
	bl	_i2c_write
LBB0_8:
	mov	x0, x19
	bl	_i2c_lock
Lloh7:
	adrp	x20, _GPIO@GOTPAGE
Lloh8:
	ldr	x20, [x20, _GPIO@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hw_read_20kx
	mov	w8, #65151
	and	w8, w0, w8
	orr	w2, w8, w22
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hw_write_20kx
	mov	w0, #0
LBB0_9:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ID0,4,2                        ; @ID0
	.comm	_GPIO,4,2                       ; @GPIO
	.no_dead_strip	_adc_init_SBx
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.adc_init_SBx
l_switch.table.adc_init_SBx:
	.long	256                             ; 0x100
	.long	0                               ; 0x0
	.long	384                             ; 0x180
	.long	256                             ; 0x100
	.long	256                             ; 0x100

	.p2align	2                               ; @switch.table.adc_init_SBx.1
l_switch.table.adc_init_SBx.1:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	8                               ; 0x8

.subsections_via_symbols
