	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iio_trigger_detach_poll_func
_iio_trigger_detach_poll_func:          ## @iio_trigger_detach_poll_func
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	movq	_CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_weight
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rcx
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:
	movq	(%r14), %rax
	movq	8(%rax), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_6
## %bb.5:
	movl	$0, (%rbx)
LBB0_6:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_iio_trigger_put_irq
	movl	8(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_module_put
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_IIO_CONSUMERS_PER_TRIGGER,4,2 ## @CONFIG_IIO_CONSUMERS_PER_TRIGGER
	.no_dead_strip	_iio_trigger_detach_poll_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iio_trigger_detach_poll_func
_iio_trigger_detach_poll_func:          ; @iio_trigger_detach_poll_func
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bitmap_weight
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w0, #1, #0, ne
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	blr	x8
	cbnz	w0, LBB0_6
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	str	wzr, [x20]
LBB0_5:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_iio_trigger_put_irq
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_module_put
	mov	w0, #0
LBB0_6:
	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	_CONFIG_IIO_CONSUMERS_PER_TRIGGER,4,2 ; @CONFIG_IIO_CONSUMERS_PER_TRIGGER
	.no_dead_strip	_iio_trigger_detach_poll_func
.subsections_via_symbols
