	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iio_trig_release
_iio_trig_release:                      ## @iio_trig_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_iio_trigger
	movq	%rax, %r15
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	_CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_IRQ_NOREQUEST@GOTPCREL(%rip), %r13
	movq	_IRQ_NOPROBE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rdi
	movq	_IRQ_NOAUTOEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	orl	(%r13), %edx
	callq	_irq_modify_status
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_irq_set_chip
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_irq_set_handler
	incq	%rbx
	movslq	(%r12), %rsi
	movq	8(%r15), %rdi
	cmpq	%rsi, %rbx
	jl	LBB0_3
LBB0_4:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_irq_free_descs
LBB0_5:
	movq	(%r15), %rdi
	callq	_kfree
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_IIO_CONSUMERS_PER_TRIGGER,4,2 ## @CONFIG_IIO_CONSUMERS_PER_TRIGGER
	.comm	_IRQ_NOAUTOEN,4,2               ## @IRQ_NOAUTOEN
	.comm	_IRQ_NOREQUEST,4,2              ## @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ## @IRQ_NOPROBE
	.no_dead_strip	_iio_trig_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iio_trig_release
_iio_trig_release:                      ; @iio_trig_release
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_to_iio_trigger
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x20, _CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPAGEOFF]
	ldr	w1, [x20]
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
Lloh2:
	adrp	x22, _IRQ_NOAUTOEN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IRQ_NOAUTOEN@GOTPAGEOFF]
Lloh4:
	adrp	x23, _IRQ_NOREQUEST@GOTPAGE
Lloh5:
	ldr	x23, [x23, _IRQ_NOREQUEST@GOTPAGEOFF]
Lloh6:
	adrp	x24, _IRQ_NOPROBE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IRQ_NOPROBE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, x21
	ldr	w1, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w2, w9, w8
	bl	_irq_modify_status
	ldr	x8, [x19, #8]
	add	x0, x21, x8
	mov	x1, #0
	bl	_irq_set_chip
	ldr	x8, [x19, #8]
	add	x0, x21, x8
	mov	x1, #0
	bl	_irq_set_handler
	add	x21, x21, #1
	ldrsw	x1, [x20]
	ldr	x0, [x19, #8]
	cmp	x21, x1
	b.lt	LBB0_3
LBB0_4:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_irq_free_descs
LBB0_5:
	ldr	x0, [x19]
	bl	_kfree
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_IIO_CONSUMERS_PER_TRIGGER,4,2 ; @CONFIG_IIO_CONSUMERS_PER_TRIGGER
	.comm	_IRQ_NOAUTOEN,4,2               ; @IRQ_NOAUTOEN
	.comm	_IRQ_NOREQUEST,4,2              ; @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ; @IRQ_NOPROBE
	.no_dead_strip	_iio_trig_release
.subsections_via_symbols
