	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_get_pci_speed
_bnx2_get_pci_speed:                    ## @bnx2_get_pci_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_BNX2_PCICFG_MISC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNX2_RD
	movl	%eax, %r14d
	movq	_BNX2_PCICFG_MISC_STATUS_PCIX_DET@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_BNX2_FLAG_PCIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	_BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_BNX2_RD
                                        ## kill: def $eax killed $eax def $rax
	movq	_BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_10
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movl	$50, (%rbx)
	jmp	LBB0_10
LBB0_4:
	movq	_BNX2_PCICFG_MISC_STATUS_M66EN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
LBB0_3:
	movl	$66, (%rbx)
	jmp	LBB0_10
LBB0_6:
	movl	$33, (%rbx)
LBB0_10:
	movq	_BNX2_PCICFG_MISC_STATUS_32BIT_DET@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_BNX2_FLAG_PCI_32BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movl	$100, (%rbx)
	jmp	LBB0_10
LBB0_9:
	movl	$133, (%rbx)
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_BNX2_PCICFG_MISC_STATUS,4,2    ## @BNX2_PCICFG_MISC_STATUS
	.comm	_BNX2_PCICFG_MISC_STATUS_PCIX_DET,4,2 ## @BNX2_PCICFG_MISC_STATUS_PCIX_DET
	.comm	_BNX2_FLAG_PCIX,4,2             ## @BNX2_FLAG_PCIX
	.comm	_BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS,4,2 ## @BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS
	.comm	_BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET,4,2 ## @BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET
	.comm	_BNX2_PCICFG_MISC_STATUS_M66EN,4,2 ## @BNX2_PCICFG_MISC_STATUS_M66EN
	.comm	_BNX2_PCICFG_MISC_STATUS_32BIT_DET,4,2 ## @BNX2_PCICFG_MISC_STATUS_32BIT_DET
	.comm	_BNX2_FLAG_PCI_32BIT,4,2        ## @BNX2_FLAG_PCI_32BIT
	.no_dead_strip	_bnx2_get_pci_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_get_pci_speed
_bnx2_get_pci_speed:                    ; @bnx2_get_pci_speed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _BNX2_PCICFG_MISC_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_PCICFG_MISC_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_BNX2_RD
	mov	x20, x0
Lloh3:
	adrp	x8, _BNX2_PCICFG_MISC_STATUS_PCIX_DET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2_PCICFG_MISC_STATUS_PCIX_DET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _BNX2_FLAG_PCIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2_FLAG_PCIX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
Lloh9:
	adrp	x8, _BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BNX2_RD
Lloh12:
	adrp	x8, _BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_8
; %bb.2:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	w8, #50
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _BNX2_PCICFG_MISC_STATUS_M66EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BNX2_PCICFG_MISC_STATUS_M66EN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
LBB0_5:
	mov	w8, #66
	b	LBB0_7
LBB0_6:
	mov	w8, #33
LBB0_7:
	str	w8, [x19]
LBB0_8:
Lloh20:
	adrp	x8, _BNX2_PCICFG_MISC_STATUS_32BIT_DET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BNX2_PCICFG_MISC_STATUS_32BIT_DET@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
Lloh23:
	adrp	x8, _BNX2_FLAG_PCI_32BIT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BNX2_FLAG_PCI_32BIT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w8, #100
	b	LBB0_7
LBB0_12:
	mov	w8, #133
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_BNX2_PCICFG_MISC_STATUS,4,2    ; @BNX2_PCICFG_MISC_STATUS
	.comm	_BNX2_PCICFG_MISC_STATUS_PCIX_DET,4,2 ; @BNX2_PCICFG_MISC_STATUS_PCIX_DET
	.comm	_BNX2_FLAG_PCIX,4,2             ; @BNX2_FLAG_PCIX
	.comm	_BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS,4,2 ; @BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS
	.comm	_BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET,4,2 ; @BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET
	.comm	_BNX2_PCICFG_MISC_STATUS_M66EN,4,2 ; @BNX2_PCICFG_MISC_STATUS_M66EN
	.comm	_BNX2_PCICFG_MISC_STATUS_32BIT_DET,4,2 ; @BNX2_PCICFG_MISC_STATUS_32BIT_DET
	.comm	_BNX2_FLAG_PCI_32BIT,4,2        ; @BNX2_FLAG_PCI_32BIT
	.no_dead_strip	_bnx2_get_pci_speed
.subsections_via_symbols
