	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_get_eth_speed               ## -- Begin function ib_get_eth_speed
	.p2align	4, 0x90
_ib_get_eth_speed:                      ## @ib_get_eth_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_rdma_port_get_link_layer
	movq	_IB_LINK_LAYER_ETHERNET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ib_device_get_netdev
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_rtnl_lock
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	___ethtool_get_link_ksettings
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%rbx, %rdi
	callq	_dev_put
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.7:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rdx
	callq	_pr_warn
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_6:
	movq	-40(%rbp), %r12
LBB0_8:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jle	LBB0_9
## %bb.10:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jle	LBB0_11
## %bb.12:
	movq	_SPEED_20000@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jle	LBB0_13
## %bb.14:
	movq	_SPEED_25000@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jle	LBB0_15
## %bb.17:
	movq	_SPEED_40000@GOTPCREL(%rip), %rax
	movq	_IB_WIDTH_4X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	(%rax), %r12
	movl	%ecx, (%r15)
	jle	LBB0_18
	jmp	LBB0_16
LBB0_9:
	movq	_IB_WIDTH_1X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_IB_SPEED_SDR@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_11:
	movq	_IB_WIDTH_1X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_18:
	movq	_IB_SPEED_FDR10@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_13:
	movq	_IB_WIDTH_4X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_IB_SPEED_DDR@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_15:
	movq	_IB_WIDTH_1X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_16:
	movq	_IB_SPEED_EDR@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_LINK_LAYER_ETHERNET,8,3     ## @IB_LINK_LAYER_ETHERNET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s speed is unknown, defaulting to %d\n"

	.comm	_IB_WIDTH_1X,4,2                ## @IB_WIDTH_1X
	.comm	_IB_SPEED_SDR,4,2               ## @IB_SPEED_SDR
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_IB_SPEED_FDR10,4,2             ## @IB_SPEED_FDR10
	.comm	_SPEED_20000,8,3                ## @SPEED_20000
	.comm	_IB_WIDTH_4X,4,2                ## @IB_WIDTH_4X
	.comm	_IB_SPEED_DDR,4,2               ## @IB_SPEED_DDR
	.comm	_SPEED_25000,8,3                ## @SPEED_25000
	.comm	_IB_SPEED_EDR,4,2               ## @IB_SPEED_EDR
	.comm	_SPEED_40000,8,3                ## @SPEED_40000
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_get_eth_speed               ; -- Begin function ib_get_eth_speed
	.p2align	2
_ib_get_eth_speed:                      ; @ib_get_eth_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_rdma_port_get_link_layer
Lloh0:
	adrp	x8, _IB_LINK_LAYER_ETHERNET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_LINK_LAYER_ETHERNET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_ib_device_get_netdev
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	bl	_rtnl_lock
	add	x1, sp, #8
	mov	x0, x22
	bl	___ethtool_get_link_ksettings
	mov	x21, x0
	bl	_rtnl_unlock
	mov	x0, x22
	bl	_dev_put
Lloh3:
	adrp	x23, _SPEED_1000@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SPEED_1000@GOTPAGEOFF]
	cbz	w21, LBB0_7
; %bb.3:
	ldr	x21, [x23]
	ldr	w1, [x22]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_pr_warn
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_7:
	ldr	x21, [sp, #8]
LBB0_8:
	ldr	x8, [x23]
	cmp	x21, x8
	b.le	LBB0_14
; %bb.9:
Lloh11:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x21, x8
	b.le	LBB0_15
; %bb.10:
Lloh14:
	adrp	x8, _SPEED_20000@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPEED_20000@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x21, x8
	b.le	LBB0_17
; %bb.11:
Lloh17:
	adrp	x8, _SPEED_25000@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SPEED_25000@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x21, x8
	b.le	LBB0_18
; %bb.12:
Lloh20:
	adrp	x8, _SPEED_40000@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SPEED_40000@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _IB_WIDTH_4X@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IB_WIDTH_4X@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	str	w9, [x20]
	cmp	x21, x8
	b.le	LBB0_22
; %bb.13:
	mov	w0, #0
	b	LBB0_19
LBB0_14:
	mov	w0, #0
Lloh26:
	adrp	x8, _IB_WIDTH_1X@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IB_WIDTH_1X@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh29:
	adrp	x8, _IB_SPEED_SDR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IB_SPEED_SDR@GOTPAGEOFF]
	b	LBB0_20
LBB0_15:
	mov	w0, #0
Lloh31:
	adrp	x8, _IB_WIDTH_1X@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IB_WIDTH_1X@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_16:
Lloh34:
	adrp	x8, _IB_SPEED_FDR10@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IB_SPEED_FDR10@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
	mov	w0, #0
Lloh36:
	adrp	x8, _IB_WIDTH_4X@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IB_WIDTH_4X@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh39:
	adrp	x8, _IB_SPEED_DDR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IB_SPEED_DDR@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	w0, #0
Lloh41:
	adrp	x8, _IB_WIDTH_1X@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IB_WIDTH_1X@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_19:
Lloh44:
	adrp	x8, _IB_SPEED_EDR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IB_SPEED_EDR@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_22:
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_LINK_LAYER_ETHERNET,8,3     ; @IB_LINK_LAYER_ETHERNET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s speed is unknown, defaulting to %d\n"

	.comm	_IB_WIDTH_1X,4,2                ; @IB_WIDTH_1X
	.comm	_IB_SPEED_SDR,4,2               ; @IB_SPEED_SDR
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_IB_SPEED_FDR10,4,2             ; @IB_SPEED_FDR10
	.comm	_SPEED_20000,8,3                ; @SPEED_20000
	.comm	_IB_WIDTH_4X,4,2                ; @IB_WIDTH_4X
	.comm	_IB_SPEED_DDR,4,2               ; @IB_SPEED_DDR
	.comm	_SPEED_25000,8,3                ; @SPEED_25000
	.comm	_IB_SPEED_EDR,4,2               ; @IB_SPEED_EDR
	.comm	_SPEED_40000,8,3                ; @SPEED_40000
.subsections_via_symbols
