	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shpc_get_cur_bus_speed
_shpc_get_cur_bus_speed:                ## @shpc_get_cur_bus_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	_PCI_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SEC_BUS_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_shpc_readw
	movl	%eax, %r15d
	movq	_PROG_INTERFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_shpc_readb
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	sete	%cl
	leal	7(,%rcx,8), %ecx
	andl	%r15d, %ecx
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	cmpl	$5, %ecx
	jb	LBB0_2
LBB0_19:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_2:
	cmpl	$13, %ecx
	ja	LBB0_19
## %bb.3:
	movl	%ecx, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_PCI_SPEED_33MHz@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_PCI_SPEED_66MHz@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_PCI_SPEED_66MHz_PCIX@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_PCI_SPEED_100MHz_PCIX@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	_PCI_SPEED_133MHz_PCIX@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	movq	_PCI_SPEED_66MHz_PCIX_ECC@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	_PCI_SPEED_100MHz_PCIX_ECC@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	_PCI_SPEED_133MHz_PCIX_ECC@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movq	_PCI_SPEED_66MHz_PCIX_266@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_14:
	movq	_PCI_SPEED_100MHz_PCIX_266@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movq	_PCI_SPEED_133MHz_PCIX_266@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_16:
	movq	_PCI_SPEED_66MHz_PCIX_533@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_17:
	movq	_PCI_SPEED_100MHz_PCIX_533@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_18:
	movq	_PCI_SPEED_133MHz_PCIX_533@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
LBB0_20:
	movl	%r14d, (%r12)
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_dbg
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_PCI_SPEED_UNKNOWN,4,2          ## @PCI_SPEED_UNKNOWN
	.comm	_SEC_BUS_CONFIG,4,2             ## @SEC_BUS_CONFIG
	.comm	_PROG_INTERFACE,4,2             ## @PROG_INTERFACE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCI_SPEED_33MHz,4,2            ## @PCI_SPEED_33MHz
	.comm	_PCI_SPEED_66MHz,4,2            ## @PCI_SPEED_66MHz
	.comm	_PCI_SPEED_66MHz_PCIX,4,2       ## @PCI_SPEED_66MHz_PCIX
	.comm	_PCI_SPEED_100MHz_PCIX,4,2      ## @PCI_SPEED_100MHz_PCIX
	.comm	_PCI_SPEED_133MHz_PCIX,4,2      ## @PCI_SPEED_133MHz_PCIX
	.comm	_PCI_SPEED_66MHz_PCIX_ECC,4,2   ## @PCI_SPEED_66MHz_PCIX_ECC
	.comm	_PCI_SPEED_100MHz_PCIX_ECC,4,2  ## @PCI_SPEED_100MHz_PCIX_ECC
	.comm	_PCI_SPEED_133MHz_PCIX_ECC,4,2  ## @PCI_SPEED_133MHz_PCIX_ECC
	.comm	_PCI_SPEED_66MHz_PCIX_266,4,2   ## @PCI_SPEED_66MHz_PCIX_266
	.comm	_PCI_SPEED_100MHz_PCIX_266,4,2  ## @PCI_SPEED_100MHz_PCIX_266
	.comm	_PCI_SPEED_133MHz_PCIX_266,4,2  ## @PCI_SPEED_133MHz_PCIX_266
	.comm	_PCI_SPEED_66MHz_PCIX_533,4,2   ## @PCI_SPEED_66MHz_PCIX_533
	.comm	_PCI_SPEED_100MHz_PCIX_533,4,2  ## @PCI_SPEED_100MHz_PCIX_533
	.comm	_PCI_SPEED_133MHz_PCIX_533,4,2  ## @PCI_SPEED_133MHz_PCIX_533
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Current bus speed = %d\n"

	.no_dead_strip	_shpc_get_cur_bus_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shpc_get_cur_bus_speed
_shpc_get_cur_bus_speed:                ; @shpc_get_cur_bus_speed
	.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	x20, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _PCI_SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_SPEED_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _SEC_BUS_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEC_BUS_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_shpc_readw
	mov	x21, x0
Lloh6:
	adrp	x8, _PROG_INTERFACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROG_INTERFACE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_shpc_readb
	mov	w8, #7
	mov	w9, #15
	cmp	w0, #2
	csel	w8, w9, w8, eq
	and	w8, w8, w21
	cmp	w0, #1
	ccmp	w8, #5, #0, eq
	b.hs	LBB0_4
; %bb.1:
	cmp	w8, #13
	b.hi	LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	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	w20, #0
Lloh11:
	adrp	x8, _PCI_SPEED_33MHz@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_SPEED_33MHz@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	str	w19, [x22]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dbg
	mov	x0, x20
	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_6:
	mov	w20, #0
Lloh19:
	adrp	x8, _PCI_SPEED_66MHz@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCI_SPEED_66MHz@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_7:
	mov	w20, #0
