	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfa_nw_ioc_fwver_cmp           ## -- Begin function bfa_nw_ioc_fwver_cmp
	.p2align	4, 0x90
_bfa_nw_ioc_fwver_cmp:                  ## @bfa_nw_ioc_fwver_cmp
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_bfa_ioc_asic_gen
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_bfa_cb_image_get_chunk
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_bfa_ioc_fw_ver_patch_cmp
	movl	%eax, %ebx
	movq	_BFI_IOC_IMG_VER_INCOMP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.1:
	movq	_BFI_IOC_IMG_VER_OLD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_bfa_ioc_flash_fwver_cmp
	movq	_BFI_IOC_IMG_VER_BETTER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.3:
	movq	_BFI_IOC_IMG_VER_SAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %r14d
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.4:
	xorl	%r14d, %r14d
	cmpl	%ecx, %ebx
	sete	%r14b
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BFI_IOC_IMG_VER_INCOMP,4,2     ## @BFI_IOC_IMG_VER_INCOMP
	.comm	_BFI_IOC_IMG_VER_OLD,4,2        ## @BFI_IOC_IMG_VER_OLD
	.comm	_BFI_IOC_IMG_VER_BETTER,4,2     ## @BFI_IOC_IMG_VER_BETTER
	.comm	_BFI_IOC_IMG_VER_SAME,4,2       ## @BFI_IOC_IMG_VER_SAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfa_nw_ioc_fwver_cmp           ; -- Begin function bfa_nw_ioc_fwver_cmp
	.p2align	2
_bfa_nw_ioc_fwver_cmp:                  ; @bfa_nw_ioc_fwver_cmp
	.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	x19, x1
	mov	x20, x0
	bl	_bfa_ioc_asic_gen
	mov	w1, #0
	bl	_bfa_cb_image_get_chunk
	mov	x1, x19
	bl	_bfa_ioc_fw_ver_patch_cmp
	mov	x21, x0
	mov	w0, #0
Lloh0:
	adrp	x8, _BFI_IOC_IMG_VER_INCOMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BFI_IOC_IMG_VER_INCOMP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BFI_IOC_IMG_VER_OLD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BFI_IOC_IMG_VER_OLD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_bfa_ioc_flash_fwver_cmp
Lloh6:
	adrp	x8, _BFI_IOC_IMG_VER_BETTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BFI_IOC_IMG_VER_BETTER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _BFI_IOC_IMG_VER_SAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BFI_IOC_IMG_VER_SAME@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	cmp	w21, w8
	cset	w0, eq
LBB0_6:
	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	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BFI_IOC_IMG_VER_INCOMP,4,2     ; @BFI_IOC_IMG_VER_INCOMP
	.comm	_BFI_IOC_IMG_VER_OLD,4,2        ; @BFI_IOC_IMG_VER_OLD
	.comm	_BFI_IOC_IMG_VER_BETTER,4,2     ; @BFI_IOC_IMG_VER_BETTER
	.comm	_BFI_IOC_IMG_VER_SAME,4,2       ; @BFI_IOC_IMG_VER_SAME
.subsections_via_symbols
