	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_changelink
_ipoib_changelink:                      ## @ipoib_changelink
	.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	%rdx, %r15
	movq	%rdi, %r14
	movq	_IFLA_IPOIB_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_nla_get_u16
	movq	_IPOIB_MODE_DATAGRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_IPOIB_MODE_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_ipoib_set_mode
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_9
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	js	LBB0_11
LBB0_9:
	movq	_IFLA_IPOIB_UMCAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_nla_get_u16
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ipoib_set_umcast
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_IPOIB_MODE,8,3            ## @IFLA_IPOIB_MODE
	.comm	_IPOIB_MODE_DATAGRAM,8,3        ## @IPOIB_MODE_DATAGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"datagram\n"

	.comm	_IPOIB_MODE_CONNECTED,8,3       ## @IPOIB_MODE_CONNECTED
L_.str.1:                               ## @.str.1
	.asciz	"connected\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFLA_IPOIB_UMCAST,8,3          ## @IFLA_IPOIB_UMCAST
	.no_dead_strip	_ipoib_changelink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_changelink
_ipoib_changelink:                      ; @ipoib_changelink
	.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, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _IFLA_IPOIB_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_IPOIB_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x2, x8, lsl #3]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_nla_get_u16
Lloh3:
	adrp	x8, _IPOIB_MODE_DATAGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPOIB_MODE_DATAGRAM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	w21, #0
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _IPOIB_MODE_CONNECTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPOIB_MODE_CONNECTED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_ipoib_set_mode
	mov	x21, x0
	tbz	w21, #31, LBB0_8
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	tbnz	w21, #31, LBB0_10
LBB0_8:
Lloh16:
	adrp	x8, _IFLA_IPOIB_UMCAST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IFLA_IPOIB_UMCAST@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_nla_get_u16
	mov	x1, x0
	mov	x0, x19
	bl	_ipoib_set_umcast
LBB0_10:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_IPOIB_MODE,8,3            ; @IFLA_IPOIB_MODE
	.comm	_IPOIB_MODE_DATAGRAM,8,3        ; @IPOIB_MODE_DATAGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"datagram\n"

	.comm	_IPOIB_MODE_CONNECTED,8,3       ; @IPOIB_MODE_CONNECTED
l_.str.1:                               ; @.str.1
	.asciz	"connected\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFLA_IPOIB_UMCAST,8,3          ; @IFLA_IPOIB_UMCAST
	.no_dead_strip	_ipoib_changelink
.subsections_via_symbols