Lloh22:
	adrp	x8, _PCI_SPEED_66MHz_PCIX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PCI_SPEED_66MHz_PCIX@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_8:
	mov	w20, #0
Lloh25:
	adrp	x8, _PCI_SPEED_100MHz_PCIX@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PCI_SPEED_100MHz_PCIX@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_9:
	mov	w20, #0
Lloh28:
	adrp	x8, _PCI_SPEED_133MHz_PCIX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PCI_SPEED_133MHz_PCIX@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_10:
	mov	w20, #0
Lloh31:
	adrp	x8, _PCI_SPEED_66MHz_PCIX_ECC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PCI_SPEED_66MHz_PCIX_ECC@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_11:
	mov	w20, #0
Lloh34:
	adrp	x8, _PCI_SPEED_100MHz_PCIX_ECC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PCI_SPEED_100MHz_PCIX_ECC@GOTPAGEOFF]
Lloh36:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_12:
	mov	w20, #0
Lloh37:
	adrp	x8, _PCI_SPEED_133MHz_PCIX_ECC@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PCI_SPEED_133MHz_PCIX_ECC@GOTPAGEOFF]
Lloh39:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_13:
	mov	w20, #0
Lloh40:
	adrp	x8, _PCI_SPEED_66MHz_PCIX_266@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PCI_SPEED_66MHz_PCIX_266@GOTPAGEOFF]
Lloh42:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_14:
	mov	w20, #0
Lloh43:
	adrp	x8, _PCI_SPEED_100MHz_PCIX_266@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PCI_SPEED_100MHz_PCIX_266@GOTPAGEOFF]
Lloh45:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_15:
	mov	w20, #0
Lloh46:
	adrp	x8, _PCI_SPEED_133MHz_PCIX_266@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PCI_SPEED_133MHz_PCIX_266@GOTPAGEOFF]
Lloh48:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_16:
	mov	w20, #0
Lloh49:
	adrp	x8, _PCI_SPEED_66MHz_PCIX_533@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PCI_SPEED_66MHz_PCIX_533@GOTPAGEOFF]
Lloh51:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_17:
	mov	w20, #0
Lloh52:
	adrp	x8, _PCI_SPEED_100MHz_PCIX_533@GOTPAGE
Lloh53:
	ldr	x8, [x8, _PCI_SPEED_100MHz_PCIX_533@GOTPAGEOFF]
Lloh54:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_18:
	mov	w20, #0
Lloh55:
	adrp	x8, _PCI_SPEED_133MHz_PCIX_533@GOTPAGE
Lloh56:
	ldr	x8, [x8, _PCI_SPEED_133MHz_PCIX_533@GOTPAGEOFF]
Lloh57:
	ldr	w19, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
                                        ; -- End function
	.comm	_PCI_SPEED_UNKNOWN,4,2          ; @PCI_SPEED_UNKNOWN
	.comm	_SEC_BUS_CONFIG,4,2             ; @SEC_BUS_CONFIG
	.comm	_PROG_INTERFACE,4,2             ; @PROG_INTERFACE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCI_SPEED_33MHz,4,2            ; @PCI_SPEED_33MHz
	.comm	_PCI_SPEED_66MHz,4,2            ; @PCI_SPEED_66MHz
	.comm	_PCI_SPEED_66MHz_PCIX,4,2       ; @PCI_SPEED_66MHz_PCIX
	.comm	_PCI_SPEED_100MHz_PCIX,4,2      ; @PCI_SPEED_100MHz_PCIX
	.comm	_PCI_SPEED_133MHz_PCIX,4,2      ; @PCI_SPEED_133MHz_PCIX
	.comm	_PCI_SPEED_66MHz_PCIX_ECC,4,2   ; @PCI_SPEED_66MHz_PCIX_ECC
	.comm	_PCI_SPEED_100MHz_PCIX_ECC,4,2  ; @PCI_SPEED_100MHz_PCIX_ECC
	.comm	_PCI_SPEED_133MHz_PCIX_ECC,4,2  ; @PCI_SPEED_133MHz_PCIX_ECC
	.comm	_PCI_SPEED_66MHz_PCIX_266,4,2   ; @PCI_SPEED_66MHz_PCIX_266
	.comm	_PCI_SPEED_100MHz_PCIX_266,4,2  ; @PCI_SPEED_100MHz_PCIX_266
	.comm	_PCI_SPEED_133MHz_PCIX_266,4,2  ; @PCI_SPEED_133MHz_PCIX_266
	.comm	_PCI_SPEED_66MHz_PCIX_533,4,2   ; @PCI_SPEED_66MHz_PCIX_533
	.comm	_PCI_SPEED_100MHz_PCIX_533,4,2  ; @PCI_SPEED_100MHz_PCIX_533
	.comm	_PCI_SPEED_133MHz_PCIX_533,4,2  ; @PCI_SPEED_133MHz_PCIX_533
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Current bus speed = %d\n"

	.no_dead_strip	_shpc_get_cur_bus_speed
.subsections_via_symbols
