	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocelot_create_group_func_map
_ocelot_create_group_func_map:          ## @ocelot_create_group_func_map
	.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	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r15
	movq	_FUNC_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_21
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	_FUNC_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r14
	movq	(%r13), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_ocelot_pin_function_idx
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movslq	%ebx, %rax
	incl	%ebx
	movq	%r14, (%r15,%rax,8)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
	movq	%r12, %r14
	shlq	$4, %r14
	movl	%ebx, (%rax,%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	8(%r13), %rcx
	movq	%rax, 8(%rcx,%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rcx
	movq	8(%rcx), %rcx
	movl	%ebx, %esi
	leaq	-1(%rsi), %rdi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$3, %rdi
	jae	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	andl	$-4, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15,%rdi,8), %rbx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, (%rax,%rdi,4)
	movq	8(%r15,%rdi,8), %rbx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, 4(%rax,%rdi,4)
	movq	16(%r15,%rdi,8), %rbx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, 8(%rax,%rdi,4)
	movq	24(%r15,%rdi,8), %rbx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, 12(%rax,%rdi,4)
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rax,%rdi,4), %rax
	leaq	(%r15,%rdi,8), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi,%rdi,8), %rbx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, (%rax,%rdi,4)
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_19
	jmp	LBB0_20
LBB0_21:
	movq	%r15, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_13:
	movq	%r15, %rdi
	callq	_kfree
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FUNC_MAX,4,2                   ## @FUNC_MAX
	.no_dead_strip	_ocelot_create_group_func_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocelot_create_group_func_map
_ocelot_create_group_func_map:          ; @ocelot_create_group_func_map
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	ldr	w0, [x8]
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x26, _FUNC_MAX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _FUNC_MAX@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.2:
	mov	x22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x26]
	cmp	x22, x8
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	mov	w23, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_ocelot_pin_function_idx
	tbnz	x0, #63, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	str	x24, [x21, w23, sxtw #3]
	add	w23, w23, #1
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w23, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	lsl	x24, x22, #4
	str	w23, [x8, x24]
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x23
	mov	w2, #8
	bl	_devm_kcalloc
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	str	x0, [x8, #8]
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	w9, w23
	mov	x10, x21
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10], #8
	ldr	w11, [x8, x11, lsl #2]
	str	w11, [x0], #4
	subs	x9, x9, #1
	b.ne	LBB0_13
	b	LBB0_3
LBB0_14:
	mov	x0, x21
	bl	_kfree
	mov	w0, #0
	b	LBB0_17
LBB0_15:
	mov	x0, x21
	bl	_kfree
LBB0_16:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FUNC_MAX,4,2                   ; @FUNC_MAX
	.no_dead_strip	_ocelot_create_group_func_map
.subsections_via_symbols
