	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_get_emac_base
_bnx2x_get_emac_base:                   ## @bnx2x_get_emac_base
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rcx, %rsi
	jmpq	*%rsi
LBB0_6:
	testl	%edx, %edx
	jne	LBB0_7
	jmp	LBB0_3
LBB0_4:
	movq	_NIG_REG_PORT_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_REG_RD
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	movq	_GRCBASE_EMAC0@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_NIG_REG_PORT_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_REG_RD
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:
	movq	_GRCBASE_EMAC1@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	popq	%rbp
	retq
LBB0_5:
	testl	%edx, %edx
	je	LBB0_7
	jmp	LBB0_3
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_NIG_REG_PORT_SWAP,4,2          ## @NIG_REG_PORT_SWAP
	.comm	_GRCBASE_EMAC1,4,2              ## @GRCBASE_EMAC1
	.comm	_GRCBASE_EMAC0,4,2              ## @GRCBASE_EMAC0
	.no_dead_strip	_bnx2x_get_emac_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_get_emac_base
_bnx2x_get_emac_base:                   ; @bnx2x_get_emac_base
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	mov	w0, #0
	sub	w9, w1, #128
	cmp	w9, #4
	b.hi	LBB0_10
; %bb.1:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x8, _GRCBASE_EMAC0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRCBASE_EMAC0@GOTPAGEOFF]
Lloh4:
	adrp	x9, _GRCBASE_EMAC1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GRCBASE_EMAC1@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x9, _NIG_REG_PORT_SWAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NIG_REG_PORT_SWAP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_REG_RD
	cbz	w0, LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _GRCBASE_EMAC0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GRCBASE_EMAC0@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x9, _NIG_REG_PORT_SWAP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NIG_REG_PORT_SWAP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_REG_RD
	cbz	w0, LBB0_4
LBB0_6:
Lloh14:
	adrp	x8, _GRCBASE_EMAC1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GRCBASE_EMAC1@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _GRCBASE_EMAC1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GRCBASE_EMAC1@GOTPAGEOFF]
Lloh18:
	adrp	x9, _GRCBASE_EMAC0@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GRCBASE_EMAC0@GOTPAGEOFF]
LBB0_8:
	cmp	w2, #0
	csel	x8, x9, x8, eq
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_NIG_REG_PORT_SWAP,4,2          ; @NIG_REG_PORT_SWAP
	.comm	_GRCBASE_EMAC1,4,2              ; @GRCBASE_EMAC1
	.comm	_GRCBASE_EMAC0,4,2              ; @GRCBASE_EMAC0
	.no_dead_strip	_bnx2x_get_emac_base
.subsections_via_symbols
