	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_adc_irq
_pcap_adc_irq:                          ## @pcap_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%rsi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_3
LBB0_2:
	movq	_PCAP_REG_ADC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-60(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_ezx_pcap_read
	movq	_PCAP_ADC_ADA1_MASK@GOTPCREL(%rip), %rax
	movq	_PCAP_ADC_ADA2_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	notl	%esi
	andl	-60(%rbp), %esi
	movl	%esi, -60(%rbp)
	movq	(%r14), %rax
	movq	_PCAP_ADC_ADA1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%rax), %edi
	shll	%cl, %edi
	movq	_PCAP_ADC_ADA2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	4(%rax), %edx
	shll	%cl, %edx
	orl	%esi, %edi
	orl	%edi, %edx
	movl	%edx, -60(%rbp)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ezx_pcap_write
	movq	_PCAP_REG_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_ezx_pcap_read
	movl	-60(%rbp), %eax
	movq	_PCAP_ADR_ADD1_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_PCAP_ADR_ADD1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_PCAP_ADR_ADD2_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PCAP_ADR_ADD2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%edx, -56(%rbp)
	movl	%eax, -52(%rbp)
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	$0, (%rcx,%rax,8)
	incq	%rax
	movq	_PCAP_ADC_MAXQ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	%rcx, (%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	8(%r14), %edi
	leaq	-56(%rbp), %rsi
	callq	*16(%r14)
	movq	%r14, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_pcap_adc_trigger
LBB0_3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adc irq without pending request\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_PCAP_REG_ADC,4,2               ## @PCAP_REG_ADC
	.comm	_PCAP_ADC_ADA1_MASK,4,2         ## @PCAP_ADC_ADA1_MASK
	.comm	_PCAP_ADC_ADA2_MASK,4,2         ## @PCAP_ADC_ADA2_MASK
	.comm	_PCAP_ADC_ADA1_SHIFT,4,2        ## @PCAP_ADC_ADA1_SHIFT
	.comm	_PCAP_ADC_ADA2_SHIFT,4,2        ## @PCAP_ADC_ADA2_SHIFT
	.comm	_PCAP_REG_ADR,4,2               ## @PCAP_REG_ADR
	.comm	_PCAP_ADR_ADD1_MASK,4,2         ## @PCAP_ADR_ADD1_MASK
	.comm	_PCAP_ADR_ADD1_SHIFT,4,2        ## @PCAP_ADR_ADD1_SHIFT
	.comm	_PCAP_ADR_ADD2_MASK,4,2         ## @PCAP_ADR_ADD2_MASK
	.comm	_PCAP_ADR_ADD2_SHIFT,4,2        ## @PCAP_ADR_ADD2_SHIFT
	.comm	_PCAP_ADC_MAXQ,4,2              ## @PCAP_ADC_MAXQ
	.no_dead_strip	_pcap_adc_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_adc_irq
_pcap_adc_irq:                          ; @pcap_adc_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x21, x1, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	ldr	x20, [x8, x9, lsl #3]
	cmp	x20, #0
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_spin_unlock
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x22, _PCAP_REG_ADC@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PCAP_REG_ADC@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ezx_pcap_read
Lloh7:
	adrp	x8, _PCAP_ADC_ADA1_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCAP_ADC_ADA1_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PCAP_ADC_ADA2_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PCAP_ADC_ADA2_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
	ldr	x9, [x20]
Lloh13:
	adrp	x10, _PCAP_ADC_ADA1_SHIFT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PCAP_ADC_ADA1_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	ldp	w11, w9, [x9]
	lsl	w10, w11, w10
Lloh16:
	adrp	x11, _PCAP_ADC_ADA2_SHIFT@GOTPAGE
Lloh17:
	ldr	x11, [x11, _PCAP_ADC_ADA2_SHIFT@GOTPAGEOFF]
	orr	w8, w10, w8
Lloh18:
	ldr	w10, [x11]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ezx_pcap_write
Lloh19:
	adrp	x8, _PCAP_REG_ADR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCAP_REG_ADR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ezx_pcap_read
	ldr	w8, [sp, #12]
Lloh22:
	adrp	x9, _PCAP_ADR_ADD1_MASK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PCAP_ADR_ADD1_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _PCAP_ADR_ADD1_SHIFT@GOTPAGE
Lloh26:
	ldr	x10, [x10, _PCAP_ADR_ADD1_SHIFT@GOTPAGEOFF]
	and	w9, w9, w8
Lloh27:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh28:
	adrp	x10, _PCAP_ADR_ADD2_MASK@GOTPAGE
Lloh29:
	ldr	x10, [x10, _PCAP_ADR_ADD2_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	and	w8, w10, w8
Lloh31:
	adrp	x10, _PCAP_ADR_ADD2_SHIFT@GOTPAGE
Lloh32:
	ldr	x10, [x10, _PCAP_ADR_ADD2_SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	asr	w8, w8, w10
	stp	w9, w8, [sp, #16]
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	add	x8, x9, #1
Lloh34:
	adrp	x9, _PCAP_ADC_MAXQ@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PCAP_ADC_MAXQ@GOTPAGEOFF]
Lloh36:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x8, x8, x9
	str	x8, [x19]
	mov	x0, x21
	bl	_spin_unlock
	ldr	x8, [x20, #16]
	ldr	w0, [x20, #8]
	add	x1, sp, #16
	blr	x8
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_pcap_adc_trigger
LBB0_3:
Lloh37:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adc irq without pending request\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_PCAP_REG_ADC,4,2               ; @PCAP_REG_ADC
	.comm	_PCAP_ADC_ADA1_MASK,4,2         ; @PCAP_ADC_ADA1_MASK
	.comm	_PCAP_ADC_ADA2_MASK,4,2         ; @PCAP_ADC_ADA2_MASK
	.comm	_PCAP_ADC_ADA1_SHIFT,4,2        ; @PCAP_ADC_ADA1_SHIFT
	.comm	_PCAP_ADC_ADA2_SHIFT,4,2        ; @PCAP_ADC_ADA2_SHIFT
	.comm	_PCAP_REG_ADR,4,2               ; @PCAP_REG_ADR
	.comm	_PCAP_ADR_ADD1_MASK,4,2         ; @PCAP_ADR_ADD1_MASK
	.comm	_PCAP_ADR_ADD1_SHIFT,4,2        ; @PCAP_ADR_ADD1_SHIFT
	.comm	_PCAP_ADR_ADD2_MASK,4,2         ; @PCAP_ADR_ADD2_MASK
	.comm	_PCAP_ADR_ADD2_SHIFT,4,2        ; @PCAP_ADR_ADD2_SHIFT
	.comm	_PCAP_ADC_MAXQ,4,2              ; @PCAP_ADC_MAXQ
	.no_dead_strip	_pcap_adc_irq
.subsections_via_symbols
