	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbc_banks_map
_lbc_banks_map:                         ## @lbc_banks_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movl	$8, %esi
	callq	_bzero
	movq	_LBC_DEV_MAX@GOTPCREL(%rip), %r12
	movq	(%r12), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.5:
	xorl	%r13d, %r13d
	xorl	%r10d, %r10d
	jmp	LBB0_6
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %r8
LBB0_31:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rax
	leaq	(%rdi,%rdi,2), %rcx
	movl	%edx, (%rax,%rcx,4)
	movl	%r9d, 4(%rax,%rcx,4)
	incq	%r13
LBB0_32:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r10
	cmpq	%r8, %r10
	jae	LBB0_3
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_29 Depth 2
	movq	8(%r14), %rax
	leaq	(%r10,%r10,2), %rcx
	movl	(%rax,%rcx,4), %r9d
	testl	%r9d, %r9d
	je	LBB0_32
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rax,%rcx,4), %edx
	testq	%r13, %r13
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rdi
	leal	-1(%rdx), %r15d
	leal	(%rdx,%r9), %r11d
	decl	%r11d
	addq	$4, %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%rbx
	addq	$12, %rdi
	cmpq	%rbx, %r13
	je	LBB0_18
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdi), %ecx
	movl	(%rdi), %eax
	testl	%edx, %edx
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	leal	(%rax,%rcx), %esi
	decl	%esi
	cmpl	%r15d, %esi
	je	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	decl	%ecx
	cmpl	%ecx, %r11d
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, -4(%rdi)
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	%r9d, %eax
	movl	%eax, (%rdi)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r13, %rbx
	jne	LBB0_32
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%r13, %r13
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edx, (%rax)
	jge	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	incq	%rdi
	addq	$12, %rax
	cmpq	%rdi, %r13
	jne	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdi, %r13
	jbe	LBB0_31
	jmp	LBB0_25
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	cmpq	%rdi, %r13
	jbe	LBB0_31
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %esi
	subl	%edi, %esi
	leaq	1(%rdi), %r8
	movq	%r13, %rcx
	testb	$1, %sil
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rsi
	leaq	(,%r13,2), %rbx
	addq	%r13, %rbx
	leaq	-1(%r13), %rcx
	movl	-4(%rsi,%rbx,4), %eax
	movl	%eax, 8(%rsi,%rbx,4)
	movq	-12(%rsi,%rbx,4), %rax
	movq	%rax, (%rsi,%rbx,4)
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r8, %r13
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	(,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rax
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rsi
	movl	-4(%rsi,%rax), %ebx
	movl	%ebx, 8(%rsi,%rax)
	movq	-12(%rsi,%rax), %rbx
	movq	%rbx, (%rsi,%rax)
	movq	(%r14), %rsi
	addq	$-2, %rcx
	movl	-16(%rsi,%rax), %ebx
	movl	%ebx, -4(%rsi,%rax)
	movq	-24(%rsi,%rax), %rbx
	movq	%rbx, -12(%rsi,%rax)
	addq	$-24, %rax
	cmpq	%rdi, %rcx
	ja	LBB0_29
	jmp	LBB0_30
LBB0_3:
	movq	%r13, %rax
	decq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.4:
	movl	$1, %r13d
	jmp	LBB0_34
LBB0_1:
	movq	$-1, -56(%rbp)                  ## 8-byte Folded Spill
	xorl	%r13d, %r13d
LBB0_2:
	movl	$36, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=1
	leaq	-1(%rbx), %rax
	addq	$12, -64(%rbp)                  ## 8-byte Folded Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rsi
	movq	%rbx, %r13
	jae	LBB0_33
LBB0_46:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_48 Depth 2
                                        ##       Child Loop BB0_52 Depth 3
	movq	%rsi, %rcx
	incq	%rsi
	movq	(%r14), %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %r12
	movl	4(%rax,%r12,4), %ecx
	movl	(%rax,%r12,4), %edx
	addl	%ecx, %edx
	cmpl	12(%rax,%r12,4), %edx
	movq	%r13, %rbx
	jne	LBB0_45
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	leaq	(%rax,%r12,4), %rdx
	addq	$4, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$2, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_48:                                ##   Parent Loop BB0_46 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_52 Depth 3
	leaq	(%rsi,%rsi,2), %r15
	addl	4(%rax,%r15,4), %ecx
	movl	%ecx, (%rdx)
	cmpq	%r13, %rsi
	jae	LBB0_49
## %bb.50:                              ##   in Loop: Header=BB0_48 Depth=2
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rsi,2), %rcx
	movl	8(%rax,%rcx,4), %edx
	movl	%edx, 8(%rax,%r15,4)
	movq	(%rax,%rcx,4), %rcx
	movq	%rcx, (%rax,%r15,4)
	movq	%rsi, %rcx
	cmpq	%r13, %rsi
	jae	LBB0_53
