	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfa_ioc_fw_ver_patch_cmp
_bfa_ioc_fw_ver_patch_cmp:              ## @bfa_ioc_fw_ver_patch_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_bfa_ioc_fw_ver_compatible
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_BFI_IOC_IMG_VER_BETTER@GOTPCREL(%rip), %r13
	cmpq	%rax, (%r14)
	jle	LBB0_4
LBB0_2:
	movq	%r13, %r12
	jmp	LBB0_11
LBB0_3:
	movq	_BFI_IOC_IMG_VER_INCOMP@GOTPCREL(%rip), %r12
	jmp	LBB0_11
LBB0_4:
	movq	_BFI_IOC_IMG_VER_OLD@GOTPCREL(%rip), %r12
	jl	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_fwhdr_is_ga
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_fwhdr_is_ga
	testq	%r15, %r15
	je	LBB0_8
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_10
LBB0_7:
	movq	_BFI_IOC_IMG_VER_OLD@GOTPCREL(%rip), %r12
	jmp	LBB0_11
LBB0_8:
	testq	%rax, %rax
	jne	LBB0_2
## %bb.12:
	movq	8(%rbx), %rax
	cmpq	%rax, 8(%r14)
	jg	LBB0_2
## %bb.14:
	jl	LBB0_11
## %bb.15:
	movq	16(%rbx), %rax
	movq	%r13, %r12
	cmpq	%rax, 16(%r14)
	jg	LBB0_11
## %bb.16:
	jl	LBB0_7
LBB0_10:
	movq	_BFI_IOC_IMG_VER_SAME@GOTPCREL(%rip), %r12
LBB0_11:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_BETTER,4,2     ## @BFI_IOC_IMG_VER_BETTER
	.comm	_BFI_IOC_IMG_VER_OLD,4,2        ## @BFI_IOC_IMG_VER_OLD
	.comm	_BFI_IOC_IMG_VER_SAME,4,2       ## @BFI_IOC_IMG_VER_SAME
	.no_dead_strip	_bfa_ioc_fw_ver_patch_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfa_ioc_fw_ver_patch_cmp
_bfa_ioc_fw_ver_patch_cmp:              ; @bfa_ioc_fw_ver_patch_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	x20, x1
	mov	x19, x0
	bl	_bfa_ioc_fw_ver_compatible
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.le	LBB0_4
LBB0_2:
Lloh0:
	adrp	x22, _BFI_IOC_IMG_VER_BETTER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BFI_IOC_IMG_VER_BETTER@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x22, _BFI_IOC_IMG_VER_INCOMP@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BFI_IOC_IMG_VER_INCOMP@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh4:
	adrp	x22, _BFI_IOC_IMG_VER_OLD@GOTPAGE
Lloh5:
	ldr	x22, [x22, _BFI_IOC_IMG_VER_OLD@GOTPAGEOFF]
	b.lt	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_fwhdr_is_ga
	mov	x21, x0
	mov	x0, x20
	bl	_fwhdr_is_ga
	cbz	x21, LBB0_8
; %bb.6:
Lloh6:
	adrp	x8, _BFI_IOC_IMG_VER_SAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BFI_IOC_IMG_VER_SAME@GOTPAGEOFF]
	cmp	x0, #0
	csel	x22, x22, x8, eq
LBB0_7:
	ldr	w0, [x22]
	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
LBB0_8:
	cbnz	x0, LBB0_2
; %bb.9:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.gt	LBB0_2
; %bb.10:
Lloh8:
	adrp	x22, _BFI_IOC_IMG_VER_OLD@GOTPAGE
Lloh9:
	ldr	x22, [x22, _BFI_IOC_IMG_VER_OLD@GOTPAGEOFF]
	b.lt	LBB0_7
; %bb.11:
	ldr	x8, [x20, #16]
Lloh10:
	adrp	x9, _BFI_IOC_IMG_VER_BETTER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BFI_IOC_IMG_VER_BETTER@GOTPAGEOFF]
	ldr	x10, [x19, #16]
Lloh12:
	adrp	x11, _BFI_IOC_IMG_VER_SAME@GOTPAGE
Lloh13:
	ldr	x11, [x11, _BFI_IOC_IMG_VER_SAME@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x22, x11, lt
	csel	x22, x9, x8, gt
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BFI_IOC_IMG_VER_INCOMP,4,2     ; @BFI_IOC_IMG_VER_INCOMP
	.comm	_BFI_IOC_IMG_VER_BETTER,4,2     ; @BFI_IOC_IMG_VER_BETTER
	.comm	_BFI_IOC_IMG_VER_OLD,4,2        ; @BFI_IOC_IMG_VER_OLD
	.comm	_BFI_IOC_IMG_VER_SAME,4,2       ; @BFI_IOC_IMG_VER_SAME
	.no_dead_strip	_bfa_ioc_fw_ver_patch_cmp
.subsections_via_symbols
