	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function berlin2_adc_tsen_irq
_berlin2_adc_tsen_irq:                  ## @berlin2_adc_tsen_irq
	.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	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movl	12(%rax), %edi
	movq	_BERLIN2_SM_TSEN_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	movq	_BERLIN2_SM_TSEN_STATUS_DATA_RDY@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	movq	_BERLIN2_SM_TSEN_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_regmap_read
	movq	_BERLIN2_SM_TSEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, (%rbx)
	movl	(%r15), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	12(%rbx), %edi
	movl	(%r14), %esi
	callq	_regmap_write
	movl	$1, 4(%rbx)
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
LBB0_2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BERLIN2_SM_TSEN_STATUS,4,2     ## @BERLIN2_SM_TSEN_STATUS
	.comm	_BERLIN2_SM_TSEN_STATUS_DATA_RDY,4,2 ## @BERLIN2_SM_TSEN_STATUS_DATA_RDY
	.comm	_BERLIN2_SM_TSEN_DATA,4,2       ## @BERLIN2_SM_TSEN_DATA
	.comm	_BERLIN2_SM_TSEN_MASK,4,2       ## @BERLIN2_SM_TSEN_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_berlin2_adc_tsen_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function berlin2_adc_tsen_irq
_berlin2_adc_tsen_irq:                  ; @berlin2_adc_tsen_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x20, _BERLIN2_SM_TSEN_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BERLIN2_SM_TSEN_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x21, _BERLIN2_SM_TSEN_STATUS_DATA_RDY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BERLIN2_SM_TSEN_STATUS_DATA_RDY@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
Lloh4:
	adrp	x8, _BERLIN2_SM_TSEN_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BERLIN2_SM_TSEN_DATA@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_regmap_read
Lloh7:
	adrp	x8, _BERLIN2_SM_TSEN_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BERLIN2_SM_TSEN_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x19, #12]
	ldr	w1, [x20]
	bl	_regmap_write
	mov	w8, #1
	str	w8, [x19, #4]
	add	x0, x19, #8
	bl	_wake_up_interruptible
LBB0_2:
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BERLIN2_SM_TSEN_STATUS,4,2     ; @BERLIN2_SM_TSEN_STATUS
	.comm	_BERLIN2_SM_TSEN_STATUS_DATA_RDY,4,2 ; @BERLIN2_SM_TSEN_STATUS_DATA_RDY
	.comm	_BERLIN2_SM_TSEN_DATA,4,2       ; @BERLIN2_SM_TSEN_DATA
	.comm	_BERLIN2_SM_TSEN_MASK,4,2       ; @BERLIN2_SM_TSEN_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_berlin2_adc_tsen_irq
.subsections_via_symbols
