	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_get_regs_len                ## -- Begin function t4_get_regs_len
	.p2align	4, 0x90
_t4_get_regs_len:                       ## @t4_get_regs_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_CHELSIO_CHIP_VERSION
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movq	_T5_REGMAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_1:
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.2:
	movq	_T4_REGMAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T4_REGMAP_SIZE,4,2             ## @T4_REGMAP_SIZE
	.comm	_T5_REGMAP_SIZE,4,2             ## @T5_REGMAP_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported chip version %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_get_regs_len                ; -- Begin function t4_get_regs_len
	.p2align	2
_t4_get_regs_len:                       ; @t4_get_regs_len
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_CHELSIO_CHIP_VERSION
	sub	w8, w0, #128
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _T5_REGMAP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T5_REGMAP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	mov	x2, x0
	cmp	w0, #130
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _T4_REGMAP_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _T4_REGMAP_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_T4_REGMAP_SIZE,4,2             ; @T4_REGMAP_SIZE
	.comm	_T5_REGMAP_SIZE,4,2             ; @T5_REGMAP_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported chip version %d\n"

.subsections_via_symbols
