	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_adc_init_hw
_stmpe_adc_init_hw:                     ## @stmpe_adc_init_hw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	_STMPE_BLOCK_ADC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_stmpe_enable
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movq	%r14, %rdi
	callq	_stmpe811_adc_common_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_stmpe_disable
	jmp	LBB0_5
LBB0_4:
	movq	_STMPE_REG_TEMP_TH@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stmpe_reg_write
	movq	(%r15), %rsi
	incq	%rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stmpe_reg_write
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STMPE_BLOCK_ADC,4,2            ## @STMPE_BLOCK_ADC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not enable clock for ADC\n"

	.comm	_STMPE_REG_TEMP_TH,8,3          ## @STMPE_REG_TEMP_TH
	.no_dead_strip	_stmpe_adc_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_adc_init_hw
_stmpe_adc_init_hw:                     ; @stmpe_adc_init_hw
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x21, _STMPE_BLOCK_ADC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STMPE_BLOCK_ADC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stmpe_enable
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_stmpe811_adc_common_init
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stmpe_disable
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x20, _STMPE_REG_TEMP_TH@GOTPAGE
Lloh5:
	ldr	x20, [x20, _STMPE_REG_TEMP_TH@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_stmpe_reg_write
	ldr	x8, [x20]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #0
	bl	_stmpe_reg_write
	mov	w20, #0
LBB0_5:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STMPE_BLOCK_ADC,4,2            ; @STMPE_BLOCK_ADC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not enable clock for ADC\n"

	.comm	_STMPE_REG_TEMP_TH,8,3          ; @STMPE_REG_TEMP_TH
	.no_dead_strip	_stmpe_adc_init_hw
.subsections_via_symbols
