	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iio_dev_release
_iio_dev_release:                       ## @iio_dev_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_dev_to_iio_dev
	movq	%rax, %rbx
	movq	_INDIO_ALL_TRIGGERED_MODES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_iio_device_unregister_trigger_consumer
LBB0_2:
	movq	%rbx, %rdi
	callq	_iio_device_unregister_eventset
	movq	%rbx, %rdi
	callq	_iio_device_unregister_sysfs
	movl	8(%rbx), %edi
	callq	_iio_buffer_put
	movl	4(%rbx), %esi
	movq	_iio_ida@GOTPCREL(%rip), %rdi
	callq	_ida_simple_remove
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INDIO_ALL_TRIGGERED_MODES,4,2  ## @INDIO_ALL_TRIGGERED_MODES
	.comm	_iio_ida,4,2                    ## @iio_ida
	.no_dead_strip	_iio_dev_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iio_dev_release
_iio_dev_release:                       ; @iio_dev_release
	.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	_dev_to_iio_dev
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _INDIO_ALL_TRIGGERED_MODES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INDIO_ALL_TRIGGERED_MODES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_iio_device_unregister_trigger_consumer
LBB0_2:
	mov	x0, x19
	bl	_iio_device_unregister_eventset
	mov	x0, x19
	bl	_iio_device_unregister_sysfs
	ldr	w0, [x19, #8]
	bl	_iio_buffer_put
	ldr	w1, [x19, #4]
Lloh3:
	adrp	x0, _iio_ida@GOTPAGE
Lloh4:
	ldr	x0, [x0, _iio_ida@GOTPAGEOFF]
	bl	_ida_simple_remove
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INDIO_ALL_TRIGGERED_MODES,4,2  ; @INDIO_ALL_TRIGGERED_MODES
	.comm	_iio_ida,4,2                    ; @iio_ida
	.no_dead_strip	_iio_dev_release
.subsections_via_symbols
