	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_set_mac_link
_bnx2_set_mac_link:                     ## @bnx2_set_mac_link
	.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	%rdi, %r15
	movq	_BNX2_EMAC_TX_LENGTHS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$9760, %edx                     ## imm = 0x2620
	callq	_BNX2_WR
	cmpq	$0, 24(%r15)
	je	LBB0_4
## %bb.1:
	cmpl	$129, (%r15)
	jne	LBB0_4
## %bb.2:
	movq	8(%r15), %rax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$9983, %edx                     ## imm = 0x26FF
	callq	_BNX2_WR
LBB0_4:
	movq	_BNX2_EMAC_MODE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_BNX2_RD
	movq	_BNX2_EMAC_MODE_PORT@GOTPCREL(%rip), %rcx
	movq	_BNX2_EMAC_MODE_HALF_DUPLEX@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	orl	(%rcx), %ebx
	movq	_BNX2_EMAC_MODE_MAC_LOOP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_BNX2_EMAC_MODE_FORCE_LINK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_BNX2_EMAC_MODE_25G_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %ebx
	notl	%ebx
	andl	%eax, %ebx
	cmpq	$0, 24(%r15)
	je	LBB0_11
## %bb.5:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_13
## %bb.6:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_10:
	orl	%ecx, %ebx
LBB0_11:
	movq	_BNX2_EMAC_MODE_PORT_GMII@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	%r15, %rdi
	callq	_BNX2_CHIP
	movq	_BNX2_CHIP_5706@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_9:
	movq	_BNX2_EMAC_MODE_PORT_MII@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_BNX2_EMAC_MODE_PORT_MII_10M@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %ebx
LBB0_13:
	movq	8(%r15), %rax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movl	(%r12), %edx
LBB0_15:
	orl	%ebx, %edx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_BNX2_WR
	movq	_BNX2_EMAC_RX_MODE_FLOW_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	notl	%edx
	movl	16(%r15), %ecx
	andl	%ecx, %edx
	movl	%edx, 16(%r15)
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 20(%r15)
	je	LBB0_17
## %bb.16:
	orl	%eax, %ecx
	movl	%ecx, 16(%r15)
	movl	%ecx, %edx
LBB0_17:
	movq	_BNX2_EMAC_RX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BNX2_WR
	movq	_BNX2_EMAC_TX_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_BNX2_RD
	movq	_BNX2_EMAC_TX_MODE_FLOW_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	20(%r15), %esi
	orl	%eax, %edx
	testl	%esi, %esi
	cmovel	%ecx, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_BNX2_WR
	movq	_BNX2_EMAC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BNX2_EMAC_STATUS_LINK_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_BNX2_WR
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2_init_all_rx_contexts      ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_BNX2_EMAC_TX_LENGTHS,4,2       ## @BNX2_EMAC_TX_LENGTHS
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_BNX2_EMAC_MODE,4,2             ## @BNX2_EMAC_MODE
	.comm	_BNX2_EMAC_MODE_PORT,4,2        ## @BNX2_EMAC_MODE_PORT
	.comm	_BNX2_EMAC_MODE_HALF_DUPLEX,4,2 ## @BNX2_EMAC_MODE_HALF_DUPLEX
	.comm	_BNX2_EMAC_MODE_MAC_LOOP,4,2    ## @BNX2_EMAC_MODE_MAC_LOOP
	.comm	_BNX2_EMAC_MODE_FORCE_LINK,4,2  ## @BNX2_EMAC_MODE_FORCE_LINK
	.comm	_BNX2_EMAC_MODE_25G_MODE,4,2    ## @BNX2_EMAC_MODE_25G_MODE
	.comm	_BNX2_CHIP_5706,4,2             ## @BNX2_CHIP_5706
	.comm	_BNX2_EMAC_MODE_PORT_MII_10M,4,2 ## @BNX2_EMAC_MODE_PORT_MII_10M
	.comm	_BNX2_EMAC_MODE_PORT_MII,4,2    ## @BNX2_EMAC_MODE_PORT_MII
	.comm	_BNX2_EMAC_MODE_PORT_GMII,4,2   ## @BNX2_EMAC_MODE_PORT_GMII
	.comm	_BNX2_EMAC_RX_MODE_FLOW_EN,4,2  ## @BNX2_EMAC_RX_MODE_FLOW_EN
	.comm	_FLOW_CTRL_RX,4,2               ## @FLOW_CTRL_RX
	.comm	_BNX2_EMAC_RX_MODE,4,2          ## @BNX2_EMAC_RX_MODE
	.comm	_BNX2_EMAC_TX_MODE,4,2          ## @BNX2_EMAC_TX_MODE
	.comm	_BNX2_EMAC_TX_MODE_FLOW_EN,4,2  ## @BNX2_EMAC_TX_MODE_FLOW_EN
	.comm	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
	.comm	_BNX2_EMAC_STATUS,4,2           ## @BNX2_EMAC_STATUS
	.comm	_BNX2_EMAC_STATUS_LINK_CHANGE,4,2 ## @BNX2_EMAC_STATUS_LINK_CHANGE
	.no_dead_strip	_bnx2_set_mac_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_set_mac_link
