	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_get_bus_info_generic     ## -- Begin function fm10k_get_bus_info_generic
	.p2align	4, 0x90
_fm10k_get_bus_info_generic:            ## @fm10k_get_bus_info_generic
	.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	%rdi, %rbx
	movq	_FM10K_PCIE_LINK_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fm10k_read_pci_cfg_word
	movq	_FM10K_PCIE_LINK_WIDTH@GOTPCREL(%rip), %rdx
	movl	%eax, %ecx
	andl	(%rdx), %ecx
	addl	$-128, %ecx
	leaq	l_switch.table.fm10k_get_bus_info_generic.3(%rip), %r12
	cmpl	$3, %ecx
	ja	LBB0_1
## %bb.2:
	movslq	%ecx, %rcx
	movq	(%r12,%rcx,8), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_fm10k_bus_width_unknown@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rcx), %rcx
	movq	%rcx, 40(%rbx)
	movq	_FM10K_PCIE_LINK_SPEED@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	andl	%eax, %ecx
	addl	$-132, %ecx
	leaq	l_switch.table.fm10k_get_bus_info_generic.4(%rip), %rdx
	cmpl	$2, %ecx
	ja	LBB0_4
## %bb.5:
	movslq	%ecx, %rax
	movq	%rdx, %r13
	movq	(%rdx,%rax,8), %rax
	jmp	LBB0_6
LBB0_4:
	movq	%rdx, %r13
	movq	_fm10k_bus_speed_unknown@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_FM10K_PCIE_DEV_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fm10k_read_pci_cfg_word
	movq	_FM10K_PCIE_DEV_CAP_PAYLOAD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-138, %eax
	leaq	l_switch.table.fm10k_get_bus_info_generic.5(%rip), %rcx
	cmpl	$2, %eax
	ja	LBB0_7
## %bb.8:
	cltq
	movq	%rcx, %r15
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_9
LBB0_7:
	movq	%rcx, %r15
	movq	_fm10k_bus_payload_unknown@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_FM10K_PCIE_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fm10k_read_pci_cfg_word
	movl	%eax, %ecx
	movq	_FM10K_PCIE_LINK_WIDTH@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_10
## %bb.11:
	movslq	%ecx, %rcx
	movq	(%r12,%rcx,8), %rcx
	jmp	LBB0_12
LBB0_10:
	movq	_fm10k_bus_width_unknown@GOTPCREL(%rip), %rcx
LBB0_12:
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
	movl	(%r14), %ecx
	andl	%eax, %ecx
	addl	$-132, %ecx
	cmpl	$2, %ecx
	ja	LBB0_13
## %bb.14:
	movslq	%ecx, %rax
	movq	(%r13,%rax,8), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_fm10k_bus_speed_unknown@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_FM10K_PCIE_DEV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fm10k_read_pci_cfg_word
	movq	_FM10K_PCIE_DEV_CTRL_PAYLOAD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-135, %eax
	cmpl	$2, %eax
	ja	LBB0_16
## %bb.17:
	cltq
	movq	(%r15,%rax,8), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_fm10k_bus_payload_unknown@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_PCIE_LINK_CAP,4,2        ## @FM10K_PCIE_LINK_CAP
	.comm	_FM10K_PCIE_LINK_WIDTH,4,2      ## @FM10K_PCIE_LINK_WIDTH
	.comm	_fm10k_bus_width_pcie_x1,8,3    ## @fm10k_bus_width_pcie_x1
	.comm	_fm10k_bus_width_pcie_x2,8,3    ## @fm10k_bus_width_pcie_x2
	.comm	_fm10k_bus_width_pcie_x4,8,3    ## @fm10k_bus_width_pcie_x4
	.comm	_fm10k_bus_width_pcie_x8,8,3    ## @fm10k_bus_width_pcie_x8
	.comm	_fm10k_bus_width_unknown,8,3    ## @fm10k_bus_width_unknown
	.comm	_FM10K_PCIE_LINK_SPEED,4,2      ## @FM10K_PCIE_LINK_SPEED
	.comm	_fm10k_bus_speed_2500,8,3       ## @fm10k_bus_speed_2500
	.comm	_fm10k_bus_speed_5000,8,3       ## @fm10k_bus_speed_5000
	.comm	_fm10k_bus_speed_8000,8,3       ## @fm10k_bus_speed_8000
	.comm	_fm10k_bus_speed_unknown,8,3    ## @fm10k_bus_speed_unknown
	.comm	_FM10K_PCIE_DEV_CAP,4,2         ## @FM10K_PCIE_DEV_CAP
	.comm	_FM10K_PCIE_DEV_CAP_PAYLOAD,4,2 ## @FM10K_PCIE_DEV_CAP_PAYLOAD
	.comm	_fm10k_bus_payload_128,8,3      ## @fm10k_bus_payload_128
	.comm	_fm10k_bus_payload_256,8,3      ## @fm10k_bus_payload_256
	.comm	_fm10k_bus_payload_512,8,3      ## @fm10k_bus_payload_512
	.comm	_fm10k_bus_payload_unknown,8,3  ## @fm10k_bus_payload_unknown
	.comm	_FM10K_PCIE_LINK_STATUS,4,2     ## @FM10K_PCIE_LINK_STATUS
	.comm	_FM10K_PCIE_DEV_CTRL,4,2        ## @FM10K_PCIE_DEV_CTRL
	.comm	_FM10K_PCIE_DEV_CTRL_PAYLOAD,4,2 ## @FM10K_PCIE_DEV_CTRL_PAYLOAD
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.fm10k_get_bus_info_generic.3
l_switch.table.fm10k_get_bus_info_generic.3:
	.quad	_fm10k_bus_width_pcie_x8
	.quad	_fm10k_bus_width_pcie_x4
	.quad	_fm10k_bus_width_pcie_x2
	.quad	_fm10k_bus_width_pcie_x1

	.p2align	3                               ## @switch.table.fm10k_get_bus_info_generic.4
