	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbc_attach
_lbc_attach:                            ## @lbc_attach
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_device_get_softc
	movq	%rax, %r15
	movq	%rbx, 96(%rax)
	leaq	16(%rax), %rdx
	movq	$0, 16(%rax)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_bus_alloc_resource_any
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_rman_get_bustag
	movl	%eax, 88(%r15)
	movq	8(%r15), %rdi
	callq	_rman_get_bushandle
	movl	%eax, %r12d
	movl	%eax, 84(%r15)
	movq	_LBC_DEV_MAX@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	88(%r15), %r13d
	movl	%ebx, %edi
	callq	_LBC85XX_BR
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_bus_space_write_4
	movl	84(%r15), %r12d
	movl	88(%r15), %r13d
	movl	%ebx, %edi
	callq	_LBC85XX_OR
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_bus_space_write_4
	incl	%ebx
	movl	84(%r15), %r12d
	cmpl	(%r14), %ebx
	jl	LBB0_4
LBB0_5:
	movl	88(%r15), %edi
	movq	_LBC85XX_LBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_bus_space_write_4
	movl	84(%r15), %esi
	movl	88(%r15), %edi
	movq	_LBC85XX_LCRR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$196616, %ecx                   ## imm = 0x30008
	callq	_bus_space_write_4
	movl	84(%r15), %esi
	movl	88(%r15), %edi
	movq	_LBC85XX_LTEDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_bus_space_write_4
	movl	84(%r15), %esi
	movl	88(%r15), %edi
	movq	_LBC85XX_LTESR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %ecx
	callq	_bus_space_write_4
	movl	84(%r15), %esi
	movl	88(%r15), %edi
	movq	_LBC85XX_LTEIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1678245889, %ecx               ## imm = 0x64080001
	callq	_bus_space_write_4
	leaq	72(%r15), %rdx
	movq	$0, 72(%r15)
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_RF_SHAREABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_bus_alloc_resource_any
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_INTR_TYPE_MISC@GOTPCREL(%rip), %rcx
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_lbc_intr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	80(%r15), %rcx
	movq	%rcx, (%rsp)
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_bus_setup_intr
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	movl	(%rbx), %esi
	movq	64(%r15), %rcx
	movq	72(%r15), %rdx
	movq	%r13, %rdi
	callq	_bus_release_resource
	movq	$0, 64(%r15)
LBB0_8:
	movl	$-1, 56(%r15)
	leaq	32(%r15), %rbx
	movq	_RMAN_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 32(%r15)
	movq	%rbx, %rdi
	callq	_rman_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_43
LBB0_10:
	movl	40(%r15), %edx
	movl	44(%r15), %esi
	movq	%rbx, %rdi
	callq	_rman_manage_region
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_rman_fini
	jmp	LBB0_12
LBB0_14:
	movq	%r13, %rdi
	callq	_ofw_bus_get_node
	movl	%eax, %ebx
	movq	%r15, %rdx
	addq	$4, %rdx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_fdt_addrsize_cells
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rdi
	callq	_OF_prop_free
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movq	%r13, %rdi
	callq	_bus_release_resource
LBB0_43:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%ebx, %edi
	callq	_fdt_parent_addr_cells
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$3, %eax
	jl	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_13
LBB0_18:
	movl	(%r15), %r13d
	addl	%eax, %r13d
	addl	4(%r15), %r13d
	shll	$2, %r13d
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rcx
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r13d, %edx
	movq	%rax, %rbx
	callq	_OF_getencprop_alloc_multi
	testl	%eax, %eax
	js	LBB0_19
