	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_set_adc_state
_dib7000p_set_adc_state:                ## @dib7000p_set_adc_state
	.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	%esi, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_SOC7090@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	movl	$0, %r15d
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$908, %esi                      ## imm = 0x38C
	callq	_dib7000p_read_word
	movl	%eax, %r14d
	movq	%r12, %rdi
	movl	$909, %esi                      ## imm = 0x38D
	callq	_dib7000p_read_word
	movl	%eax, %r15d
LBB0_2:
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	andl	$-32769, %r14d                  ## imm = 0xFFFF7FFF
	jmp	LBB0_14
LBB0_4:
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movl	$1925, %esi                     ## imm = 0x785
	callq	_dib7000p_read_word
	orl	$20, %eax
	movq	%r12, %rdi
	movl	$1925, %esi                     ## imm = 0x785
	movl	%eax, %edx
	callq	_dib7000p_write_word
	movq	%r12, %rdi
	movl	$1925, %esi                     ## imm = 0x785
	callq	_dib7000p_read_word
	movl	%eax, %ebx
	movl	$200, %edi
	callq	_msleep
	andl	$-17, %ebx
	movq	%r12, %rdi
	movl	$1925, %esi                     ## imm = 0x785
	movl	%ebx, %edx
	callq	_dib7000p_write_word
	movq	%r12, %rdi
	movl	$72, %esi
	callq	_dib7000p_read_word
                                        ## kill: def $eax killed $eax def $rax
	andl	$-61965, %eax                   ## imm = 0xFFFF0DF3
	leal	29196(%rax), %edx
	movq	%r12, %rdi
	movl	$72, %esi
	callq	_dib7000p_write_word
	jmp	LBB0_14
LBB0_7:
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	movl	$1925, %esi                     ## imm = 0x785
	callq	_dib7000p_read_word
                                        ## kill: def $eax killed $eax def $rax
	andl	$-21, %eax
	leal	16(%rax), %edx
	movq	%r12, %rdi
	movl	$1925, %esi                     ## imm = 0x785
	callq	_dib7000p_write_word
	jmp	LBB0_14
LBB0_10:
	andl	$4095, %r14d                    ## imm = 0xFFF
	andl	$3, %r15d
	jmp	LBB0_14
LBB0_13:
	orl	$32768, %r14d                   ## imm = 0x8000
	jmp	LBB0_14
LBB0_11:
	orl	$28672, %r14d                   ## imm = 0x7000
	orl	$60, %r15d
	jmp	LBB0_14
LBB0_6:
	orl	$3, %r15d
	movq	%r12, %rdi
	movl	$909, %esi                      ## imm = 0x38D
	movl	%r15d, %edx
	callq	_dib7000p_write_word
	andl	$-3, %r15d
	jmp	LBB0_14
LBB0_9:
	orl	$3, %r15d
LBB0_14:
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_16
## %bb.15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	8(%r12), %ebx
	movl	12(%r12), %eax
	shll	$7, %eax
	movzbl	%al, %edx
	orl	%r14d, %edx
	shll	$4, %ebx
	andl	$16, %ebx
	orl	%r15d, %ebx
	movq	%r12, %rdi
	movl	$908, %esi                      ## imm = 0x38C
	callq	_dib7000p_write_word
	movq	%r12, %rdi
	movl	$909, %esi                      ## imm = 0x38D
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib7000p_write_word            ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_SOC7090,8,3                    ## @SOC7090
	.no_dead_strip	_dib7000p_set_adc_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000p_set_adc_state
_dib7000p_set_adc_state:                ; @dib7000p_set_adc_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _SOC7090@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SOC7090@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #908
	bl	_dib7000p_read_word
	mov	x20, x0
	mov	x0, x19
	mov	w1, #909
	bl	_dib7000p_read_word
	mov	x21, x0
LBB0_3:
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_15
; %bb.4:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	and	w20, w20, #0xffff7fff
	b	LBB0_15
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.7:
	mov	x0, x19
	mov	w1, #1925
	bl	_dib7000p_read_word
	mov	w8, #20
	orr	w2, w0, w8
	mov	x0, x19
	mov	w1, #1925
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #1925
	bl	_dib7000p_read_word
	mov	x22, x0
	mov	w0, #200
	bl	_msleep
	and	w2, w22, #0xffffffef
	mov	x0, x19
	mov	w1, #1925
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #72
	bl	_dib7000p_read_word
	and	w8, w0, #0xffff7fff
	mov	w9, #29196
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #72
	bl	_dib7000p_write_word
	b	LBB0_15
LBB0_8:
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.9:
	mov	x0, x19
	mov	w1, #1925
	bl	_dib7000p_read_word
	and	w8, w0, #0xfffffffb
	orr	w2, w8, #0x10
	mov	x0, x19
	mov	w1, #1925
	bl	_dib7000p_write_word
	b	LBB0_15
LBB0_10:
	and	w20, w20, #0xfff
	and	w21, w21, #0x3
	b	LBB0_15
LBB0_11:
	orr	w20, w20, #0x8000
	b	LBB0_15
LBB0_12:
	orr	w20, w20, #0x7000
	orr	w21, w21, #0x3c
	b	LBB0_15
LBB0_13:
	orr	w21, w21, #0x3
	mov	x0, x19
	mov	w1, #909
	mov	x2, x21
	bl	_dib7000p_write_word
	and	w21, w21, #0xfffffffd
	b	LBB0_15
LBB0_14:
	orr	w21, w21, #0x3
LBB0_15:
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldp	w9, w8, [x19, #8]
	ubfiz	w8, w8, #7, #1
	orr	w2, w8, w20
	ubfiz	w8, w9, #4, #1
	orr	w20, w8, w21
	mov	x0, x19
	mov	w1, #908
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #909
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dib7000p_write_word
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.comm	_SOC7090,8,3                    ; @SOC7090
	.no_dead_strip	_dib7000p_set_adc_state
.subsections_via_symbols
