	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_adc_trigger
_pcap_adc_trigger:                      ## @pcap_adc_trigger
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %r12
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_4
## %bb.1:
	movq	_PCAP_REG_ADC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ezx_pcap_read
	movq	_PCAP_ADC_TS_M_MASK@GOTPCREL(%rip), %rax
	movq	_PCAP_ADC_TS_REF_LOWPWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movq	16(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	orl	(%rax), %edx
	movq	_PCAP_ADC_ADEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, -36(%rbp)
	movq	8(%rax), %rax
	movq	_PCAP_ADC_BANK_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_PCAP_ADC_AD_SEL1@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
LBB0_3:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ezx_pcap_write
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_PCAP_REG_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCAP_ADR_ASC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ezx_pcap_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_pcap_disable_adc
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_REG_ADC,4,2               ## @PCAP_REG_ADC
	.comm	_PCAP_ADC_TS_M_MASK,4,2         ## @PCAP_ADC_TS_M_MASK
	.comm	_PCAP_ADC_TS_REF_LOWPWR,4,2     ## @PCAP_ADC_TS_REF_LOWPWR
	.comm	_PCAP_ADC_ADEN,4,2              ## @PCAP_ADC_ADEN
	.comm	_PCAP_ADC_BANK_1,8,3            ## @PCAP_ADC_BANK_1
	.comm	_PCAP_ADC_AD_SEL1,4,2           ## @PCAP_ADC_AD_SEL1
	.comm	_PCAP_REG_ADR,4,2               ## @PCAP_REG_ADR
	.comm	_PCAP_ADR_ASC,4,2               ## @PCAP_ADR_ASC
	.no_dead_strip	_pcap_adc_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_adc_trigger
_pcap_adc_trigger:                      ; @pcap_adc_trigger
	.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	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x22, [x19]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x22, lsl #3]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x21, _PCAP_REG_ADC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCAP_REG_ADC@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ezx_pcap_read
Lloh2:
	adrp	x8, _PCAP_ADC_TS_M_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCAP_ADC_TS_M_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PCAP_ADC_TS_REF_LOWPWR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCAP_ADC_TS_REF_LOWPWR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	str	w8, [sp, #12]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x22, lsl #3]
	ldr	w10, [x9]
Lloh8:
	adrp	x11, _PCAP_ADC_ADEN@GOTPAGE
Lloh9:
	ldr	x11, [x11, _PCAP_ADC_ADEN@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w8, w10, w8
	orr	w2, w8, w11
	str	w2, [sp, #12]
	ldr	x8, [x9, #8]
Lloh11:
	adrp	x9, _PCAP_ADC_BANK_1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCAP_ADC_BANK_1@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, _PCAP_ADC_AD_SEL1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCAP_ADC_AD_SEL1@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w2, w8, w2
	str	w2, [sp, #12]
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ezx_pcap_write
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh17:
	adrp	x8, _PCAP_REG_ADR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCAP_REG_ADR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _PCAP_ADR_ASC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCAP_ADR_ASC@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ezx_pcap_write
	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
LBB0_4:
	mov	x0, x19
	bl	_pcap_disable_adc
	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
	add	sp, sp, #64
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_REG_ADC,4,2               ; @PCAP_REG_ADC
	.comm	_PCAP_ADC_TS_M_MASK,4,2         ; @PCAP_ADC_TS_M_MASK
	.comm	_PCAP_ADC_TS_REF_LOWPWR,4,2     ; @PCAP_ADC_TS_REF_LOWPWR
	.comm	_PCAP_ADC_ADEN,4,2              ; @PCAP_ADC_ADEN
	.comm	_PCAP_ADC_BANK_1,8,3            ; @PCAP_ADC_BANK_1
	.comm	_PCAP_ADC_AD_SEL1,4,2           ; @PCAP_ADC_AD_SEL1
	.comm	_PCAP_REG_ADR,4,2               ; @PCAP_REG_ADR
	.comm	_PCAP_ADR_ASC,4,2               ; @PCAP_ADR_ASC
	.no_dead_strip	_pcap_adc_trigger
.subsections_via_symbols
