	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm_adc_read
_npcm_adc_read:                         ## @npcm_adc_read
	.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, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_NPCM_ADCCON@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_ioread32
	movq	_NPCM_ADCCON_CH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$0, (%r12)
	movl	%r15d, %edi
	callq	_NPCM_ADCCON_CH
	orl	%eax, %ebx
	movq	_NPCM_ADCCON_ADC_CONV@GOTPCREL(%rip), %r13
	orl	(%r13), %ebx
	movq	(%r14), %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_iowrite32
	movl	(%r12), %r15d
	movl	32(%r12), %ebx
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	js	LBB0_7
## %bb.6:
	movq	_NPCM_ADCDATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_ioread32
	movl	%eax, %edi
	callq	_NPCM_ADC_DATA_MASK
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.2:
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	_NPCM7XX_IPSRST1_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_NPCM7XX_IPSRST1_ADC_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	$100, %edi
	callq	_msleep
	movq	24(%r12), %rdi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	$100, %edi
	callq	_msleep
	movq	_NPCM_ADC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%r13), %edi
	orl	(%rax), %edi
	movq	(%r14), %rsi
	addq	8(%r12), %rsi
	callq	_iowrite32
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPCM_ADCCON,8,3                ## @NPCM_ADCCON
	.comm	_NPCM_ADCCON_CH_MASK,4,2        ## @NPCM_ADCCON_CH_MASK
	.comm	_NPCM_ADCCON_ADC_CONV,4,2       ## @NPCM_ADCCON_ADC_CONV
	.comm	_NPCM7XX_IPSRST1_OFFSET,4,2     ## @NPCM7XX_IPSRST1_OFFSET
	.comm	_NPCM7XX_IPSRST1_ADC_RST,4,2    ## @NPCM7XX_IPSRST1_ADC_RST
	.comm	_NPCM_ADC_ENABLE,4,2            ## @NPCM_ADC_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RESET ADC Complete\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_NPCM_ADCDATA,8,3               ## @NPCM_ADCDATA
	.no_dead_strip	_npcm_adc_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm_adc_read
_npcm_adc_read:                         ; @npcm_adc_read
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x23, _NPCM_ADCCON@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NPCM_ADCCON@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_ioread32
Lloh2:
	adrp	x8, _NPCM_ADCCON_CH_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NPCM_ADCCON_CH_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w22, w0, w8
	str	wzr, [x19]
	mov	x0, x21
	bl	_NPCM_ADCCON_CH
Lloh5:
	adrp	x24, _NPCM_ADCCON_ADC_CONV@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NPCM_ADCCON_ADC_CONV@GOTPAGEOFF]
	orr	w8, w0, w22
	ldr	w9, [x24]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	w21, [x19, #32]
	ldr	w22, [x19]
	mov	w0, #10
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_wait_event_interruptible_timeout
	cbz	w0, LBB0_3
; %bb.1:
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _NPCM_ADCDATA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NPCM_ADCDATA@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	bl	_NPCM_ADC_DATA_MASK
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	b	LBB0_7
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x20, _NPCM7XX_IPSRST1_OFFSET@GOTPAGE
Lloh11:
	ldr	x20, [x20, _NPCM7XX_IPSRST1_OFFSET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh12:
	adrp	x8, _NPCM7XX_IPSRST1_ADC_RST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NPCM7XX_IPSRST1_ADC_RST@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_regmap_write
	mov	w0, #100
	bl	_msleep
	ldr	x0, [x19, #24]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_regmap_write
	mov	w0, #100
	bl	_msleep
Lloh15:
	adrp	x8, _NPCM_ADC_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NPCM_ADC_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
Lloh20:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NPCM_ADCCON,8,3                ; @NPCM_ADCCON
	.comm	_NPCM_ADCCON_CH_MASK,4,2        ; @NPCM_ADCCON_CH_MASK
	.comm	_NPCM_ADCCON_ADC_CONV,4,2       ; @NPCM_ADCCON_ADC_CONV
	.comm	_NPCM7XX_IPSRST1_OFFSET,4,2     ; @NPCM7XX_IPSRST1_OFFSET
	.comm	_NPCM7XX_IPSRST1_ADC_RST,4,2    ; @NPCM7XX_IPSRST1_ADC_RST
	.comm	_NPCM_ADC_ENABLE,4,2            ; @NPCM_ADC_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RESET ADC Complete\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_NPCM_ADCDATA,8,3               ; @NPCM_ADCDATA
	.no_dead_strip	_npcm_adc_read
.subsections_via_symbols
