	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ezx_pcap_remove
_ezx_pcap_remove:                       ## @ezx_pcap_remove
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_spi_get_drvdata
	movq	%rax, %r15
	movq	_pcap_remove_subdev@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_device_for_each_child
	movq	%r15, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_PCAP_ADC_MAXQ@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_kfree
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_PCAP_NIRQS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	movl	(%r15), %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_irq_set_chip_and_handler
	incl	%ebx
	movl	(%r14), %eax
	addl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_5
LBB0_6:
	movl	4(%r15), %edi
	callq	_destroy_workqueue
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pcap_remove_subdev,4,2         ## @pcap_remove_subdev
	.comm	_PCAP_ADC_MAXQ,4,2              ## @PCAP_ADC_MAXQ
	.comm	_PCAP_NIRQS,4,2                 ## @PCAP_NIRQS
	.no_dead_strip	_ezx_pcap_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ezx_pcap_remove
_ezx_pcap_remove:                       ; @ezx_pcap_remove
	.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
	mov	x20, x0
	bl	_spi_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _pcap_remove_subdev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pcap_remove_subdev@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_device_for_each_child
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x21, _PCAP_ADC_MAXQ@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PCAP_ADC_MAXQ@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x22, lsl #2]
	bl	_kfree
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x21, _PCAP_NIRQS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PCAP_NIRQS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	w20, [x19]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_irq_set_chip_and_handler
	add	w20, w20, #1
	ldr	w8, [x19]
	ldr	w9, [x21]
	add	w8, w9, w8
	cmp	w20, w8
	b.lt	LBB0_5
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_destroy_workqueue
	mov	w0, #0
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pcap_remove_subdev,4,2         ; @pcap_remove_subdev
	.comm	_PCAP_ADC_MAXQ,4,2              ; @PCAP_ADC_MAXQ
	.comm	_PCAP_NIRQS,4,2                 ; @PCAP_NIRQS
	.no_dead_strip	_ezx_pcap_remove
.subsections_via_symbols