_bnx2_set_mac_link:                     ; @bnx2_set_mac_link
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _BNX2_EMAC_TX_LENGTHS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BNX2_EMAC_TX_LENGTHS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #9760
	bl	_BNX2_WR
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x20, _DUPLEX_HALF@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DUPLEX_HALF@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #9983
	bl	_BNX2_WR
LBB0_4:
Lloh4:
	adrp	x21, _BNX2_EMAC_MODE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _BNX2_EMAC_MODE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_BNX2_RD
Lloh6:
	adrp	x8, _BNX2_EMAC_MODE_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2_EMAC_MODE_PORT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x22, _BNX2_EMAC_MODE_HALF_DUPLEX@GOTPAGE
Lloh10:
	ldr	x22, [x22, _BNX2_EMAC_MODE_HALF_DUPLEX@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _BNX2_EMAC_MODE_MAC_LOOP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BNX2_EMAC_MODE_MAC_LOOP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _BNX2_EMAC_MODE_FORCE_LINK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BNX2_EMAC_MODE_FORCE_LINK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w9, w8, w9
Lloh17:
	adrp	x8, _BNX2_EMAC_MODE_25G_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BNX2_EMAC_MODE_25G_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w9, w9, w8
	bic	w23, w0, w9
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_8
; %bb.5:
	ldr	w9, [x19]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_13
; %bb.6:
Lloh20:
	adrp	x10, lJTI0_0@PAGE
Lloh21:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
	orr	w23, w23, w8
LBB0_8:
Lloh22:
	adrp	x8, _BNX2_EMAC_MODE_PORT_GMII@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BNX2_EMAC_MODE_PORT_GMII@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_BNX2_CHIP
Lloh24:
	adrp	x8, _BNX2_CHIP_5706@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BNX2_CHIP_5706@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_10:
Lloh27:
	adrp	x8, _BNX2_EMAC_MODE_PORT_MII@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BNX2_EMAC_MODE_PORT_MII@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh29:
	adrp	x8, _BNX2_EMAC_MODE_PORT_MII_10M@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BNX2_EMAC_MODE_PORT_MII_10M@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_13:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	ldr	w10, [x22]
	cmp	x8, x9
	csel	w8, w10, wzr, eq
	orr	w2, w8, w23
	ldr	w1, [x21]
	mov	x0, x19
	bl	_BNX2_WR
Lloh31:
	adrp	x8, _BNX2_EMAC_RX_MODE_FLOW_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BNX2_EMAC_RX_MODE_FLOW_EN@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #16]
	bic	w2, w9, w8
	str	w2, [x19, #16]
Lloh34:
	adrp	x11, _FLOW_CTRL_RX@GOTPAGE
Lloh35:
	ldr	x11, [x11, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh36:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_15
; %bb.14:
	orr	w2, w9, w8
	str	w2, [x19, #16]
LBB0_15:
Lloh37:
	adrp	x8, _BNX2_EMAC_RX_MODE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BNX2_EMAC_RX_MODE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BNX2_WR
Lloh40:
	adrp	x20, _BNX2_EMAC_TX_MODE@GOTPAGE
Lloh41:
	ldr	x20, [x20, _BNX2_EMAC_TX_MODE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_BNX2_RD
Lloh42:
	adrp	x8, _BNX2_EMAC_TX_MODE_FLOW_EN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BNX2_EMAC_TX_MODE_FLOW_EN@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	bic	w9, w0, w8
Lloh45:
	adrp	x10, _FLOW_CTRL_TX@GOTPAGE
Lloh46:
	ldr	x10, [x10, _FLOW_CTRL_TX@GOTPAGEOFF]
	ldr	w11, [x19, #20]
Lloh47:
	ldr	w10, [x10]
	orr	w8, w8, w0
	tst	w10, w11
	csel	w2, w9, w8, eq
	ldr	w1, [x20]
	mov	x0, x19
	bl	_BNX2_WR
Lloh48:
	adrp	x8, _BNX2_EMAC_STATUS@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BNX2_EMAC_STATUS@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, _BNX2_EMAC_STATUS_LINK_CHANGE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _BNX2_EMAC_STATUS_LINK_CHANGE@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_BNX2_WR
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bnx2_init_all_rx_contexts
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
                                        ; -- End function
	.comm	_BNX2_EMAC_TX_LENGTHS,4,2       ; @BNX2_EMAC_TX_LENGTHS
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_BNX2_EMAC_MODE,4,2             ; @BNX2_EMAC_MODE
	.comm	_BNX2_EMAC_MODE_PORT,4,2        ; @BNX2_EMAC_MODE_PORT
	.comm	_BNX2_EMAC_MODE_HALF_DUPLEX,4,2 ; @BNX2_EMAC_MODE_HALF_DUPLEX
	.comm	_BNX2_EMAC_MODE_MAC_LOOP,4,2    ; @BNX2_EMAC_MODE_MAC_LOOP
	.comm	_BNX2_EMAC_MODE_FORCE_LINK,4,2  ; @BNX2_EMAC_MODE_FORCE_LINK
	.comm	_BNX2_EMAC_MODE_25G_MODE,4,2    ; @BNX2_EMAC_MODE_25G_MODE
	.comm	_BNX2_CHIP_5706,4,2             ; @BNX2_CHIP_5706
	.comm	_BNX2_EMAC_MODE_PORT_MII_10M,4,2 ; @BNX2_EMAC_MODE_PORT_MII_10M
	.comm	_BNX2_EMAC_MODE_PORT_MII,4,2    ; @BNX2_EMAC_MODE_PORT_MII
	.comm	_BNX2_EMAC_MODE_PORT_GMII,4,2   ; @BNX2_EMAC_MODE_PORT_GMII
	.comm	_BNX2_EMAC_RX_MODE_FLOW_EN,4,2  ; @BNX2_EMAC_RX_MODE_FLOW_EN
	.comm	_FLOW_CTRL_RX,4,2               ; @FLOW_CTRL_RX
	.comm	_BNX2_EMAC_RX_MODE,4,2          ; @BNX2_EMAC_RX_MODE
	.comm	_BNX2_EMAC_TX_MODE,4,2          ; @BNX2_EMAC_TX_MODE
	.comm	_BNX2_EMAC_TX_MODE_FLOW_EN,4,2  ; @BNX2_EMAC_TX_MODE_FLOW_EN
	.comm	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
	.comm	_BNX2_EMAC_STATUS,4,2           ; @BNX2_EMAC_STATUS
	.comm	_BNX2_EMAC_STATUS_LINK_CHANGE,4,2 ; @BNX2_EMAC_STATUS_LINK_CHANGE
	.no_dead_strip	_bnx2_set_mac_link
.subsections_via_symbols