## %bb.51:                              ##   in Loop: Header=BB0_48 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_52:                                ##   Parent Loop BB0_46 Depth=1
                                        ##     Parent Loop BB0_48 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r14), %rdx
	incq	%rcx
	movl	8(%rdx,%rax), %esi
	movl	%esi, -4(%rdx,%rax)
	movq	(%rdx,%rax), %rsi
	movq	%rsi, -12(%rdx,%rax)
	addq	$12, %rax
	cmpq	%r13, %rcx
	jb	LBB0_52
LBB0_53:                                ##   in Loop: Header=BB0_48 Depth=2
	movq	(%r14), %rax
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_48 Depth=2
	movq	%rsi, %rcx
LBB0_54:                                ##   in Loop: Header=BB0_48 Depth=2
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movl	$12, %esi
	callq	_bzero
	leaq	-1(%r13), %rsi
	cmpq	%rsi, -48(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_55
## %bb.44:                              ##   in Loop: Header=BB0_48 Depth=2
	movq	(%r14), %rax
	leaq	(%rax,%r12,4), %rdx
	addq	$4, %rdx
	movl	4(%rax,%r12,4), %ecx
	movl	(%rax,%r12,4), %edi
	addl	%ecx, %edi
	movq	%r13, %rbx
	movq	%rsi, %r13
	cmpl	(%rax,%r15,4), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_48
	jmp	LBB0_45
LBB0_55:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	decq	%r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r13, %rax
	cmovbq	%rax, %r13
	incq	%r13
LBB0_34:
	movq	(%r14), %rcx
	xorl	%ebx, %ebx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx), %r13d
	movl	4(%rcx,%rbx), %r15d
	movq	_OCP85XX_TGTIF_LBC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_law_enable
	testl	%eax, %eax
	jne	LBB0_60
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_pmap_mapdev
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx,%rbx)
	addq	$12, %rbx
	decq	%r12
	jne	LBB0_35
## %bb.37:
	movq	_LBC_DEV_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_59
## %bb.38:
	movq	8(%r14), %r9
	xorl	%r11d, %r11d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_58:                                ##   in Loop: Header=BB0_39 Depth=1
	incq	%r11
	cmpq	%r8, %r11
	je	LBB0_59
LBB0_39:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_41 Depth 2
	leaq	(%r11,%r11,2), %r10
	movl	(%r9,%r10,4), %eax
	testl	%eax, %eax
	je	LBB0_58
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movl	4(%r9,%r10,4), %ebx
	movq	(%r14), %rdi
	leal	(%rax,%rbx), %r15d
	decl	%r15d
	addq	$8, %rdi
	movq	%r12, %rcx
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_41 Depth=2
	addq	$12, %rdi
	decq	%rcx
	je	LBB0_58
LBB0_41:                                ##   Parent Loop BB0_39 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-8(%rdi), %edx
	movl	%ebx, %esi
	subl	%edx, %esi
	jl	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=2
	movl	-4(%rdi), %eax
	addl	%edx, %eax
	decl	%eax
	cmpl	%eax, %r15d
	jg	LBB0_43
