	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfa_ioc_boot
_bfa_ioc_boot:                          ## @bfa_ioc_boot
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_ioc_boots@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bfa_ioc_stats
	movq	%rbx, %rdi
	callq	_bfa_ioc_pll_init
	movq	_BFA_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_BFI_FWBOOT_TYPE_MEMTEST@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_BFI_IOC_MEMTEST@GOTPCREL(%rip), %r12
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_BFI_IOC_INITING@GOTPCREL(%rip), %r12
LBB0_4:
	movl	(%r12), %edi
	movl	4(%rbx), %esi
	callq	_writel
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_writel
	movq	%rbx, %rdi
	callq	_bfa_ioc_msgflush
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_bfa_ioc_download_fw
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfa_ioc_lpu_start              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ioc_boots,4,2                  ## @ioc_boots
	.comm	_BFA_STATUS_OK,8,3              ## @BFA_STATUS_OK
	.comm	_BFI_FWBOOT_TYPE_MEMTEST,4,2    ## @BFI_FWBOOT_TYPE_MEMTEST
	.comm	_BFI_IOC_MEMTEST,4,2            ## @BFI_IOC_MEMTEST
	.comm	_BFI_IOC_INITING,4,2            ## @BFI_IOC_INITING
	.no_dead_strip	_bfa_ioc_boot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfa_ioc_boot
_bfa_ioc_boot:                          ; @bfa_ioc_boot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ioc_boots@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ioc_boots@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bfa_ioc_stats
	mov	x0, x19
	bl	_bfa_ioc_pll_init
Lloh3:
	adrp	x8, _BFA_STATUS_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BFA_STATUS_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _BFI_FWBOOT_TYPE_MEMTEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BFI_FWBOOT_TYPE_MEMTEST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BFI_IOC_INITING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BFI_IOC_INITING@GOTPAGEOFF]
Lloh11:
	adrp	x10, _BFI_IOC_MEMTEST@GOTPAGE
Lloh12:
	ldr	x10, [x10, _BFI_IOC_MEMTEST@GOTPAGEOFF]
	cmp	w8, w21
	csel	x22, x10, x9, eq
	ldr	w0, [x22]
	ldr	w1, [x19, #4]
	bl	_writel
	ldr	w0, [x22]
	ldr	w1, [x19]
	bl	_writel
	mov	x0, x19
	bl	_bfa_ioc_msgflush
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_bfa_ioc_download_fw
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bfa_ioc_lpu_start
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ioc_boots,4,2                  ; @ioc_boots
	.comm	_BFA_STATUS_OK,8,3              ; @BFA_STATUS_OK
	.comm	_BFI_FWBOOT_TYPE_MEMTEST,4,2    ; @BFI_FWBOOT_TYPE_MEMTEST
	.comm	_BFI_IOC_MEMTEST,4,2            ; @BFI_IOC_MEMTEST
	.comm	_BFI_IOC_INITING,4,2            ; @BFI_IOC_INITING
	.no_dead_strip	_bfa_ioc_boot
.subsections_via_symbols
