	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_set_mode                 ## -- Begin function ipoib_set_mode
	.p2align	4, 0x90
_ipoib_set_mode:                        ## @ipoib_set_mode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_ipoib_priv
	movq	%rax, %r14
	movq	_IPOIB_FLAG_ADMIN_CM@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	4(%rax), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_12
LBB0_2:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_12
LBB0_4:
	movl	4(%r15), %edi
	callq	_IPOIB_CM_SUPPORTED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_13
LBB0_12:
	xorl	%ecx, %ecx
	jmp	LBB0_13
LBB0_9:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_netdev_update_features
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_min
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dev_set_mtu
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_11
LBB0_10:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_ipoib_warn
	movq	%r15, %rdi
	callq	_netdev_update_features
	movq	%r15, %rdi
	callq	_ipoib_cm_max_mtu
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dev_set_mtu
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_IB_SEND_IP_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
LBB0_11:
	movq	%r15, %rdi
	callq	_ipoib_flush_paths
	xorl	%eax, %eax
	callq	_rtnl_trylock
	movq	_EBUSY@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovnel	%ebx, %ecx
LBB0_13:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPOIB_FLAG_ADMIN_CM,4,2        ## @IPOIB_FLAG_ADMIN_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"connected\n"

L_.str.1:                               ## @.str.1
	.asciz	"datagram\n"

L_.str.2:                               ## @.str.2
	.asciz	"enabling connected mode will cause multicast packet drops\n"

	.comm	_IB_SEND_IP_CSUM,4,2            ## @IB_SEND_IP_CSUM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_set_mode                 ; -- Begin function ipoib_set_mode
	.p2align	2
_ipoib_set_mode:                        ; @ipoib_set_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	bl	_ipoib_priv
	mov	x20, x0
Lloh0:
	adrp	x23, _IPOIB_FLAG_ADMIN_CM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IPOIB_FLAG_ADMIN_CM@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x21, x20, #4
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_11
LBB0_2:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_11
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_IPOIB_CM_SUPPORTED
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_9
LBB0_6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_8:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x19
	bl	_netdev_update_features
	ldr	w0, [x20]
	ldr	w1, [x19]
	bl	_min
	mov	x1, x0
	mov	x0, x19
	bl	_dev_set_mtu
	bl	_rtnl_unlock
	b	LBB0_10
LBB0_9:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_set_bit
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ipoib_warn
	mov	x0, x19
	bl	_netdev_update_features
	mov	x0, x19
	bl	_ipoib_cm_max_mtu
	mov	x1, x0
	mov	x0, x19
	bl	_dev_set_mtu
	bl	_rtnl_unlock
Lloh15:
	adrp	x8, _IB_SEND_IP_CSUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_SEND_IP_CSUM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	str	w8, [x20, #8]
LBB0_10:
	mov	x0, x19
	bl	_ipoib_flush_paths
	bl	_rtnl_trylock
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, ne
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IPOIB_FLAG_ADMIN_CM,4,2        ; @IPOIB_FLAG_ADMIN_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"connected\n"

l_.str.1:                               ; @.str.1
	.asciz	"datagram\n"

l_.str.2:                               ; @.str.2
	.asciz	"enabling connected mode will cause multicast packet drops\n"

	.comm	_IB_SEND_IP_CSUM,4,2            ; @IB_SEND_IP_CSUM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
