	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_simple_dummy_events_register ## -- Begin function iio_simple_dummy_events_register
	.p2align	4, 0x90
_iio_simple_dummy_events_register:      ## @iio_simple_dummy_events_register
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_iio_dummy_evgen_get_irq
	movl	%eax, (%rbx)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %edi
	callq	_iio_dummy_evgen_get_regs
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_iio_simple_dummy_get_timestamp@GOTPCREL(%rip), %rsi
	movq	_iio_simple_dummy_event_handler@GOTPCREL(%rip), %rdx
	leaq	L_.str(%rip), %r8
	movq	%r15, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_iio_dummy_evgen_release_irq
	movl	%r15d, %r14d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iio_simple_dummy_get_timestamp,4,2 ## @iio_simple_dummy_get_timestamp
	.comm	_iio_simple_dummy_event_handler,4,2 ## @iio_simple_dummy_event_handler
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iio_simple_event"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_simple_dummy_events_register ; -- Begin function iio_simple_dummy_events_register
	.p2align	2
_iio_simple_dummy_events_register:      ; @iio_simple_dummy_events_register
	.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
	mov	x20, x0
	bl	_iio_priv
	mov	x19, x0
	bl	_iio_dummy_evgen_get_irq
	mov	x21, x0
	str	w0, [x19]
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_iio_dummy_evgen_get_regs
	str	w0, [x19, #4]
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, _iio_simple_dummy_get_timestamp@GOTPAGE
Lloh4:
	ldr	x1, [x1, _iio_simple_dummy_get_timestamp@GOTPAGEOFF]
Lloh5:
	adrp	x2, _iio_simple_dummy_event_handler@GOTPAGE
Lloh6:
	ldr	x2, [x2, _iio_simple_dummy_event_handler@GOTPAGEOFF]
Lloh7:
	adrp	x4, l_.str@PAGE
Lloh8:
	add	x4, x4, l_.str@PAGEOFF
	mov	x5, x20
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	w21, #0
	b	LBB0_4
LBB0_3:
	mov	x21, x0
	ldr	w0, [x19]
	bl	_iio_dummy_evgen_release_irq
LBB0_4:
	mov	x0, x21
	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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_iio_simple_dummy_get_timestamp,4,2 ; @iio_simple_dummy_get_timestamp
	.comm	_iio_simple_dummy_event_handler,4,2 ; @iio_simple_dummy_event_handler
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iio_simple_event"

.subsections_via_symbols
