	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bna_ucam_mod_init
_bna_ucam_mod_init:                     ## @bna_ucam_mod_init
	.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, %r12
	movq	_BNA_MOD_RES_MEM_T_UCMAC_ARRAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdx,%rax,8), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
	leaq	24(%rdi), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	cmpl	$0, (%r13)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	incq	%r14
	movslq	(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r13), %eax
	addl	%eax, %eax
	cmpl	%eax, %r14d
	movq	%r13, %rbx
	jge	LBB0_7
## %bb.5:
	movl	%r14d, %r13d
	shlq	$2, %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movl	(%rbx), %eax
	addl	%eax, %eax
	addq	$4, %r13
	incl	%r14d
	cmpl	%r14d, %eax
	jg	LBB0_6
LBB0_7:
	movq	%rbx, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNA_MOD_RES_MEM_T_UCMAC_ARRAY,8,3 ## @BNA_MOD_RES_MEM_T_UCMAC_ARRAY
	.no_dead_strip	_bna_ucam_mod_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bna_ucam_mod_init
_bna_ucam_mod_init:                     ; @bna_ucam_mod_init
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BNA_MOD_RES_MEM_T_UCMAC_ARRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNA_MOD_RES_MEM_T_UCMAC_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x2, x8, lsl #3]
	ldr	x8, [x8]
	str	x8, [x0, #16]
	add	x21, x0, #24
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x0, x8, x23
	mov	x1, x21
	bl	_list_add_tail
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	add	x21, x20, #8
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	ldr	w8, [x19]
	cmp	w22, w8, lsl #1
	b.ge	LBB0_7
; %bb.5:
	mov	w8, w22
	lsl	x23, x8, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x0, x8, x23
	mov	x1, x21
	bl	_list_add_tail
	ldr	w8, [x19]
	add	x23, x23, #4
	add	w22, w22, #1
	cmp	w22, w8, lsl #1
	b.lt	LBB0_6
LBB0_7:
	str	x19, [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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BNA_MOD_RES_MEM_T_UCMAC_ARRAY,8,3 ; @BNA_MOD_RES_MEM_T_UCMAC_ARRAY
	.no_dead_strip	_bna_ucam_mod_init
.subsections_via_symbols
