	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_change_mtu
_ipoib_change_mtu:                      ## @ipoib_change_mtu
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_ipoib_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ipoib_cm_admin_enabled
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	callq	_ipoib_cm_max_mtu
	cmpl	%ebx, %eax
	jl	LBB0_2
## %bb.3:
	movl	(%r14), %edx
	cmpl	%ebx, %edx
	jge	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ipoib_warn
LBB0_5:
	movl	%ebx, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_6:
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rax
	movq	_IPOIB_ENCAP_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	cmpl	%ebx, %ecx
	jg	LBB0_2
## %bb.7:
	movl	16(%r14), %edi
	callq	_IPOIB_UD_MTU
	cmpl	%ebx, %eax
	jge	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%ebx, 4(%r14)
	movl	(%r14), %edx
	cmpl	%ebx, %edx
	jge	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_ipoib_dbg
	movl	(%r14), %edx
	movl	4(%r14), %ebx
LBB0_10:
	movl	%edx, %edi
	movl	%ebx, %esi
	callq	_min
	movl	%eax, %ebx
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.11:
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	8(%r14), %rax
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_netif_carrier_on
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mtu > %d will cause multicast packet drops.\n"

	.comm	_ETH_MIN_MTU,4,2                ## @ETH_MIN_MTU
	.comm	_IPOIB_ENCAP_LEN,4,2            ## @IPOIB_ENCAP_LEN
L_.str.1:                               ## @.str.1
	.asciz	"MTU must be smaller than the underlying link layer MTU - 4 (%u)\n"

	.no_dead_strip	_ipoib_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_change_mtu
_ipoib_change_mtu:                      ; @ipoib_change_mtu
	.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	_ipoib_priv
	mov	x20, x0
	mov	x0, x19
	bl	_ipoib_cm_admin_enabled
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_ipoib_cm_max_mtu
	cmp	w0, w21
	b.lt	LBB0_7
; %bb.2:
	ldr	w2, [x20]
	cmp	w2, w21
	b.ge	LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ipoib_warn
LBB0_4:
	mov	w20, #0
	str	w21, [x19]
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IPOIB_ENCAP_LEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPOIB_ENCAP_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w8, w21
	b.gt	LBB0_7
; %bb.6:
	ldr	w0, [x20, #16]
	bl	_IPOIB_UD_MTU
	cmp	w0, w21
	b.ge	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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
LBB0_9:
	str	w21, [x20, #4]
	ldr	w2, [x20]
	cmp	w2, w21
	b.ge	LBB0_11
; %bb.10:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ipoib_dbg
	ldp	w2, w21, [x20]
LBB0_11:
	mov	x0, x2
	mov	x1, x21
	bl	_min
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.12:
	mov	x0, x19
	bl	_netif_carrier_ok
	mov	x22, x0
	mov	x0, x19
	bl	_netif_carrier_off
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	mov	x20, x0
	cbz	w22, LBB0_8
; %bb.13:
	mov	x0, x19
	bl	_netif_carrier_on
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mtu > %d will cause multicast packet drops.\n"

	.comm	_ETH_MIN_MTU,4,2                ; @ETH_MIN_MTU
	.comm	_IPOIB_ENCAP_LEN,4,2            ; @IPOIB_ENCAP_LEN
l_.str.1:                               ; @.str.1
	.asciz	"MTU must be smaller than the underlying link layer MTU - 4 (%u)\n"

	.no_dead_strip	_ipoib_change_mtu
.subsections_via_symbols
