	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_adapter_speed
_get_adapter_speed:                     ## @get_adapter_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_NON_INT_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_dbg
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movl	%r15d, %eax
	movl	%r14d, %ecx
	shrl	%cl, %eax
	testl	$65536, %eax                    ## imm = 0x10000
	je	LBB0_3
## %bb.2:
	movq	_PCI_SPEED_133MHz_PCIX@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movl	%r15d, %eax
	movl	%r14d, %ecx
	shrl	%cl, %eax
	testl	$256, %eax                      ## imm = 0x100
	je	LBB0_5
## %bb.4:
	movq	_PCI_SPEED_66MHz_PCIX@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	btl	%r14d, %r15d
	jb	LBB0_6
## %bb.7:
	movq	_PCI_SPEED_33MHz@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_PCI_SPEED_66MHz@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NON_INT_INPUT,8,3              ## @NON_INT_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slot: %d, PCIXCAP: %8x\n"

	.comm	_PCI_SPEED_133MHz_PCIX,4,2      ## @PCI_SPEED_133MHz_PCIX
	.comm	_PCI_SPEED_66MHz_PCIX,4,2       ## @PCI_SPEED_66MHz_PCIX
	.comm	_PCI_SPEED_66MHz,4,2            ## @PCI_SPEED_66MHz
	.comm	_PCI_SPEED_33MHz,4,2            ## @PCI_SPEED_33MHz
	.no_dead_strip	_get_adapter_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_adapter_speed
_get_adapter_speed:                     ; @get_adapter_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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _NON_INT_INPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NON_INT_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_dbg
	ldr	x9, [x20]
	lsr	w8, w21, w19
	cbz	x9, LBB0_5
; %bb.1:
	tbz	w8, #16, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _PCI_SPEED_133MHz_PCIX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_SPEED_133MHz_PCIX@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	tbz	w8, #8, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _PCI_SPEED_66MHz_PCIX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_SPEED_66MHz_PCIX@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x9, _PCI_SPEED_66MHz@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_SPEED_66MHz@GOTPAGEOFF]
Lloh11:
	adrp	x10, _PCI_SPEED_33MHz@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PCI_SPEED_33MHz@GOTPAGEOFF]
	tst	w8, #0x1
	csel	x8, x10, x9, eq
LBB0_6:
	ldr	w0, [x8]
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NON_INT_INPUT,8,3              ; @NON_INT_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slot: %d, PCIXCAP: %8x\n"

	.comm	_PCI_SPEED_133MHz_PCIX,4,2      ; @PCI_SPEED_133MHz_PCIX
	.comm	_PCI_SPEED_66MHz_PCIX,4,2       ; @PCI_SPEED_66MHz_PCIX
	.comm	_PCI_SPEED_66MHz,4,2            ; @PCI_SPEED_66MHz
	.comm	_PCI_SPEED_33MHz,4,2            ; @PCI_SPEED_33MHz
	.no_dead_strip	_get_adapter_speed
.subsections_via_symbols
