	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xadc_remove
_xadc_remove:                           ## @xadc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_iio_device_unregister
	movq	24(%rbx), %rax
	movq	_XADC_FLAGS_BUFFERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	20(%rbx), %edi
	callq	_iio_trigger_free
	movl	16(%rbx), %edi
	callq	_iio_trigger_free
	movq	%r14, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_2:
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_cancel_delayed_work_sync
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	(%rbx), %edi
	callq	_kfree
	movl	(%r14), %edi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XADC_FLAGS_BUFFERED,4,2        ## @XADC_FLAGS_BUFFERED
	.no_dead_strip	_xadc_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xadc_remove
_xadc_remove:                           ; @xadc_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_platform_get_drvdata
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	bl	_iio_device_unregister
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _XADC_FLAGS_BUFFERED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XADC_FLAGS_BUFFERED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20, #20]
	bl	_iio_trigger_free
	ldr	w0, [x20, #16]
	bl	_iio_trigger_free
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
LBB0_2:
	ldr	w0, [x20, #12]
	mov	x1, x19
	bl	_free_irq
	add	x0, x20, #8
	bl	_cancel_delayed_work_sync
	ldr	w0, [x20, #4]
	bl	_clk_disable_unprepare
	ldr	w0, [x20]
	bl	_kfree
	ldr	w0, [x19]
	bl	_kfree
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XADC_FLAGS_BUFFERED,4,2        ; @XADC_FLAGS_BUFFERED
	.no_dead_strip	_xadc_remove
.subsections_via_symbols
