	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfa_ioc_hwinit
_bfa_ioc_hwinit:                        ## @bfa_ioc_hwinit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_bfa_ioc_get_cur_ioc_fwstate
	movl	%eax, %ebx
	testl	%r14d, %r14d
	movq	_BFI_IOC_UNINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovnel	%eax, %ebx
	movq	_BFI_FWBOOT_ENV_OS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	cmpl	%eax, %ebx
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bfa_ioc_fwver_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	_BFI_IOC_INITING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_3
## %bb.5:
	movq	_BFI_IOC_DISABLED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
## %bb.6:
	movq	_BFI_IOC_OP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
LBB0_2:
	movq	_BFI_FWBOOT_TYPE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_bfa_ioc_boot
	movq	_BFA_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_3:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfa_ioc_poll_fwinit            ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_bfa_ioc_msgflush
	movq	_IOCPF_E_FWREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfa_fsm_send_event             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BFI_IOC_UNINIT,4,2             ## @BFI_IOC_UNINIT
	.comm	_BFI_FWBOOT_ENV_OS,4,2          ## @BFI_FWBOOT_ENV_OS
	.comm	_BFI_FWBOOT_TYPE_NORMAL,4,2     ## @BFI_FWBOOT_TYPE_NORMAL
	.comm	_BFA_STATUS_OK,8,3              ## @BFA_STATUS_OK
	.comm	_BFI_IOC_INITING,4,2            ## @BFI_IOC_INITING
	.comm	_BFI_IOC_DISABLED,4,2           ## @BFI_IOC_DISABLED
	.comm	_BFI_IOC_OP,4,2                 ## @BFI_IOC_OP
	.comm	_IOCPF_E_FWREADY,4,2            ## @IOCPF_E_FWREADY
	.no_dead_strip	_bfa_ioc_hwinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfa_ioc_hwinit
_bfa_ioc_hwinit:                        ; @bfa_ioc_hwinit
	.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, x1
	mov	x19, x0
	bl	_bfa_ioc_get_cur_ioc_fwstate
Lloh0:
	adrp	x8, _BFI_IOC_UNINIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BFI_IOC_UNINIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w21, w0, w8, eq
Lloh3:
	adrp	x9, _BFI_FWBOOT_ENV_OS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BFI_FWBOOT_ENV_OS@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x9]
	cmp	w21, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_bfa_ioc_fwver_valid
	cbz	w0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _BFI_IOC_INITING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BFI_IOC_INITING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _BFI_IOC_DISABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BFI_IOC_DISABLED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BFI_IOC_OP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BFI_IOC_OP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_bfa_ioc_msgflush
Lloh15:
	adrp	x8, _IOCPF_E_FWREADY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IOCPF_E_FWREADY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	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_fsm_send_event
LBB0_5:
Lloh18:
	adrp	x8, _BFI_FWBOOT_TYPE_NORMAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BFI_FWBOOT_TYPE_NORMAL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_bfa_ioc_boot
Lloh21:
	adrp	x8, _BFA_STATUS_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BFA_STATUS_OK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_6:
	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_poll_fwinit
LBB0_7:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BFI_IOC_UNINIT,4,2             ; @BFI_IOC_UNINIT
	.comm	_BFI_FWBOOT_ENV_OS,4,2          ; @BFI_FWBOOT_ENV_OS
	.comm	_BFI_FWBOOT_TYPE_NORMAL,4,2     ; @BFI_FWBOOT_TYPE_NORMAL
	.comm	_BFA_STATUS_OK,8,3              ; @BFA_STATUS_OK
	.comm	_BFI_IOC_INITING,4,2            ; @BFI_IOC_INITING
	.comm	_BFI_IOC_DISABLED,4,2           ; @BFI_IOC_DISABLED
	.comm	_BFI_IOC_OP,4,2                 ; @BFI_IOC_OP
	.comm	_IOCPF_E_FWREADY,4,2            ; @IOCPF_E_FWREADY
	.no_dead_strip	_bfa_ioc_hwinit
.subsections_via_symbols
