	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_bus_string
_tg3_bus_string:                        ## @tg3_bus_string
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_PCI_EXPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	jmp	LBB0_13
LBB0_2:
	movq	_PCIX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	_TG3PCI_CLOCK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movl	%eax, %r15d
	andl	$31, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	leaq	L_.str.2(%rip), %r12
	cmpl	$7, %r15d
	je	LBB0_8
## %bb.4:
	movq	_GRC_MISC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movq	_GRC_MISC_CFG_BOARD_ID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_GRC_MISC_CFG_BOARD_ID_5704CIOBE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.5:
	cmpl	$7, %r15d
	jae	LBB0_9
## %bb.6:
	movl	$85, %eax
	btl	%r15d, %eax
	jae	LBB0_9
## %bb.7:
	movl	%r15d, %eax
	leaq	l_reltable.tg3_bus_string(%rip), %rcx
	movslq	(%rcx,%rax,4), %r12
	addq	%rcx, %r12
	jmp	LBB0_8
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	movq	_PCI_HIGH_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.5(%rip), %r12
	cmoveq	%rax, %r12
LBB0_8:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strcat
LBB0_9:
	movq	_PCI_32BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.9(%rip), %rsi
LBB0_12:
	movq	%rbx, %rdi
	callq	_strcat
LBB0_13:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXPRESS,4,2                ## @PCI_EXPRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI Express"

	.comm	_PCIX_MODE,4,2                  ## @PCIX_MODE
	.comm	_TG3PCI_CLOCK_CTRL,4,2          ## @TG3PCI_CLOCK_CTRL
L_.str.1:                               ## @.str.1
	.asciz	"PCIX:"

	.comm	_GRC_MISC_CFG,4,2               ## @GRC_MISC_CFG
	.comm	_GRC_MISC_CFG_BOARD_ID_MASK,4,2 ## @GRC_MISC_CFG_BOARD_ID_MASK
	.comm	_GRC_MISC_CFG_BOARD_ID_5704CIOBE,4,2 ## @GRC_MISC_CFG_BOARD_ID_5704CIOBE
L_.str.2:                               ## @.str.2
	.asciz	"133MHz"

L_.str.3:                               ## @.str.3
	.asciz	"33MHz"

L_.str.4:                               ## @.str.4
	.asciz	"50MHz"

L_.str.5:                               ## @.str.5
	.asciz	"66MHz"

L_.str.6:                               ## @.str.6
	.asciz	"100MHz"

L_.str.7:                               ## @.str.7
	.asciz	"PCI:"

	.comm	_PCI_HIGH_SPEED,4,2             ## @PCI_HIGH_SPEED
	.comm	_PCI_32BIT,4,2                  ## @PCI_32BIT
L_.str.8:                               ## @.str.8
	.asciz	":32-bit"

L_.str.9:                               ## @.str.9
	.asciz	":64-bit"

	.no_dead_strip	_tg3_bus_string
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.tg3_bus_string
l_reltable.tg3_bus_string:
	.long	L_.str.3-l_reltable.tg3_bus_string
	.long	L_.str.3-l_reltable.tg3_bus_string
	.long	L_.str.4-l_reltable.tg3_bus_string
	.long	L_.str.3-l_reltable.tg3_bus_string
	.long	L_.str.5-l_reltable.tg3_bus_string
	.long	L_.str.3-l_reltable.tg3_bus_string
	.long	L_.str.6-l_reltable.tg3_bus_string

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_bus_string
_tg3_bus_string:                        ; @tg3_bus_string
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PCI_EXPRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXPRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_flag
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcpy
	b	LBB0_12
LBB0_2:
Lloh5:
	adrp	x8, _PCIX_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIX_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tg3_flag
	cbz	x0, LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _TG3PCI_CLOCK_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TG3PCI_CLOCK_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_tr32
	and	w21, w0, #0x1f
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcpy
	cmp	w21, #7
	b.eq	LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _GRC_MISC_CFG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GRC_MISC_CFG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_tr32
Lloh16:
	adrp	x8, _GRC_MISC_CFG_BOARD_ID_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GRC_MISC_CFG_BOARD_ID_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh19:
	adrp	x9, _GRC_MISC_CFG_BOARD_ID_5704CIOBE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GRC_MISC_CFG_BOARD_ID_5704CIOBE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
LBB0_5:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_strcpy
Lloh26:
	adrp	x8, _PCI_HIGH_SPEED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PCI_HIGH_SPEED@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tg3_flag
Lloh29:
	adrp	x8, l_.str.5@PAGE
Lloh30:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh31:
	adrp	x9, l_.str.3@PAGE
Lloh32:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, eq
LBB0_7:
	mov	x0, x19
	bl	_strcat
LBB0_8:
Lloh33:
	adrp	x8, _PCI_32BIT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PCI_32BIT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tg3_flag
	cbz	x0, LBB0_10
; %bb.9:
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_strcat
LBB0_12:
	mov	x0, x19
	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
LBB0_13:
	cmp	w21, #7
	b.hs	LBB0_8
; %bb.14:
	mov	w8, #85
	lsr	w8, w8, w21
	tbz	w8, #0, LBB0_8
; %bb.15:
Lloh40:
	adrp	x8, l_switch.table.tg3_bus_string@PAGE
Lloh41:
	add	x8, x8, l_switch.table.tg3_bus_string@PAGEOFF
	ldr	x1, [x8, w21, uxtw #3]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXPRESS,4,2                ; @PCI_EXPRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI Express"

	.comm	_PCIX_MODE,4,2                  ; @PCIX_MODE
	.comm	_TG3PCI_CLOCK_CTRL,4,2          ; @TG3PCI_CLOCK_CTRL
l_.str.1:                               ; @.str.1
	.asciz	"PCIX:"

	.comm	_GRC_MISC_CFG,4,2               ; @GRC_MISC_CFG
	.comm	_GRC_MISC_CFG_BOARD_ID_MASK,4,2 ; @GRC_MISC_CFG_BOARD_ID_MASK
	.comm	_GRC_MISC_CFG_BOARD_ID_5704CIOBE,4,2 ; @GRC_MISC_CFG_BOARD_ID_5704CIOBE
l_.str.2:                               ; @.str.2
	.asciz	"133MHz"

l_.str.3:                               ; @.str.3
	.asciz	"33MHz"

l_.str.4:                               ; @.str.4
	.asciz	"50MHz"

l_.str.5:                               ; @.str.5
	.asciz	"66MHz"

l_.str.6:                               ; @.str.6
	.asciz	"100MHz"

l_.str.7:                               ; @.str.7
	.asciz	"PCI:"

	.comm	_PCI_HIGH_SPEED,4,2             ; @PCI_HIGH_SPEED
	.comm	_PCI_32BIT,4,2                  ; @PCI_32BIT
l_.str.8:                               ; @.str.8
	.asciz	":32-bit"

l_.str.9:                               ; @.str.9
	.asciz	":64-bit"

	.no_dead_strip	_tg3_bus_string
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tg3_bus_string
l_switch.table.tg3_bus_string:
	.quad	l_.str.3
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.5
	.quad	l_.str.3
	.quad	l_.str.6

.subsections_via_symbols
