	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_channel_get_all_cb         ## -- Begin function iio_channel_get_all_cb
	.p2align	4, 0x90
_iio_channel_get_all_cb:                ## @iio_channel_get_all_cb
	.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
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	16(%rax), %rbx
	movq	%rbx, %rdi
	callq	_iio_buffer_init
	movq	%r13, 48(%r14)
	movq	%r12, (%r14)
	movq	_iio_cb_access@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	callq	_iio_channel_get_all
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, %r12
	movq	8(%rdi), %rax
	movq	%rax, 40(%r14)
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_zalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	8(%r14), %rbx
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	40(%r14), %rax
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	_set_bit
	movq	24(%rbx), %rax
	addq	$16, %rbx
	testq	%rax, %rax
	jne	LBB0_8
LBB0_14:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r12), %rdi
	callq	_bitmap_free
LBB0_10:
	negl	%r15d
	movq	8(%r14), %rdi
	callq	_iio_channel_release_all
LBB0_11:
	movq	%r14, %rdi
	callq	_kfree
LBB0_12:
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_iio_cb_access,4,2              ## @iio_cb_access
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_channel_get_all_cb         ; -- Begin function iio_channel_get_all_cb
	.p2align	2
_iio_channel_get_all_cb:                ; @iio_channel_get_all_cb
	.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
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_iio_buffer_init
	str	x23, [x19, #48]
	str	x22, [x19]
Lloh2:
	adrp	x8, _iio_cb_access@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iio_cb_access@GOTPAGEOFF]
	str	x8, [x19, #32]
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	mov	x0, x21
	bl	_iio_channel_get_all
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_12
LBB0_3:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_4:
	ldr	x8, [x0, #8]
	str	x8, [x19, #40]
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	_bitmap_zalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x21, [x19, #8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	x1, [x20]
	bl	_set_bit
	ldr	x8, [x21, #24]
	add	x21, x21, #16
	cbnz	x8, LBB0_6
LBB0_8:
	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
	ret
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	ldr	x0, [x20]
	bl	_bitmap_free
LBB0_11:
	neg	w20, w21
	ldr	x0, [x19, #8]
	bl	_iio_channel_release_all
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x20
	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	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_iio_cb_access,4,2              ; @iio_cb_access
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
