	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_bus_info_pcie          ## -- Begin function igb_get_bus_info_pcie
	.p2align	4, 0x90
_igb_get_bus_info_pcie:                 ## @igb_get_bus_info_pcie
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_e1000_bus_type_pci_express@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_PCI_EXP_LNKSTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_igb_read_pcie_cap_reg
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_e1000_bus_width_unknown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_e1000_bus_speed_unknown@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_8
LBB0_2:
	movl	-12(%rbp), %eax
	movq	_PCI_EXP_LNKSTA_CLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$128, %ecx
	jne	LBB0_3
## %bb.4:
	movq	_e1000_bus_speed_5000@GOTPCREL(%rip), %rdx
	cmpl	$129, %ecx
	je	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	_e1000_bus_speed_unknown@GOTPCREL(%rip), %rdx
	cmpl	$129, %ecx
	jne	LBB0_7
LBB0_6:
	movq	_e1000_bus_speed_2500@GOTPCREL(%rip), %rdx
LBB0_7:
	movq	(%rdx), %rcx
	movq	%rcx, 8(%rbx)
	movq	_PCI_EXP_LNKSTA_NLW@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PCI_EXP_LNKSTA_NLW_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, (%rbx)
LBB0_8:
	movq	_E1000_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_E1000_STATUS_FUNC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_E1000_STATUS_FUNC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_bus_type_pci_express,4,2 ## @e1000_bus_type_pci_express
	.comm	_PCI_EXP_LNKSTA,4,2             ## @PCI_EXP_LNKSTA
	.comm	_e1000_bus_width_unknown,4,2    ## @e1000_bus_width_unknown
	.comm	_e1000_bus_speed_unknown,8,3    ## @e1000_bus_speed_unknown
	.comm	_PCI_EXP_LNKSTA_CLS,4,2         ## @PCI_EXP_LNKSTA_CLS
	.comm	_e1000_bus_speed_2500,8,3       ## @e1000_bus_speed_2500
	.comm	_e1000_bus_speed_5000,8,3       ## @e1000_bus_speed_5000
	.comm	_PCI_EXP_LNKSTA_NLW,4,2         ## @PCI_EXP_LNKSTA_NLW
	.comm	_PCI_EXP_LNKSTA_NLW_SHIFT,4,2   ## @PCI_EXP_LNKSTA_NLW_SHIFT
	.comm	_E1000_STATUS,4,2               ## @E1000_STATUS
	.comm	_E1000_STATUS_FUNC_MASK,4,2     ## @E1000_STATUS_FUNC_MASK
	.comm	_E1000_STATUS_FUNC_SHIFT,4,2    ## @E1000_STATUS_FUNC_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_bus_info_pcie          ; -- Begin function igb_get_bus_info_pcie
	.p2align	2
_igb_get_bus_info_pcie:                 ; @igb_get_bus_info_pcie
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _e1000_bus_type_pci_express@GOTPAGE
Lloh1:
	ldr	x8, [x8, _e1000_bus_type_pci_express@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh3:
	adrp	x8, _PCI_EXP_LNKSTA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_LNKSTA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_igb_read_pcie_cap_reg
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _e1000_bus_width_unknown@GOTPAGE
Lloh7:
	ldr	x8, [x8, _e1000_bus_width_unknown@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh9:
	adrp	x8, _e1000_bus_speed_unknown@GOTPAGE
Lloh10:
	ldr	x8, [x8, _e1000_bus_speed_unknown@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _PCI_EXP_LNKSTA_CLS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_EXP_LNKSTA_CLS@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _e1000_bus_speed_2500@GOTPAGE
Lloh16:
	ldr	x10, [x10, _e1000_bus_speed_2500@GOTPAGEOFF]
Lloh17:
	adrp	x11, _e1000_bus_speed_5000@GOTPAGE
Lloh18:
	ldr	x11, [x11, _e1000_bus_speed_5000@GOTPAGEOFF]
	and	w8, w8, w9
Lloh19:
	adrp	x12, _e1000_bus_speed_unknown@GOTPAGE
Lloh20:
	ldr	x12, [x12, _e1000_bus_speed_unknown@GOTPAGEOFF]
	cmp	w8, #128
	csel	x11, x11, x12, eq
	cmp	w8, #129
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh21:
	adrp	x8, _PCI_EXP_LNKSTA_NLW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCI_EXP_LNKSTA_NLW@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh24:
	adrp	x9, _PCI_EXP_LNKSTA_NLW_SHIFT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PCI_EXP_LNKSTA_NLW_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19]
LBB0_3:
Lloh27:
	adrp	x8, _E1000_STATUS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E1000_STATUS@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_rd32
Lloh30:
	adrp	x8, _E1000_STATUS_FUNC_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _E1000_STATUS_FUNC_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh33:
	adrp	x9, _E1000_STATUS_FUNC_SHIFT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _E1000_STATUS_FUNC_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19, #4]
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_bus_type_pci_express,4,2 ; @e1000_bus_type_pci_express
	.comm	_PCI_EXP_LNKSTA,4,2             ; @PCI_EXP_LNKSTA
	.comm	_e1000_bus_width_unknown,4,2    ; @e1000_bus_width_unknown
	.comm	_e1000_bus_speed_unknown,8,3    ; @e1000_bus_speed_unknown
	.comm	_PCI_EXP_LNKSTA_CLS,4,2         ; @PCI_EXP_LNKSTA_CLS
	.comm	_e1000_bus_speed_2500,8,3       ; @e1000_bus_speed_2500
	.comm	_e1000_bus_speed_5000,8,3       ; @e1000_bus_speed_5000
	.comm	_PCI_EXP_LNKSTA_NLW,4,2         ; @PCI_EXP_LNKSTA_NLW
	.comm	_PCI_EXP_LNKSTA_NLW_SHIFT,4,2   ; @PCI_EXP_LNKSTA_NLW_SHIFT
	.comm	_E1000_STATUS,4,2               ; @E1000_STATUS
	.comm	_E1000_STATUS_FUNC_MASK,4,2     ; @E1000_STATUS_FUNC_MASK
	.comm	_E1000_STATUS_FUNC_SHIFT,4,2    ; @E1000_STATUS_FUNC_SHIFT
.subsections_via_symbols
