	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_fw_matches_chip
_t4_fw_matches_chip:                    ## @t4_fw_matches_chip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_is_t4
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rcx
	movq	_FW_HDR_CHIP_T4@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_7
LBB0_2:
	movl	(%rbx), %edi
	callq	_is_t5
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rcx
	movq	_FW_HDR_CHIP_T5@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_7
LBB0_4:
	movl	(%rbx), %edi
	callq	_is_t6
	movq	(%r14), %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_FW_HDR_CHIP_T6@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpq	(%rcx), %r14
	je	LBB0_7
LBB0_6:
	movl	(%rbx), %edi
	movl	4(%rbx), %ebx
	callq	_CHELSIO_CHIP_VERSION
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_dev_err
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_HDR_CHIP_T4,8,3             ## @FW_HDR_CHIP_T4
	.comm	_FW_HDR_CHIP_T5,8,3             ## @FW_HDR_CHIP_T5
	.comm	_FW_HDR_CHIP_T6,8,3             ## @FW_HDR_CHIP_T6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW image (%d) is not suitable for this adapter (%d)\n"

	.no_dead_strip	_t4_fw_matches_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_fw_matches_chip
_t4_fw_matches_chip:                    ; @t4_fw_matches_chip
	.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
	ldr	w0, [x0]
	bl	_is_t4
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FW_HDR_CHIP_T4@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FW_HDR_CHIP_T4@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_2:
	ldr	w0, [x19]
	bl	_is_t5
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _FW_HDR_CHIP_T5@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FW_HDR_CHIP_T5@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_4:
	ldr	w0, [x19]
	bl	_is_t6
	ldr	x20, [x20]
	cbz	x0, LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _FW_HDR_CHIP_T6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_HDR_CHIP_T6@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_7
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	ldp	w0, w21, [x19]
	bl	_CHELSIO_CHIP_VERSION
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
	mov	w0, #0
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_HDR_CHIP_T4,8,3             ; @FW_HDR_CHIP_T4
	.comm	_FW_HDR_CHIP_T5,8,3             ; @FW_HDR_CHIP_T5
	.comm	_FW_HDR_CHIP_T6,8,3             ; @FW_HDR_CHIP_T6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW image (%d) is not suitable for this adapter (%d)\n"

	.no_dead_strip	_t4_fw_matches_chip
.subsections_via_symbols
