	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	8(%r15), %edi
	callq	_IPOIB_CM_SUPPORTED
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_IPOIB_FLAG_ADMIN_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_IPOIB_FLAG_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	(%r15), %eax
	movl	%eax, (%r15)
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%r14), %rdx
	orl	%ecx, (%rdx)
	movq	_IB_DEVICE_UD_TSO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_7
## %bb.6:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
LBB0_7:
	movl	4(%r14), %edi
	movl	4(%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_8
LBB0_2:
	movq	_IPOIB_FLAG_ADMIN_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$16, %rsi
	callq	_set_bit
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_ipoib_warn
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rax
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r15)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_IB_SEND_IP_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 20(%r14)
LBB0_8:
	movq	%r15, %rdi
	callq	_ipoib_flush_paths
	xorl	%eax, %eax
	callq	_rtnl_lock
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"connected\n"

	.comm	_IPOIB_FLAG_ADMIN_CM,4,2        ## @IPOIB_FLAG_ADMIN_CM
L_.str.1:                               ## @.str.1
	.asciz	"enabling connected mode will cause multicast packet drops\n"

	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_IB_SEND_IP_CSUM,4,2            ## @IB_SEND_IP_CSUM
L_.str.2:                               ## @.str.2
	.asciz	"datagram\n"

	.comm	_IPOIB_FLAG_CSUM,4,2            ## @IPOIB_FLAG_CSUM
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.comm	_IB_DEVICE_UD_TSO,4,2           ## @IB_DEVICE_UD_TSO
	.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	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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_IPOIB_CM_SUPPORTED
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_8
LBB0_2:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x8, _IPOIB_FLAG_ADMIN_CM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IPOIB_FLAG_ADMIN_CM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x21, x20, #16
	mov	x1, x21
	bl	_clear_bit
Lloh10:
	adrp	x8, _IPOIB_FLAG_CSUM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPOIB_FLAG_CSUM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.5:
Lloh13:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh15:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh19:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	ldr	x10, [x20, #8]
	ldr	w11, [x10]
	orr	w9, w11, w9
	str	w9, [x10]
	ldr	w9, [x20]
Lloh22:
	adrp	x10, _IB_DEVICE_UD_TSO@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IB_DEVICE_UD_TSO@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
Lloh25:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldr	w0, [x20, #4]
	ldr	w1, [x19, #4]
	bl	_min
	mov	x1, x0
	mov	x0, x19
	bl	_dev_set_mtu
	bl	_rtnl_unlock
	b	LBB0_9
LBB0_8:
Lloh28:
	adrp	x8, _IPOIB_FLAG_ADMIN_CM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IPOIB_FLAG_ADMIN_CM@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_set_bit
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ipoib_warn
Lloh33:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
Lloh39:
	adrp	x10, _NETIF_F_TSO@GOTPAGE
Lloh40:
	ldr	x10, [x10, _NETIF_F_TSO@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh41:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	bl	_rtnl_unlock
Lloh42:
	adrp	x8, _IB_SEND_IP_CSUM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IB_SEND_IP_CSUM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	bic	w8, w9, w8
	str	w8, [x20, #20]
LBB0_9:
	mov	x0, x19
	bl	_ipoib_flush_paths
	bl	_rtnl_lock
	mov	w0, #0
LBB0_10:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"connected\n"

	.comm	_IPOIB_FLAG_ADMIN_CM,4,2        ; @IPOIB_FLAG_ADMIN_CM
l_.str.1:                               ; @.str.1
	.asciz	"enabling connected mode will cause multicast packet drops\n"

	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_IB_SEND_IP_CSUM,4,2            ; @IB_SEND_IP_CSUM
l_.str.2:                               ; @.str.2
	.asciz	"datagram\n"

	.comm	_IPOIB_FLAG_CSUM,4,2            ; @IPOIB_FLAG_CSUM
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.comm	_IB_DEVICE_UD_TSO,4,2           ; @IB_DEVICE_UD_TSO
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
