	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcf50633_adc_irq
_pcf50633_adc_irq:                      ## @pcf50633_adc_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	%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
	movq	%rsi, %rbx
	movq	16(%rsi), %r14
	leaq	4(%rsi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movslq	(%rbx), %r13
	movq	8(%rbx), %rax
	movq	(%rax,%r13,8), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_2:
	movq	8(%rbx), %rax
	movq	$0, (%rax,%r13,8)
	leal	1(%r13), %eax
	movq	_PCF50633_MAX_ADC_FIFO_DEPTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	%r14, %rdi
	callq	_adc_result
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_trigger_next_adc_job_if_any
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	*8(%r12)
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcf50633-adc irq: ADC queue empty!\n"

	.comm	_PCF50633_MAX_ADC_FIFO_DEPTH,4,2 ## @PCF50633_MAX_ADC_FIFO_DEPTH
	.no_dead_strip	_pcf50633_adc_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcf50633_adc_irq
_pcf50633_adc_irq:                      ; @pcf50633_adc_irq
	.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
	ldr	x19, [x1, #16]
	add	x20, x1, #4
	mov	x0, x20
	bl	_mutex_lock
	ldrsw	x23, [x22]
	ldr	x8, [x22, #8]
	ldr	x21, [x8, x23, lsl #3]
	cmp	x21, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, 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	_mutex_unlock
LBB0_2:
	ldr	x8, [x22, #8]
	str	xzr, [x8, x23, lsl #3]
	add	w8, w23, #1
Lloh2:
	adrp	x9, _PCF50633_MAX_ADC_FIFO_DEPTH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCF50633_MAX_ADC_FIFO_DEPTH@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x22]
	mov	x0, x19
	bl	_adc_result
	mov	x22, x0
	mov	x0, x19
	bl	_trigger_next_adc_job_if_any
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x8, [x21, #8]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x22
	blr	x8
	mov	x0, x21
	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	_kfree
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcf50633-adc irq: ADC queue empty!\n"

	.comm	_PCF50633_MAX_ADC_FIFO_DEPTH,4,2 ; @PCF50633_MAX_ADC_FIFO_DEPTH
	.no_dead_strip	_pcf50633_adc_irq
.subsections_via_symbols