## %bb.20:
	movl	%eax, %r12d
	movq	-56(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	movl	%r13d, %r8d
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_debugf
	testl	%r12d, %r12d
	je	LBB0_30
## %bb.21:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	incq	%rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_22
LBB0_29:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	4(%r15), %esi
	callq	_fdt_data_get
	movl	%eax, %ebx
	movslq	4(%r15), %rax
	shlq	$2, %rax
	addq	%rax, -56(%rbp)
	leaq	L_.str.7(%rip), %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_debugf
	movq	24(%r15), %rax
	movl	%r13d, %ecx
	leaq	(%rcx,%rcx,4), %rcx
	movl	$0, (%rax,%rcx,8)
	movl	%ebx, 4(%rax,%rcx,8)
	movl	$16, 8(%rax,%rcx,8)
	movq	_LBCRES_MSEL_GPCM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 32(%rax,%rcx,8)
	movq	_LBCRES_DECC_DISABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 28(%rax,%rcx,8)
	movq	_LBCRES_ATOM_DISABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rax,%rcx,8)
	movq	$0, 16(%rax,%rcx,8)
	decl	%r12d
	je	LBB0_30
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	movl	$1, %esi
	callq	_fdt_data_get
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	(%r14), %r13d
	jg	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-56(%rbp), %rax
	leaq	4(%rax), %rdi
	movq	%rdi, -56(%rbp)
	movl	(%r15), %ecx
	cmpl	$2, %ecx
	jl	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	addl	$-2, %ecx
	leaq	(%rax,%rcx,4), %rdi
	addq	$8, %rdi
	movq	%rdi, -56(%rbp)
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rdi,%rax,4), %rdi
	movq	%rdi, -56(%rbp)
	jmp	LBB0_29
