	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_get_link_ksettings
_ipoib_get_link_ksettings:              ## @ipoib_get_link_ksettings
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ipoib_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	leaq	-32(%rbp), %rdx
	callq	_ib_query_port
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	-28(%rbp), %edi
	callq	_ib_speed_enum_to_int
	movl	%eax, %r14d
	movl	-32(%rbp), %edi
	callq	_ib_width_enum_to_int
	testl	%r14d, %r14d
	js	LBB0_3
## %bb.5:
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:
	imull	%r14d, %eax
	movl	%eax, (%r15)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	$255, 4(%r15)
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_PORT_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_1:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_PORT_OTHER,4,2                 ## @PORT_OTHER
	.no_dead_strip	_ipoib_get_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_get_link_ksettings
_ipoib_get_link_ksettings:              ; @ipoib_get_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	bl	_ipoib_priv
	mov	x20, x0
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	w0, LBB0_6
; %bb.1:
	ldp	w1, w0, [x20]
	add	x2, sp, #8
	bl	_ib_query_port
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w0, [sp, #12]
	bl	_ib_speed_enum_to_int
	mov	x20, x0
	ldr	w0, [sp, #8]
	bl	_ib_width_enum_to_int
	tbnz	w20, #31, LBB0_5
; %bb.3:
	mov	x8, x0
	tbnz	w0, #31, LBB0_5
; %bb.4:
	mov	w0, #0
	mul	w8, w8, w20
Lloh0:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
	mov	w10, #255
	stp	w8, w10, [x19]
Lloh2:
	ldr	w8, [x9]
	str	w8, [x19, #16]
Lloh3:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PORT_OTHER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PORT_OTHER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh15:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_PORT_OTHER,4,2                 ; @PORT_OTHER
	.no_dead_strip	_ipoib_get_link_ksettings
.subsections_via_symbols
