	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_simple_dummy_configure_buffer ## -- Begin function iio_simple_dummy_configure_buffer
	.p2align	4, 0x90
_iio_simple_dummy_configure_buffer:     ## @iio_simple_dummy_configure_buffer
	.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	%rdi, %rbx
	xorl	%eax, %eax
	callq	_iio_kfifo_allocate
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_iio_device_attach_buffer
	movq	_iio_simple_dummy_buffer_setup_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%rbx), %r9d
	movq	_iio_simple_dummy_trigger_h@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %r8
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rbx, %rcx
	callq	_iio_alloc_pollfunc
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	_INDIO_BUFFER_TRIGGERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %edi
	callq	_iio_kfifo_free
LBB0_4:
	negl	%r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_iio_simple_dummy_buffer_setup_ops,4,2 ## @iio_simple_dummy_buffer_setup_ops
	.comm	_iio_simple_dummy_trigger_h,4,2 ## @iio_simple_dummy_trigger_h
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iio_simple_dummy_consumer%d"

	.comm	_INDIO_BUFFER_TRIGGERED,4,2     ## @INDIO_BUFFER_TRIGGERED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_simple_dummy_configure_buffer ; -- Begin function iio_simple_dummy_configure_buffer
	.p2align	2
_iio_simple_dummy_configure_buffer:     ; @iio_simple_dummy_configure_buffer
	.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, x0
	bl	_iio_kfifo_allocate
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
	mov	x0, x19
	bl	_iio_device_attach_buffer
Lloh0:
	adrp	x8, _iio_simple_dummy_buffer_setup_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iio_simple_dummy_buffer_setup_ops@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh2:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w5, [x19, #12]
Lloh5:
	adrp	x1, _iio_simple_dummy_trigger_h@GOTPAGE
Lloh6:
	ldr	x1, [x1, _iio_simple_dummy_trigger_h@GOTPAGEOFF]
Lloh7:
	adrp	x4, l_.str@PAGE
Lloh8:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, #0
	mov	x3, x19
	bl	_iio_alloc_pollfunc
	str	w0, [x19, #8]
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #0
Lloh9:
	adrp	x8, _INDIO_BUFFER_TRIGGERED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INDIO_BUFFER_TRIGGERED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_iio_kfifo_free
LBB0_5:
	neg	w0, w20
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_iio_simple_dummy_buffer_setup_ops,4,2 ; @iio_simple_dummy_buffer_setup_ops
	.comm	_iio_simple_dummy_trigger_h,4,2 ; @iio_simple_dummy_trigger_h
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iio_simple_dummy_consumer%d"

	.comm	_INDIO_BUFFER_TRIGGERED,4,2     ; @INDIO_BUFFER_TRIGGERED
.subsections_via_symbols