LBB0_30:
	movq	%r15, %rdi
	callq	_lbc_banks_map
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	%eax, %r12d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_19:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_13
LBB0_24:
	leaq	L_.str.6(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_32:
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_OF_child
	testl	%eax, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_42
## %bb.33:
	movl	%eax, %r12d
	movq	_M_LBC@GOTPCREL(%rip), %r13
	jmp	LBB0_34
LBB0_35:                                ##   in Loop: Header=BB0_34 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_41:                                ##   in Loop: Header=BB0_34 Depth=1
	movl	%r12d, %edi
	callq	_OF_peer
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_42
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$8, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_ofw_bus_gen_setup_devinfo
	testq	%rax, %rax
	jne	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%rbx, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_resource_list_init
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_fdt_lbc_reg_decode
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	%rbx, %rdi
	callq	_ofw_bus_gen_destroy_devinfo
	movq	_M_LBC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_41
LBB0_38:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_fdt_lbc_fixup
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_device_add_child
	movl	(%rbx), %edx
	testq	%rax, %rax
	je	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%rax, %r13
	leaq	L_.str.11(%rip), %rdi
	movl	%edx, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_debugf
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_device_set_ivars
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_M_LBC@GOTPCREL(%rip), %r13
	jmp	LBB0_41
LBB0_39:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_resource_list_free
	movq	%rbx, %rdi
	callq	_ofw_bus_gen_destroy_devinfo
	movq	_M_LBC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_41
LBB0_42:
	movq	%r15, %rdi
	callq	_lbc_banks_enable
	movq	%r14, %rdi
	callq	_OF_prop_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bus_generic_attach
	movl	%eax, %r12d
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_LBC_DEV_MAX,4,2                ## @LBC_DEV_MAX
	.comm	_LBC85XX_LBCR,4,2               ## @LBC85XX_LBCR
	.comm	_LBC85XX_LCRR,4,2               ## @LBC85XX_LCRR
	.comm	_LBC85XX_LTEDR,4,2              ## @LBC85XX_LTEDR
	.comm	_LBC85XX_LTESR,4,2              ## @LBC85XX_LTESR
	.comm	_LBC85XX_LTEIR,4,2              ## @LBC85XX_LTEIR
	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
	.comm	_RF_SHAREABLE,4,2               ## @RF_SHAREABLE
	.comm	_INTR_TYPE_MISC,4,2             ## @INTR_TYPE_MISC
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_lbc_intr,4,2                   ## @lbc_intr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not activate interrupt\n"

	.comm	_RMAN_ARRAY,4,2                 ## @RMAN_ARRAY
L_.str.1:                               ## @.str.1
	.asciz	"Local Bus Space"

L_.str.2:                               ## @.str.2
	.asciz	"unsupported parent #addr-cells\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
L_.str.3:                               ## @.str.3
	.asciz	"ranges"

L_.str.4:                               ## @.str.4
	.asciz	"could not retrieve 'ranges' property\n"

L_.str.5:                               ## @.str.5
	.asciz	"par addr_cells = %d, addr_cells = %d, size_cells = %d, tuple_size = %d, tuples = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"bank out of range: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"bank = %d, start = %jx, size = %jx\n"

	.comm	_LBCRES_MSEL_GPCM,4,2           ## @LBCRES_MSEL_GPCM
	.comm	_LBCRES_DECC_DISABLED,4,2       ## @LBCRES_DECC_DISABLED
	.comm	_LBCRES_ATOM_DISABLED,4,2       ## @LBCRES_ATOM_DISABLED
	.comm	_M_LBC,4,2                      ## @M_LBC
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
L_.str.8:                               ## @.str.8
	.asciz	"could not set up devinfo\n"

L_.str.9:                               ## @.str.9
	.asciz	"could not process 'reg' property\n"

L_.str.10:                              ## @.str.10
	.asciz	"could not add child: %s\n"

L_.str.11:                              ## @.str.11
	.asciz	"added child name='%s', node=%x\n"

	.no_dead_strip	_lbc_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbc_attach
_lbc_attach:                            ; @lbc_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	bl	_device_get_softc
	mov	x20, x0
	str	x19, [x0, #96]
	mov	x2, x0
	str	xzr, [x2, #16]!
Lloh0:
	adrp	x28, _SYS_RES_MEMORY@GOTPAGE
Lloh1:
	ldr	x28, [x28, _SYS_RES_MEMORY@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh2:
	adrp	x24, _RF_ACTIVE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RF_ACTIVE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.1:
	bl	_rman_get_bustag
	str	w0, [x20, #88]
	ldr	x0, [x20, #8]
	bl	_rman_get_bushandle
	mov	x21, x0
	str	w0, [x20, #84]
Lloh4:
	adrp	x25, _LBC_DEV_MAX@GOTPAGE
Lloh5:
	ldr	x25, [x25, _LBC_DEV_MAX@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x20, #88]
	mov	x0, x22
	bl	_LBC85XX_BR
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	mov	w3, #0
	bl	_bus_space_write_4
	ldp	w23, w21, [x20, #84]
	mov	x0, x22
	bl	_LBC85XX_OR
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	mov	w3, #0
	bl	_bus_space_write_4
	add	w22, w22, #1
	ldr	w8, [x25]
	ldr	w21, [x20, #84]
	cmp	w22, w8
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x20, #88]
Lloh6:
	adrp	x8, _LBC85XX_LBCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LBC85XX_LBCR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x21
	mov	w3, #0
	bl	_bus_space_write_4
	ldp	w1, w0, [x20, #84]
Lloh9:
	adrp	x8, _LBC85XX_LCRR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LBC85XX_LCRR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w3, #8
	movk	w3, #3, lsl #16
	bl	_bus_space_write_4
	ldp	w1, w0, [x20, #84]
Lloh12:
	adrp	x8, _LBC85XX_LTEDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LBC85XX_LTEDR@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_bus_space_write_4
	ldp	w1, w0, [x20, #84]
Lloh15:
	adrp	x8, _LBC85XX_LTESR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LBC85XX_LTESR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w22, #-1
	mov	w3, #-1
	bl	_bus_space_write_4
	ldp	w1, w0, [x20, #84]
Lloh18:
	adrp	x8, _LBC85XX_LTEIR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LBC85XX_LTEIR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w3, #1
	movk	w3, #25608, lsl #16
	bl	_bus_space_write_4
	mov	x21, x20
	str	xzr, [x21, #72]!
Lloh21:
	adrp	x23, _SYS_RES_IRQ@GOTPAGE
Lloh22:
	ldr	x23, [x23, _SYS_RES_IRQ@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w8, [x24]
Lloh23:
	adrp	x9, _RF_SHAREABLE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RF_SHAREABLE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x2, x21
	bl	_bus_alloc_resource_any
	stur	x0, [x21, #-8]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x1, x0
Lloh26:
	adrp	x8, _INTR_TYPE_MISC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _INTR_TYPE_MISC@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh32:
	adrp	x8, _lbc_intr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _lbc_intr@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
	add	x6, x20, #80
	mov	x0, x19
	mov	x3, #0
	mov	x5, x20
	bl	_bus_setup_intr
	cbz	w0, LBB0_7
; %bb.6:
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	ldr	w1, [x23]
	ldp	x3, x2, [x20, #64]
	mov	x0, x19
	bl	_bus_release_resource
	str	xzr, [x20, #64]
LBB0_7:
Lloh37:
	adrp	x8, l_.str.1@PAGE
Lloh38:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x21, x20
	str	x8, [x21, #32]!
	str	w22, [x21, #24]
Lloh39:
	adrp	x8, _RMAN_ARRAY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RMAN_ARRAY@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	mov	x0, x21
	bl	_rman_init
	cbz	w0, LBB0_10
; %bb.8:
	mov	x23, x0
	b	LBB0_12
LBB0_9:
Lloh42:
	adrp	x8, _ENXIO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh44:
	ldr	w23, [x8]
	b	LBB0_14
LBB0_10:
	ldp	w2, w1, [x20, #40]
	mov	x0, x21
	bl	_rman_manage_region
	cbz	w0, LBB0_15
; %bb.11:
	mov	x23, x0
	mov	x0, x21
	bl	_rman_fini
LBB0_12:
	mov	x21, #0
LBB0_13:
	mov	x0, x21
	bl	_OF_prop_free
	ldr	w1, [x28]
	ldp	x3, x2, [x20, #8]
	mov	x0, x19
	bl	_bus_release_resource
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	mov	x0, x19
	bl	_ofw_bus_get_node
	mov	x22, x0
	add	x2, x20, #4
	mov	x1, x20
	bl	_fdt_addrsize_cells
	cbz	x0, LBB0_17
LBB0_16:
	mov	x21, #0
Lloh45:
	adrp	x8, _ENXIO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh47:
	ldr	w23, [x8]
	b	LBB0_13
LBB0_17:
	mov	x0, x22
	bl	_fdt_parent_addr_cells
	cmp	w0, #3
	b.lt	LBB0_20
; %bb.18:
Lloh48:
	adrp	x1, l_.str.2@PAGE
Lloh49:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	x21, #0
LBB0_19:
Lloh50:
	adrp	x8, _ERANGE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh52:
	ldr	w23, [x8]
	b	LBB0_13
LBB0_20:
	mov	x23, x0
	ldp	w8, w9, [x20]
	add	w8, w8, w0
	add	w8, w8, w9
	lsl	w26, w8, #2
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x3, sp, #40
	mov	x0, x22
	mov	x2, x26
	bl	_OF_getencprop_alloc_multi
	tbnz	w0, #31, LBB0_32
; %bb.21:
	mov	x24, x0
	ldr	x21, [sp, #40]
	ldp	w2, w8, [x20]
	stp	x26, x24, [sp, #8]
	str	x8, [sp]
Lloh55:
	adrp	x0, l_.str.5@PAGE
Lloh56:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x23
	bl	_debugf
	cbz	w24, LBB0_30
; %bb.22:
	sub	w8, w23, #1
	add	x8, x8, #1
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	w1, [x20, #4]
	bl	_fdt_data_get
	mov	x27, x0
	ldrsw	x8, [x20, #4]
	ldr	x9, [sp, #40]
	add	x8, x9, x8, lsl #2
	str	x8, [sp, #40]
	str	x27, [sp]
Lloh57:
	adrp	x0, l_.str.7@PAGE
Lloh58:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x26
	mov	w2, #0
	bl	_debugf
	ldr	x8, [x20, #24]
	mov	w9, #40
	umaddl	x8, w26, w9, x8
	stp	wzr, w27, [x8]
	mov	w9, #16
	str	w9, [x8, #8]
Lloh59:
	adrp	x9, _LBCRES_MSEL_GPCM@GOTPAGE
Lloh60:
	ldr	x9, [x9, _LBCRES_MSEL_GPCM@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	str	w9, [x8, #32]
Lloh62:
	adrp	x9, _LBCRES_DECC_DISABLED@GOTPAGE
Lloh63:
	ldr	x9, [x9, _LBCRES_DECC_DISABLED@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	str	w9, [x8, #28]
Lloh65:
	adrp	x9, _LBCRES_ATOM_DISABLED@GOTPAGE
Lloh66:
	ldr	x9, [x9, _LBCRES_ATOM_DISABLED@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	str	w9, [x8, #24]
	str	xzr, [x8, #16]
	subs	w24, w24, #1
	b.eq	LBB0_30
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #40]
	mov	w1, #1
	bl	_fdt_data_get
	mov	x26, x0
	tbnz	w0, #31, LBB0_33
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x25]
	cmp	w26, w8
	b.gt	LBB0_33
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [sp, #40]
	add	x0, x8, #4
	str	x0, [sp, #40]
	ldr	w9, [x20]
	cmp	w9, #1
	b.le	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	sub	w9, w9, #2
	add	x8, x8, w9, uxtw #2
	add	x0, x8, #8
	str	x0, [sp, #40]
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=1
	cmp	w23, #1
	b.lt	LBB0_23
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x0, x0, x8, lsl #2
	str	x0, [sp, #40]
	b	LBB0_23
LBB0_30:
	mov	x0, x20
	bl	_lbc_banks_map
	cbz	w0, LBB0_34
; %bb.31:
	mov	x23, x0
	b	LBB0_13
LBB0_32:
Lloh68:
	adrp	x1, l_.str.4@PAGE
Lloh69:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	b	LBB0_16
LBB0_33:
	str	x26, [sp]
Lloh70:
	adrp	x1, l_.str.6@PAGE
Lloh71:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	b	LBB0_19
LBB0_34:
	mov	x0, x22
	bl	_OF_child
	cbz	w0, LBB0_45
; %bb.35:
	mov	x22, x0
Lloh72:
	adrp	x24, _M_LBC@GOTPAGE
Lloh73:
	ldr	x24, [x24, _M_LBC@GOTPAGEOFF]
Lloh74:
	adrp	x25, _M_WAITOK@GOTPAGE
Lloh75:
	ldr	x25, [x25, _M_WAITOK@GOTPAGEOFF]
Lloh76:
	adrp	x26, _M_ZERO@GOTPAGE
Lloh77:
	ldr	x26, [x26, _M_ZERO@GOTPAGEOFF]
Lloh78:
	adrp	x23, l_.str.8@PAGE
Lloh79:
	add	x23, x23, l_.str.8@PAGEOFF
	b	LBB0_38
LBB0_36:                                ;   in Loop: Header=BB0_38 Depth=1
	ldr	w1, [x24]
	mov	x0, x27
	bl	_free
	mov	x0, x19
	mov	x1, x23
	bl	_device_printf
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, x22
	bl	_OF_peer
	mov	x22, x0
	cbz	w0, LBB0_45
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	w0, #8
	bl	_malloc
	mov	x27, x0
	mov	x1, x22
	bl	_ofw_bus_gen_setup_devinfo
	cbnz	x0, LBB0_36
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	add	x28, x27, #4
	mov	x0, x28
	bl	_resource_list_init
	mov	x0, x22
	mov	x1, x20
	mov	x2, x27
	bl	_fdt_lbc_reg_decode
	cbz	x0, LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, x19
Lloh80:
	adrp	x1, l_.str.9@PAGE
Lloh81:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_device_printf
	mov	x0, x27
	bl	_ofw_bus_gen_destroy_devinfo
	ldr	w1, [x24]
	mov	x0, x27
	bl	_free
	b	LBB0_37
LBB0_41:                                ;   in Loop: Header=BB0_38 Depth=1
	mov	x26, x25
	mov	x25, x23
	mov	x0, x22
	mov	x1, x20
	mov	x2, x27
	bl	_fdt_lbc_fixup
	mov	x0, x19
	mov	x1, #0
	mov	w2, #-1
	bl	_device_add_child
	ldr	w1, [x27]
	cbz	x0, LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_38 Depth=1
	mov	x23, x0
Lloh82:
	adrp	x0, l_.str.11@PAGE
Lloh83:
	add	x0, x0, l_.str.11@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x22
	bl	_debugf
	mov	x0, x23
	mov	x1, x27
	bl	_device_set_ivars
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_38 Depth=1
	str	x1, [sp]
	mov	x0, x19
Lloh84:
	adrp	x1, l_.str.10@PAGE
Lloh85:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_device_printf
	mov	x0, x28
	bl	_resource_list_free
	mov	x0, x27
	bl	_ofw_bus_gen_destroy_devinfo
	ldr	w1, [x24]
	mov	x0, x27
	bl	_free
LBB0_44:                                ;   in Loop: Header=BB0_38 Depth=1
	mov	x23, x25
	mov	x25, x26
Lloh86:
	adrp	x26, _M_ZERO@GOTPAGE
Lloh87:
	ldr	x26, [x26, _M_ZERO@GOTPAGEOFF]
	b	LBB0_37
LBB0_45:
	mov	x0, x20
	bl	_lbc_banks_enable
	mov	x0, x21
	bl	_OF_prop_free
	mov	x0, x19
	bl	_bus_generic_attach
	mov	x23, x0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_LBC_DEV_MAX,4,2                ; @LBC_DEV_MAX
	.comm	_LBC85XX_LBCR,4,2               ; @LBC85XX_LBCR
	.comm	_LBC85XX_LCRR,4,2               ; @LBC85XX_LCRR
	.comm	_LBC85XX_LTEDR,4,2              ; @LBC85XX_LTEDR
	.comm	_LBC85XX_LTESR,4,2              ; @LBC85XX_LTESR
	.comm	_LBC85XX_LTEIR,4,2              ; @LBC85XX_LTEIR
	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
	.comm	_RF_SHAREABLE,4,2               ; @RF_SHAREABLE
	.comm	_INTR_TYPE_MISC,4,2             ; @INTR_TYPE_MISC
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_lbc_intr,4,2                   ; @lbc_intr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not activate interrupt\n"

	.comm	_RMAN_ARRAY,4,2                 ; @RMAN_ARRAY
l_.str.1:                               ; @.str.1
	.asciz	"Local Bus Space"

l_.str.2:                               ; @.str.2
	.asciz	"unsupported parent #addr-cells\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
l_.str.3:                               ; @.str.3
	.asciz	"ranges"

l_.str.4:                               ; @.str.4
	.asciz	"could not retrieve 'ranges' property\n"

l_.str.5:                               ; @.str.5
	.asciz	"par addr_cells = %d, addr_cells = %d, size_cells = %d, tuple_size = %d, tuples = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"bank out of range: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"bank = %d, start = %jx, size = %jx\n"

	.comm	_LBCRES_MSEL_GPCM,4,2           ; @LBCRES_MSEL_GPCM
	.comm	_LBCRES_DECC_DISABLED,4,2       ; @LBCRES_DECC_DISABLED
	.comm	_LBCRES_ATOM_DISABLED,4,2       ; @LBCRES_ATOM_DISABLED
	.comm	_M_LBC,4,2                      ; @M_LBC
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
l_.str.8:                               ; @.str.8
	.asciz	"could not set up devinfo\n"

l_.str.9:                               ; @.str.9
	.asciz	"could not process 'reg' property\n"

l_.str.10:                              ; @.str.10
	.asciz	"could not add child: %s\n"

l_.str.11:                              ; @.str.11
	.asciz	"added child name='%s', node=%x\n"

	.no_dead_strip	_lbc_attach
.subsections_via_symbols