## %bb.57:                              ##   in Loop: Header=BB0_39 Depth=1
	addl	(%rdi), %esi
	movl	%esi, 8(%r9,%r10,4)
	jmp	LBB0_58
LBB0_59:
	xorl	%eax, %eax
LBB0_60:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	testq	%r13, %r13
	jne	LBB0_34
## %bb.56:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_60
	.cfi_endproc
                                        ## -- End function
	.comm	_LBC_DEV_MAX,8,3                ## @LBC_DEV_MAX
	.comm	_OCP85XX_TGTIF_LBC,4,2          ## @OCP85XX_TGTIF_LBC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lbc_banks_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbc_banks_map
_lbc_banks_map:                         ; @lbc_banks_map
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x0, [x0]
	mov	w1, #8
	bl	_bzero
Lloh0:
	adrp	x22, _LBC_DEV_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LBC_DEV_MAX@GOTPAGEOFF]
	ldr	x10, [x22]
	cbz	x10, LBB0_24
; %bb.1:
	mov	x23, #0
	mov	x8, #0
	mov	w9, #12
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x19]
	madd	x13, x13, x9, x14
	stp	w12, w11, [x13]
	add	x23, x23, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x8, x10
	b.hs	LBB0_23
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
	ldr	x12, [x19, #8]
	mul	x11, x8, x9
	ldr	w11, [x12, x11]
	cbz	w11, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x12, x8, x9, x12
	ldr	w12, [x12, #4]
	mov	x13, #0
	cbz	x23, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x19]
	sub	w15, w12, #1
	add	w16, w15, w11
	add	x14, x14, #4
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w0, w17, [x14, #-4]
	cmp	w12, #1
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w1, w17, w0
	sub	w1, w1, #1
	cmp	w1, w15
	b.eq	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	subs	w0, w0, #1
	ccmp	w16, w0, #0, ge
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	add	x13, x13, #1
	add	x14, x14, #12
	cmp	x23, x13
	b.ne	LBB0_7
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	stur	w12, [x14, #-4]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w15, w17, w11
	str	w15, [x14]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x13, x23
	b.ne	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, #0
	cbz	x23, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x19]
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x14]
	cmp	w15, w12
	b.ge	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x13, x13, #1
	add	x14, x14, #12
	cmp	x23, x13
	b.ne	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, x23
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x23, x13
	b.ls	LBB0_2
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x23, x23, lsl #1
	lsl	x10, x10, #2
	mov	x14, x23
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x19]
	sub	x14, x14, #1
	add	x15, x15, x10
	ldur	x16, [x15, #-12]
	str	x16, [x15]
	ldur	w16, [x15, #-4]
	str	w16, [x15, #8]
	sub	x10, x10, #12
	cmp	x14, x13
	b.hi	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x22]
	b	LBB0_2
LBB0_23:
	subs	x20, x23, #1
	b.ne	LBB0_25
	b	LBB0_38
LBB0_24:
	mov	x23, #0
	mov	x20, #-1
LBB0_25:
	mov	x21, #0
	mov	x24, #0
	mov	w25, #12
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	sub	x20, x23, #1
	add	x21, x21, #12
	cmp	x24, x20
	b.hs	LBB0_52
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
                                        ;       Child Loop BB0_32 Depth 3
	mov	x26, x24
	add	x24, x24, #1
	ldr	x8, [x19]
	madd	x9, x26, x25, x8
	ldr	w11, [x9]
	ldr	w12, [x9, #12]
	ldr	w10, [x9, #4]!
	add	w11, w10, w11
	cmp	w11, w12
	b.ne	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x27, x26, #2
	mov	x28, x20
LBB0_29:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_32 Depth 3
	madd	x11, x24, x25, x8
	ldr	w11, [x11, #4]
	add	w10, w11, w10
	str	w10, [x9]
	cmp	x24, x28
	b.hs	LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	madd	x9, x24, x25, x8
	madd	x8, x27, x25, x8
	ldr	x10, [x8]
	str	x10, [x9]
	ldr	w8, [x8, #8]
	str	w8, [x9, #8]
	mov	x9, x27
	cmp	x27, x28
	b.hs	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	x8, x21
	mov	x9, x27
LBB0_32:                                ;   Parent Loop BB0_27 Depth=1
                                        ;     Parent Loop BB0_29 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x19]
	add	x9, x9, #1
	add	x10, x10, x8
	ldur	x11, [x10, #36]
	str	x11, [x10, #24]
	ldr	w11, [x10, #44]
	str	w11, [x10, #32]
	add	x8, x8, #12
	cmp	x9, x28
	b.lo	LBB0_32
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [x19]
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_29 Depth=2
	mov	x9, x24
LBB0_35:                                ;   in Loop: Header=BB0_29 Depth=2
	madd	x0, x9, x25, x8
	mov	w1, #12
	bl	_bzero
	sub	x11, x28, #1
	cmp	x26, x11
	b.hs	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [x19]
	mul	x10, x26, x25
	add	x9, x8, x10
	ldr	w12, [x8, x10]
	ldr	w10, [x9, #4]!
	mul	x13, x24, x25
	ldr	w13, [x8, x13]
	add	w12, w10, w12
	cmp	w12, w13
	mov	x23, x28
	mov	x28, x11
	b.eq	LBB0_29
	b	LBB0_26
LBB0_37:
	sub	x8, x20, #1
	cmp	x26, x8
	csel	x8, x26, x8, lo
	add	x23, x8, #1
LBB0_38:
	mov	x24, #0
	ldr	x8, [x19]
Lloh2:
	adrp	x25, _OCP85XX_TGTIF_LBC@GOTPAGE
Lloh3:
	ldr	x25, [x25, _OCP85XX_TGTIF_LBC@GOTPAGEOFF]
	mov	x26, x23
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x24
	ldp	w20, w21, [x8]
	ldr	w0, [x25]
	mov	x1, x20
	mov	x2, x21
	bl	_law_enable
	cbnz	w0, LBB0_51
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_pmap_mapdev
	ldr	x8, [x19]
	add	x9, x8, x24
	str	w0, [x9, #8]
	add	x24, x24, #12
	subs	x26, x26, #1
	b.ne	LBB0_39
; %bb.41:
	ldr	x8, [x22]
	cbz	x8, LBB0_50
; %bb.42:
	mov	x9, #0
	ldr	x10, [x19, #8]
	mov	w11, #12
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_50
LBB0_44:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_47 Depth 2
	mul	x12, x9, x11
	ldr	w13, [x10, x12]
	cbz	w13, LBB0_43
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	madd	x12, x9, x11, x10
	ldr	w12, [x12, #4]
	ldr	x15, [x19]
	add	w13, w13, w12
	sub	w14, w13, #1
	add	x13, x15, #8
	mov	x15, x23
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_47 Depth=2
	add	x13, x13, #12
	subs	x15, x15, #1
	b.eq	LBB0_43
LBB0_47:                                ;   Parent Loop BB0_44 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w17, [x13, #-8]
	subs	w16, w12, w17
	b.lt	LBB0_46
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=2
	ldur	w0, [x13, #-4]
	add	w17, w17, w0
	sub	w17, w17, #1
	cmp	w14, w17
	b.gt	LBB0_46
; %bb.49:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	w12, [x13]
	add	w12, w16, w12
	madd	x13, x9, x11, x10
	str	w12, [x13, #8]
	b	LBB0_43
LBB0_50:
	mov	w0, #0
LBB0_51:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_52:
	cbnz	x23, LBB0_38
; %bb.53:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_51
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LBC_DEV_MAX,8,3                ; @LBC_DEV_MAX
	.comm	_OCP85XX_TGTIF_LBC,4,2          ; @OCP85XX_TGTIF_LBC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lbc_banks_map
.subsections_via_symbols
