	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max1363_alloc_scan_masks
_max1363_alloc_scan_masks:              ## @max1363_alloc_scan_masks
	.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	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r13
	leaq	8(%rbx), %r15
	movq	_MAX1363_MAX_CHANNELS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_BITS_TO_LONGS
	movq	(%r13), %rcx
	movl	(%rcx), %edx
	incl	%edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_array3_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_max1363_mode_table@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_BITS_TO_LONGS
	movl	%ebx, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	leaq	(%r15,%rax,8), %rdi
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	(%r12), %edx
	callq	_bitmap_copy
	incq	%rbx
	movq	(%r13), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX1363_MAX_CHANNELS,4,2       ## @MAX1363_MAX_CHANNELS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_max1363_mode_table,8,3         ## @max1363_mode_table
	.no_dead_strip	_max1363_alloc_scan_masks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max1363_alloc_scan_masks
_max1363_alloc_scan_masks:              ; @max1363_alloc_scan_masks
	.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	x19, x0
	bl	_iio_priv
	mov	x20, x0
	add	x21, x19, #8
Lloh0:
	adrp	x22, _MAX1363_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX1363_MAX_CHANNELS@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BITS_TO_LONGS
	ldr	x8, [x20]
	ldr	w8, [x8]
	add	w2, w8, #1
	mov	w1, #8
	bl	_array3_size
	mov	x1, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
Lloh5:
	adrp	x24, _max1363_mode_table@GOTPAGE
Lloh6:
	ldr	x24, [x24, _max1363_mode_table@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_BITS_TO_LONGS
	mul	w8, w0, w23
	add	x0, x21, w8, sxtw #3
	ldr	x8, [x24]
	ldr	x9, [x20]
	ldr	x9, [x9, #8]
	ldr	x9, [x9, x23, lsl #3]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w2, [x22]
	bl	_bitmap_copy
	add	x23, x23, #1
	ldr	x8, [x20]
	ldrsw	x8, [x8]
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX1363_MAX_CHANNELS,4,2       ; @MAX1363_MAX_CHANNELS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_max1363_mode_table,8,3         ; @max1363_mode_table
	.no_dead_strip	_max1363_alloc_scan_masks
.subsections_via_symbols
