	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_fw
_load_fw:                               ## @load_fw
	.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, %r12
	movq	_XUSB_CFG_ARU_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARU_RST_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_FPCI_WR4
	movl	$3000, %edi                     ## imm = 0xBB8
	callq	_DELAY
	movq	_XUSB_CSB_MEMPOOL_ILOAD_BASE_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_CSB_RD4
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%r12), %r14d
	movq	_XUSB_FALCON_CPUCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_CSB_RD4
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_14
LBB0_2:
	movl	16(%r12), %edi
	callq	_firmware_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	(%rax), %r15d
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VM_MEMATTR_UNCACHEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%r15d, %edi
	xorl	%edx, %edx
	movq	$-1, %rcx
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_kmem_alloc_contig
	addq	$16, %rsp
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_vtophys
	movl	%eax, %r13d
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	movq	_FIRMWARE_UNLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_firmware_put
	movq	%r14, 8(%r12)
	movl	%r15d, (%r12)
	addl	$20, %r13d
	movq	_XUSB_CSB_MEMPOOL_ILOAD_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_CSB_WR4
	movq	_XUSB_CSB_MEMPOOL_ILOAD_BASE_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_CSB_WR4
	movq	_XUSB_CSB_MEMPOOL_ILOAD_BASE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_CSB_WR4
	movq	_XUSB_CSB_MEMPOOL_APMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_APMAP_BOOTPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_CSB_WR4
	movq	_XUSB_CSB_MEMPOOL_L2IMEMOP_TRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L2IMEMOP_INVALIDATE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_CSB_WR4
	movl	4(%r14), %edi
	movq	_XUSB_CSB_IMEM_BLOCK_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_howmany
	movl	%eax, %r15d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	movl	(%rbx), %esi
	callq	_howmany
	movl	%eax, %ebx
	movq	_XUSB_CSB_MEMPOOL_L2IMEMOP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	callq	_L2IMEMOP_SIZE_OFFSET
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_L2IMEMOP_SIZE_SIZE
	orl	%eax, %r14d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_CSB_WR4
	movq	_XUSB_CSB_MEMPOOL_L2IMEMOP_TRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L2IMEMOP_LOAD_LOCKED_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_CSB_WR4
	movq	_XUSB_FALCON_IMFILLCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_CSB_WR4
	movq	_XUSB_FALCON_IMFILLRNG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_IMFILLRNG1_TAG_LO
	movl	%eax, %r13d
	addl	%r15d, %ebx
	movl	%ebx, %edi
	callq	_IMFILLRNG1_TAG_HI
	orl	%eax, %r13d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_CSB_WR4
	movq	_XUSB_FALCON_DMACTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_CSB_WR4
	movl	$501, %ebx                      ## imm = 0x1F5
	movq	_XUSB_CSB_MEMPOOL_L2IMEMOP_RESULT@GOTPCREL(%rip), %r15
	movq	_L2IMEMOP_RESULT_VLD@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_CSB_RD4
	testl	%eax, (%r14)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$100, %edi
	callq	_DELAY
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_5
## %bb.7:
	movl	4(%r12), %r14d
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_CSB_RD4
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_9:
	movq	_XUSB_FALCON_BOOTVEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %edx
	movq	%r12, %rdi
	callq	_CSB_WR4
	movq	_XUSB_FALCON_CPUCTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CPUCTL_STARTCPU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_CSB_WR4
	movl	$51, %ebx
	movq	_CPUCTL_STOPPED@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_CSB_RD4
	cmpl	(%r14), %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$100, %edi
	callq	_DELAY
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_10
## %bb.12:
	movl	4(%r12), %r14d
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_CSB_RD4
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_13:
	movl	16(%r13), %eax
	movl	%eax, -80(%rbp)
	movq	$0, -88(%rbp)
	leaq	-88(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_clock_ts_to_ct
	movl	4(%r12), %edi
	movl	12(%r13), %edx
	movl	%edx, %eax
	movzwl	%dx, %r8d
	shrl	$24, %edx
	shrl	$15, %eax
	movzbl	%al, %ecx
	movl	-44(%rbp), %r9d
	movl	-48(%rbp), %r10d
	movl	-52(%rbp), %r11d
	movl	-56(%rbp), %r14d
	movl	-64(%rbp), %r15d
	movl	-60(%rbp), %r12d
	subq	$8, %rsp
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	pushq	%r15
	pushq	%r12
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_device_printf
	addq	$48, %rsp
LBB0_14:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XUSB_CFG_ARU_RST,4,2           ## @XUSB_CFG_ARU_RST
	.comm	_ARU_RST_RESET,4,2              ## @ARU_RST_RESET
	.comm	_XUSB_CSB_MEMPOOL_ILOAD_BASE_LO,4,2 ## @XUSB_CSB_MEMPOOL_ILOAD_BASE_LO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XUSB CPU is already loaded, CPUCTL: 0x%08X\n"

	.comm	_XUSB_FALCON_CPUCTL,4,2         ## @XUSB_FALCON_CPUCTL
L_.str.1:                               ## @.str.1
	.asciz	"Cannot read xusb firmware\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VM_MEMATTR_UNCACHEABLE,4,2     ## @VM_MEMATTR_UNCACHEABLE
	.comm	_FIRMWARE_UNLOAD,4,2            ## @FIRMWARE_UNLOAD
	.comm	_XUSB_CSB_MEMPOOL_ILOAD_ATTR,4,2 ## @XUSB_CSB_MEMPOOL_ILOAD_ATTR
	.comm	_XUSB_CSB_MEMPOOL_ILOAD_BASE_HI,4,2 ## @XUSB_CSB_MEMPOOL_ILOAD_BASE_HI
	.comm	_XUSB_CSB_MEMPOOL_APMAP,4,2     ## @XUSB_CSB_MEMPOOL_APMAP
	.comm	_APMAP_BOOTPATH,4,2             ## @APMAP_BOOTPATH
	.comm	_XUSB_CSB_MEMPOOL_L2IMEMOP_TRIG,4,2 ## @XUSB_CSB_MEMPOOL_L2IMEMOP_TRIG
	.comm	_L2IMEMOP_INVALIDATE_ALL,4,2    ## @L2IMEMOP_INVALIDATE_ALL
	.comm	_XUSB_CSB_IMEM_BLOCK_SIZE,4,2   ## @XUSB_CSB_IMEM_BLOCK_SIZE
	.comm	_XUSB_CSB_MEMPOOL_L2IMEMOP_SIZE,4,2 ## @XUSB_CSB_MEMPOOL_L2IMEMOP_SIZE
	.comm	_L2IMEMOP_LOAD_LOCKED_RESULT,4,2 ## @L2IMEMOP_LOAD_LOCKED_RESULT
	.comm	_XUSB_FALCON_IMFILLCTL,4,2      ## @XUSB_FALCON_IMFILLCTL
	.comm	_XUSB_FALCON_IMFILLRNG1,4,2     ## @XUSB_FALCON_IMFILLRNG1
	.comm	_XUSB_FALCON_DMACTL,4,2         ## @XUSB_FALCON_DMACTL
	.comm	_XUSB_CSB_MEMPOOL_L2IMEMOP_RESULT,4,2 ## @XUSB_CSB_MEMPOOL_L2IMEMOP_RESULT
	.comm	_L2IMEMOP_RESULT_VLD,4,2        ## @L2IMEMOP_RESULT_VLD
L_.str.2:                               ## @.str.2
	.asciz	"Timedout while wating for DMA, state: 0x%08X\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_XUSB_FALCON_BOOTVEC,4,2        ## @XUSB_FALCON_BOOTVEC
	.comm	_CPUCTL_STARTCPU,4,2            ## @CPUCTL_STARTCPU
	.comm	_CPUCTL_STOPPED,4,2             ## @CPUCTL_STOPPED
L_.str.3:                               ## @.str.3
	.asciz	"Timedout while wating for FALCON cpu, state: 0x%08X\n"

L_.str.4:                               ## @.str.4
	.asciz	" Falcon firmware version: %02X.%02X.%04X, (%d/%d/%d %d:%02d:%02d UTC)\n"

	.no_dead_strip	_load_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_fw
_load_fw:                               ; @load_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x0
Lloh0:
	adrp	x8, _XUSB_CFG_ARU_RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XUSB_CFG_ARU_RST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ARU_RST_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARU_RST_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_FPCI_WR4
	mov	w0, #3000
	bl	_DELAY
Lloh6:
	adrp	x24, _XUSB_CSB_MEMPOOL_ILOAD_BASE_LO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _XUSB_CSB_MEMPOOL_ILOAD_BASE_LO@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_CSB_RD4
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w20, [x19, #4]
Lloh8:
	adrp	x8, _XUSB_FALCON_CPUCTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XUSB_FALCON_CPUCTL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CSB_RD4
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
LBB0_2:
	bl	_device_printf
	mov	w0, #0
	b	LBB0_15
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_firmware_get
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w22, [x8]
Lloh13:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
Lloh19:
	adrp	x8, _VM_MEMATTR_UNCACHEABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VM_MEMATTR_UNCACHEABLE@GOTPAGEOFF]
Lloh21:
	ldr	w6, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	x3, #-1
	mov	w5, #0
	bl	_kmem_alloc_contig
	mov	x20, x0
	bl	_vtophys
	mov	x23, x0
	ldr	x1, [x21]
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
Lloh22:
	adrp	x8, _FIRMWARE_UNLOAD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FIRMWARE_UNLOAD@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_firmware_put
	str	x20, [x19, #8]
	str	w22, [x19]
	add	w21, w23, #20
Lloh25:
	adrp	x8, _XUSB_CSB_MEMPOOL_ILOAD_ATTR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _XUSB_CSB_MEMPOOL_ILOAD_ATTR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_CSB_WR4
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_CSB_WR4
Lloh28:
	adrp	x8, _XUSB_CSB_MEMPOOL_ILOAD_BASE_HI@GOTPAGE
Lloh29:
	ldr	x8, [x8, _XUSB_CSB_MEMPOOL_ILOAD_BASE_HI@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CSB_WR4
Lloh31:
	adrp	x8, _XUSB_CSB_MEMPOOL_APMAP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _XUSB_CSB_MEMPOOL_APMAP@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _APMAP_BOOTPATH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _APMAP_BOOTPATH@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CSB_WR4
Lloh37:
	adrp	x25, _XUSB_CSB_MEMPOOL_L2IMEMOP_TRIG@GOTPAGE
Lloh38:
	ldr	x25, [x25, _XUSB_CSB_MEMPOOL_L2IMEMOP_TRIG@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh39:
	adrp	x8, _L2IMEMOP_INVALIDATE_ALL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _L2IMEMOP_INVALIDATE_ALL@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CSB_WR4
	ldr	w0, [x20, #4]
Lloh42:
	adrp	x22, _XUSB_CSB_IMEM_BLOCK_SIZE@GOTPAGE
Lloh43:
	ldr	x22, [x22, _XUSB_CSB_IMEM_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_howmany
	mov	x21, x0
	ldr	w0, [x20, #8]
	ldr	w1, [x22]
	bl	_howmany
	mov	x22, x0
Lloh44:
	adrp	x8, _XUSB_CSB_MEMPOOL_L2IMEMOP_SIZE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _XUSB_CSB_MEMPOOL_L2IMEMOP_SIZE@GOTPAGEOFF]
Lloh46:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_L2IMEMOP_SIZE_OFFSET
	mov	x24, x0
	mov	x0, x22
	bl	_L2IMEMOP_SIZE_SIZE
	orr	w2, w0, w24
	mov	x0, x19
	mov	x1, x23
	bl	_CSB_WR4
	ldr	w1, [x25]
Lloh47:
	adrp	x8, _L2IMEMOP_LOAD_LOCKED_RESULT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _L2IMEMOP_LOAD_LOCKED_RESULT@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CSB_WR4
Lloh50:
	adrp	x8, _XUSB_FALCON_IMFILLCTL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _XUSB_FALCON_IMFILLCTL@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_CSB_WR4
Lloh53:
	adrp	x8, _XUSB_FALCON_IMFILLRNG1@GOTPAGE
Lloh54:
	ldr	x8, [x8, _XUSB_FALCON_IMFILLRNG1@GOTPAGEOFF]
Lloh55:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_IMFILLRNG1_TAG_LO
	mov	x24, x0
	add	w0, w22, w21
	bl	_IMFILLRNG1_TAG_HI
	orr	w2, w0, w24
	mov	x0, x19
	mov	x1, x23
	bl	_CSB_WR4
Lloh56:
	adrp	x8, _XUSB_FALCON_DMACTL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _XUSB_FALCON_DMACTL@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_CSB_WR4
	mov	w22, #501
Lloh59:
	adrp	x21, _XUSB_CSB_MEMPOOL_L2IMEMOP_RESULT@GOTPAGE
Lloh60:
	ldr	x21, [x21, _XUSB_CSB_MEMPOOL_L2IMEMOP_RESULT@GOTPAGEOFF]
Lloh61:
	adrp	x23, _L2IMEMOP_RESULT_VLD@GOTPAGE
Lloh62:
	ldr	x23, [x23, _L2IMEMOP_RESULT_VLD@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_CSB_RD4
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #100
	bl	_DELAY
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_5
; %bb.7:
	ldr	w20, [x19, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_CSB_RD4
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh63:
	adrp	x1, l_.str.2@PAGE
Lloh64:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_8:
	ldr	w0, [x19, #4]
Lloh65:
	adrp	x1, l_.str.1@PAGE
Lloh66:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
Lloh67:
	adrp	x8, _ENOENT@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh69:
	adrp	x8, _XUSB_FALCON_BOOTVEC@GOTPAGE
Lloh70:
	ldr	x8, [x8, _XUSB_FALCON_BOOTVEC@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_CSB_WR4
Lloh72:
	adrp	x21, _XUSB_FALCON_CPUCTL@GOTPAGE
Lloh73:
	ldr	x21, [x21, _XUSB_FALCON_CPUCTL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh74:
	adrp	x8, _CPUCTL_STARTCPU@GOTPAGE
Lloh75:
	ldr	x8, [x8, _CPUCTL_STARTCPU@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CSB_WR4
	mov	w22, #51
Lloh77:
	adrp	x23, _CPUCTL_STOPPED@GOTPAGE
Lloh78:
	ldr	x23, [x23, _CPUCTL_STOPPED@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_CSB_RD4
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #100
	bl	_DELAY
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_10
; %bb.12:
	ldr	w20, [x19, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_CSB_RD4
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh79:
	adrp	x1, l_.str.3@PAGE
Lloh80:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x20
	bl	_device_printf
Lloh81:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_16:
	ldr	w8, [x20, #16]
	str	w8, [sp, #80]
	str	xzr, [sp, #72]
	add	x0, sp, #72
	add	x1, sp, #88
	bl	_clock_ts_to_ct
	ldr	w0, [x19, #4]
	ldr	w8, [x20, #12]
	lsr	w9, w8, #24
	ubfx	w10, w8, #15, #8
	and	w8, w8, #0xffff
	ldp	w12, w11, [sp, #104]
	ldp	w14, w13, [sp, #96]
	ldp	w16, w15, [sp, #88]
	stp	x15, x16, [sp, #56]
	stp	x13, x14, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x10, x8, [sp, #8]
Lloh83:
	adrp	x1, l_.str.4@PAGE
Lloh84:
	add	x1, x1, l_.str.4@PAGEOFF
	str	x9, [sp]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_XUSB_CFG_ARU_RST,4,2           ; @XUSB_CFG_ARU_RST
	.comm	_ARU_RST_RESET,4,2              ; @ARU_RST_RESET
	.comm	_XUSB_CSB_MEMPOOL_ILOAD_BASE_LO,4,2 ; @XUSB_CSB_MEMPOOL_ILOAD_BASE_LO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XUSB CPU is already loaded, CPUCTL: 0x%08X\n"

	.comm	_XUSB_FALCON_CPUCTL,4,2         ; @XUSB_FALCON_CPUCTL
l_.str.1:                               ; @.str.1
	.asciz	"Cannot read xusb firmware\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VM_MEMATTR_UNCACHEABLE,4,2     ; @VM_MEMATTR_UNCACHEABLE
	.comm	_FIRMWARE_UNLOAD,4,2            ; @FIRMWARE_UNLOAD
	.comm	_XUSB_CSB_MEMPOOL_ILOAD_ATTR,4,2 ; @XUSB_CSB_MEMPOOL_ILOAD_ATTR
	.comm	_XUSB_CSB_MEMPOOL_ILOAD_BASE_HI,4,2 ; @XUSB_CSB_MEMPOOL_ILOAD_BASE_HI
	.comm	_XUSB_CSB_MEMPOOL_APMAP,4,2     ; @XUSB_CSB_MEMPOOL_APMAP
	.comm	_APMAP_BOOTPATH,4,2             ; @APMAP_BOOTPATH
	.comm	_XUSB_CSB_MEMPOOL_L2IMEMOP_TRIG,4,2 ; @XUSB_CSB_MEMPOOL_L2IMEMOP_TRIG
	.comm	_L2IMEMOP_INVALIDATE_ALL,4,2    ; @L2IMEMOP_INVALIDATE_ALL
	.comm	_XUSB_CSB_IMEM_BLOCK_SIZE,4,2   ; @XUSB_CSB_IMEM_BLOCK_SIZE
	.comm	_XUSB_CSB_MEMPOOL_L2IMEMOP_SIZE,4,2 ; @XUSB_CSB_MEMPOOL_L2IMEMOP_SIZE
	.comm	_L2IMEMOP_LOAD_LOCKED_RESULT,4,2 ; @L2IMEMOP_LOAD_LOCKED_RESULT
	.comm	_XUSB_FALCON_IMFILLCTL,4,2      ; @XUSB_FALCON_IMFILLCTL
	.comm	_XUSB_FALCON_IMFILLRNG1,4,2     ; @XUSB_FALCON_IMFILLRNG1
	.comm	_XUSB_FALCON_DMACTL,4,2         ; @XUSB_FALCON_DMACTL
	.comm	_XUSB_CSB_MEMPOOL_L2IMEMOP_RESULT,4,2 ; @XUSB_CSB_MEMPOOL_L2IMEMOP_RESULT
	.comm	_L2IMEMOP_RESULT_VLD,4,2        ; @L2IMEMOP_RESULT_VLD
l_.str.2:                               ; @.str.2
	.asciz	"Timedout while wating for DMA, state: 0x%08X\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_XUSB_FALCON_BOOTVEC,4,2        ; @XUSB_FALCON_BOOTVEC
	.comm	_CPUCTL_STARTCPU,4,2            ; @CPUCTL_STARTCPU
	.comm	_CPUCTL_STOPPED,4,2             ; @CPUCTL_STOPPED
l_.str.3:                               ; @.str.3
	.asciz	"Timedout while wating for FALCON cpu, state: 0x%08X\n"

l_.str.4:                               ; @.str.4
	.asciz	" Falcon firmware version: %02X.%02X.%04X, (%d/%d/%d %d:%02d:%02d UTC)\n"

	.no_dead_strip	_load_fw
.subsections_via_symbols