l_switch.table.fm10k_get_bus_info_generic.4:
	.quad	_fm10k_bus_speed_8000
	.quad	_fm10k_bus_speed_5000
	.quad	_fm10k_bus_speed_2500

	.p2align	3                               ## @switch.table.fm10k_get_bus_info_generic.5
l_switch.table.fm10k_get_bus_info_generic.5:
	.quad	_fm10k_bus_payload_512
	.quad	_fm10k_bus_payload_256
	.quad	_fm10k_bus_payload_128

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_get_bus_info_generic     ; -- Begin function fm10k_get_bus_info_generic
	.p2align	2
_fm10k_get_bus_info_generic:            ; @fm10k_get_bus_info_generic
	.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	x8, _FM10K_PCIE_LINK_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_PCIE_LINK_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fm10k_read_pci_cfg_word
Lloh3:
	adrp	x21, _FM10K_PCIE_LINK_WIDTH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _FM10K_PCIE_LINK_WIDTH@GOTPAGEOFF]
	ldr	w8, [x21]
	and	w8, w8, w0
	sub	w8, w8, #128
Lloh5:
	adrp	x20, l_switch.table.fm10k_get_bus_info_generic.3@PAGE
Lloh6:
	add	x20, x20, l_switch.table.fm10k_get_bus_info_generic.3@PAGEOFF
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
	ldr	x8, [x20, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _fm10k_bus_width_unknown@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fm10k_bus_width_unknown@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
	str	x8, [x19, #40]
Lloh9:
	adrp	x23, _FM10K_PCIE_LINK_SPEED@GOTPAGE
Lloh10:
	ldr	x23, [x23, _FM10K_PCIE_LINK_SPEED@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w0
	sub	w8, w8, #132
Lloh11:
	adrp	x22, l_switch.table.fm10k_get_bus_info_generic.4@PAGE
Lloh12:
	add	x22, x22, l_switch.table.fm10k_get_bus_info_generic.4@PAGEOFF
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.4:
	ldr	x8, [x22, w8, sxtw #3]
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _fm10k_bus_speed_unknown@GOTPAGE
Lloh14:
	ldr	x8, [x8, _fm10k_bus_speed_unknown@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19, #32]
Lloh15:
	adrp	x8, _FM10K_PCIE_DEV_CAP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FM10K_PCIE_DEV_CAP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fm10k_read_pci_cfg_word
Lloh18:
	adrp	x8, _FM10K_PCIE_DEV_CAP_PAYLOAD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FM10K_PCIE_DEV_CAP_PAYLOAD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #138
Lloh21:
	adrp	x24, l_switch.table.fm10k_get_bus_info_generic.5@PAGE
Lloh22:
	add	x24, x24, l_switch.table.fm10k_get_bus_info_generic.5@PAGEOFF
	cmp	w8, #2
	b.hi	LBB0_8
; %bb.7:
	ldr	x8, [x24, w8, sxtw #3]
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x8, _fm10k_bus_payload_unknown@GOTPAGE
Lloh24:
	ldr	x8, [x8, _fm10k_bus_payload_unknown@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x19, #24]
Lloh25:
	adrp	x8, _FM10K_PCIE_LINK_STATUS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FM10K_PCIE_LINK_STATUS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fm10k_read_pci_cfg_word
	ldr	w8, [x21]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.10:
	ldr	x8, [x20, w8, sxtw #3]
	b	LBB0_12
LBB0_11:
Lloh28:
	adrp	x8, _fm10k_bus_width_unknown@GOTPAGE
Lloh29:
	ldr	x8, [x8, _fm10k_bus_width_unknown@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	w8, [x23]
	and	w8, w8, w0
	sub	w8, w8, #132
	cmp	w8, #2
	b.hi	LBB0_14
; %bb.13:
	ldr	x8, [x22, w8, sxtw #3]
	b	LBB0_15
LBB0_14:
Lloh30:
	adrp	x8, _fm10k_bus_speed_unknown@GOTPAGE
Lloh31:
	ldr	x8, [x8, _fm10k_bus_speed_unknown@GOTPAGEOFF]
LBB0_15:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh32:
	adrp	x8, _FM10K_PCIE_DEV_CTRL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FM10K_PCIE_DEV_CTRL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fm10k_read_pci_cfg_word
Lloh35:
	adrp	x8, _FM10K_PCIE_DEV_CTRL_PAYLOAD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FM10K_PCIE_DEV_CTRL_PAYLOAD@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #135
	cmp	w8, #2
	b.hi	LBB0_17
; %bb.16:
	ldr	x8, [x24, w8, sxtw #3]
	b	LBB0_18
LBB0_17:
Lloh38:
	adrp	x8, _fm10k_bus_payload_unknown@GOTPAGE
Lloh39:
	ldr	x8, [x8, _fm10k_bus_payload_unknown@GOTPAGEOFF]
LBB0_18:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #0
	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
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_PCIE_LINK_CAP,4,2        ; @FM10K_PCIE_LINK_CAP
	.comm	_FM10K_PCIE_LINK_WIDTH,4,2      ; @FM10K_PCIE_LINK_WIDTH
	.comm	_fm10k_bus_width_pcie_x1,8,3    ; @fm10k_bus_width_pcie_x1
	.comm	_fm10k_bus_width_pcie_x2,8,3    ; @fm10k_bus_width_pcie_x2
	.comm	_fm10k_bus_width_pcie_x4,8,3    ; @fm10k_bus_width_pcie_x4
	.comm	_fm10k_bus_width_pcie_x8,8,3    ; @fm10k_bus_width_pcie_x8
	.comm	_fm10k_bus_width_unknown,8,3    ; @fm10k_bus_width_unknown
	.comm	_FM10K_PCIE_LINK_SPEED,4,2      ; @FM10K_PCIE_LINK_SPEED
	.comm	_fm10k_bus_speed_2500,8,3       ; @fm10k_bus_speed_2500
	.comm	_fm10k_bus_speed_5000,8,3       ; @fm10k_bus_speed_5000
	.comm	_fm10k_bus_speed_8000,8,3       ; @fm10k_bus_speed_8000
	.comm	_fm10k_bus_speed_unknown,8,3    ; @fm10k_bus_speed_unknown
	.comm	_FM10K_PCIE_DEV_CAP,4,2         ; @FM10K_PCIE_DEV_CAP
	.comm	_FM10K_PCIE_DEV_CAP_PAYLOAD,4,2 ; @FM10K_PCIE_DEV_CAP_PAYLOAD
	.comm	_fm10k_bus_payload_128,8,3      ; @fm10k_bus_payload_128
	.comm	_fm10k_bus_payload_256,8,3      ; @fm10k_bus_payload_256
	.comm	_fm10k_bus_payload_512,8,3      ; @fm10k_bus_payload_512
	.comm	_fm10k_bus_payload_unknown,8,3  ; @fm10k_bus_payload_unknown
	.comm	_FM10K_PCIE_LINK_STATUS,4,2     ; @FM10K_PCIE_LINK_STATUS
	.comm	_FM10K_PCIE_DEV_CTRL,4,2        ; @FM10K_PCIE_DEV_CTRL
	.comm	_FM10K_PCIE_DEV_CTRL_PAYLOAD,4,2 ; @FM10K_PCIE_DEV_CTRL_PAYLOAD
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.fm10k_get_bus_info_generic.3
l_switch.table.fm10k_get_bus_info_generic.3:
	.quad	_fm10k_bus_width_pcie_x8
	.quad	_fm10k_bus_width_pcie_x4
	.quad	_fm10k_bus_width_pcie_x2
	.quad	_fm10k_bus_width_pcie_x1

	.p2align	3                               ; @switch.table.fm10k_get_bus_info_generic.4
l_switch.table.fm10k_get_bus_info_generic.4:
	.quad	_fm10k_bus_speed_8000
	.quad	_fm10k_bus_speed_5000
	.quad	_fm10k_bus_speed_2500

	.p2align	3                               ; @switch.table.fm10k_get_bus_info_generic.5
l_switch.table.fm10k_get_bus_info_generic.5:
	.quad	_fm10k_bus_payload_512
	.quad	_fm10k_bus_payload_256
	.quad	_fm10k_bus_payload_128

.subsections_via_symbols
