	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_dummy_evgen_get_irq        ## -- Begin function iio_dummy_evgen_get_irq
	.p2align	4, 0x90
_iio_dummy_evgen_get_irq:               ## @iio_dummy_evgen_get_irq
	.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	_iio_evgen@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	addq	$8, %rdi
	callq	_mutex_lock
	movq	_IIO_EVENTGEN_NO@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	(%r12), %rdi
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movq	(%rdi), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_5
## %bb.8:
	xorl	%r14d, %r14d
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_6:
	addq	$12, %rdi
	movl	%ebx, %esi
	callq	_irq_sim_irqnum
	movl	%eax, %r14d
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movl	$1, (%rax,%rbx,4)
LBB0_9:
	addq	$8, %rdi
	callq	_mutex_unlock
	cmpl	(%r15), %ebx
	jne	LBB0_12
## %bb.10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iio_evgen,8,3                  ## @iio_evgen
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IIO_EVENTGEN_NO,4,2            ## @IIO_EVENTGEN_NO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_dummy_evgen_get_irq        ; -- Begin function iio_dummy_evgen_get_irq
	.p2align	2
_iio_dummy_evgen_get_irq:               ; @iio_dummy_evgen_get_irq
	.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
Lloh0:
	adrp	x22, _iio_evgen@GOTPAGE
Lloh1:
	ldr	x22, [x22, _iio_evgen@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.1:
	add	x0, x8, #8
	bl	_mutex_lock
Lloh2:
	adrp	x21, _IIO_EVENTGEN_NO@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IIO_EVENTGEN_NO@GOTPAGEOFF]
	ldr	w9, [x21]
	ldr	x8, [x22]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x19, #0
	ldr	x10, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x19, lsl #2]
	cbz	w11, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	cmp	x9, x19
	b.ne	LBB0_3
; %bb.5:
	mov	w20, #0
	mov	x19, x9
	b	LBB0_9
LBB0_6:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	mov	w19, #0
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	add	x0, x8, #12
	mov	x1, x19
	bl	_irq_sim_irqnum
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x9, [x8]
	mov	w10, #1
	str	w10, [x9, x19, lsl #2]
LBB0_9:
	add	x0, x8, #8
	bl	_mutex_unlock
	ldr	w8, [x21]
	cmp	w19, w8
	b.ne	LBB0_12
; %bb.10:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x20
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_iio_evgen,8,3                  ; @iio_evgen
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IIO_EVENTGEN_NO,4,2            ; @IIO_EVENTGEN_NO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
