	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_emac_program
_bnx2x_emac_program:                    ## @bnx2x_emac_program
	.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, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movslq	(%rdi), %rbx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_DP
	movq	_GRCBASE_EMAC0@GOTPCREL(%rip), %rax
	shlq	$10, %rbx
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	_EMAC_REG_EMAC_MODE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	_EMAC_MODE_25G_MODE@GOTPCREL(%rip), %rax
	movq	_EMAC_MODE_PORT_MII_10M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_EMAC_MODE_HALF_DUPLEX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_bnx2x_bits_dis
	movl	(%r12), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_EMAC_MODE_PORT_GMII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EMAC_MODE_25G_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_3:
	movq	_EMAC_MODE_PORT_GMII@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_EMAC_MODE_PORT_MII@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_EMAC_MODE_PORT_MII_10M@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	movq	8(%r12), %rcx
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rsi
	xorl	%r13d, %r13d
	movl	$0, %edx
	cmpq	(%rsi), %rcx
	jne	LBB0_10
## %bb.9:
	movq	_EMAC_MODE_HALF_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_10:
	orl	%eax, %edx
	movq	_GRCBASE_EMAC0@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	_EMAC_REG_EMAC_MODE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_bits_en
	movq	_LED_MODE_OPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_set_led
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting link speed & duplex\n"

	.comm	_GRCBASE_EMAC0,8,3              ## @GRCBASE_EMAC0
	.comm	_EMAC_REG_EMAC_MODE,8,3         ## @EMAC_REG_EMAC_MODE
	.comm	_EMAC_MODE_25G_MODE,4,2         ## @EMAC_MODE_25G_MODE
	.comm	_EMAC_MODE_PORT_MII_10M,4,2     ## @EMAC_MODE_PORT_MII_10M
	.comm	_EMAC_MODE_HALF_DUPLEX,4,2      ## @EMAC_MODE_HALF_DUPLEX
	.comm	_EMAC_MODE_PORT_MII,4,2         ## @EMAC_MODE_PORT_MII
	.comm	_EMAC_MODE_PORT_GMII,4,2        ## @EMAC_MODE_PORT_GMII
L_.str.1:                               ## @.str.1
	.asciz	"Invalid line_speed 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_LED_MODE_OPER,4,2              ## @LED_MODE_OPER
	.no_dead_strip	_bnx2x_emac_program
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_emac_program
_bnx2x_emac_program:                    ; @bnx2x_emac_program
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldrsw	x22, [x0]
Lloh0:
	adrp	x26, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh4:
	adrp	x23, _GRCBASE_EMAC0@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GRCBASE_EMAC0@GOTPAGEOFF]
	ldr	x8, [x23]
	lsl	x22, x22, #10
Lloh6:
	adrp	x24, _EMAC_REG_EMAC_MODE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EMAC_REG_EMAC_MODE@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x8, x8, x22
	add	x1, x8, x9
Lloh8:
	adrp	x27, _EMAC_MODE_25G_MODE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EMAC_MODE_25G_MODE@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh10:
	adrp	x28, _EMAC_MODE_PORT_MII_10M@GOTPAGE
Lloh11:
	ldr	x28, [x28, _EMAC_MODE_PORT_MII_10M@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
Lloh12:
	adrp	x25, _EMAC_MODE_HALF_DUPLEX@GOTPAGE
Lloh13:
	ldr	x25, [x25, _EMAC_MODE_HALF_DUPLEX@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w8, w9
	mov	x0, x21
	bl	_bnx2x_bits_dis
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, lJTI0_0@PAGE
Lloh15:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x27]
Lloh16:
	adrp	x9, _EMAC_MODE_PORT_GMII@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EMAC_MODE_PORT_GMII@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_3:
	ldr	w0, [x26]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
Lloh24:
	adrp	x8, _EMAC_MODE_PORT_GMII@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EMAC_MODE_PORT_GMII@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	b	LBB0_7
LBB0_5:
Lloh27:
	adrp	x8, _EMAC_MODE_PORT_MII@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EMAC_MODE_PORT_MII@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x28]
LBB0_7:
	ldr	x9, [x19, #8]
Lloh30:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh31:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	ldr	w11, [x25]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w2, w9, w8
	ldr	x8, [x23]
	ldr	x9, [x24]
	add	x8, x8, x22
	add	x1, x8, x9
	mov	x0, x21
	bl	_bnx2x_bits_en
Lloh33:
	adrp	x8, _LED_MODE_OPER@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LED_MODE_OPER@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_set_led
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting link speed & duplex\n"

	.comm	_GRCBASE_EMAC0,8,3              ; @GRCBASE_EMAC0
	.comm	_EMAC_REG_EMAC_MODE,8,3         ; @EMAC_REG_EMAC_MODE
	.comm	_EMAC_MODE_25G_MODE,4,2         ; @EMAC_MODE_25G_MODE
	.comm	_EMAC_MODE_PORT_MII_10M,4,2     ; @EMAC_MODE_PORT_MII_10M
	.comm	_EMAC_MODE_HALF_DUPLEX,4,2      ; @EMAC_MODE_HALF_DUPLEX
	.comm	_EMAC_MODE_PORT_MII,4,2         ; @EMAC_MODE_PORT_MII
	.comm	_EMAC_MODE_PORT_GMII,4,2        ; @EMAC_MODE_PORT_GMII
l_.str.1:                               ; @.str.1
	.asciz	"Invalid line_speed 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_LED_MODE_OPER,4,2              ; @LED_MODE_OPER
	.no_dead_strip	_bnx2x_emac_program
.subsections_via_symbols
