	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntb_netdev_change_mtu
_ntb_netdev_change_mtu:                 ## @ntb_netdev_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_ntb_transport_max_size
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cmpl	%r15d, %eax
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_2:
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r12), %edi
	callq	_ntb_transport_link_down
	cmpl	%r15d, (%rbx)
	jge	LBB0_19
## %bb.5:
	movl	(%r12), %edi
	leaq	-44(%rbp), %rsi
	callq	_ntb_transport_rx_remove
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_dev_kfree_skb
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_ntb_transport_rx_remove
	decl	%r14d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_ETH_HLEN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	addl	%r15d, %esi
	movq	%rbx, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rbx
	movl	(%r12), %edi
	movl	(%rax), %edx
	movl	(%r13), %ecx
	addl	%r15d, %ecx
	movq	%rax, %rsi
	callq	_ntb_transport_rx_enqueue
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incl	%r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_ETH_HLEN@GOTPCREL(%rip), %r13
	jne	LBB0_10
LBB0_19:
	movl	%r15d, (%rbx)
	movl	(%r12), %edi
	callq	_ntb_transport_link_up
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_3:
	movl	%r15d, (%rbx)
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
LBB0_14:
	movl	(%r12), %edi
	callq	_ntb_transport_link_down
	movl	(%r12), %edi
	leaq	-44(%rbp), %rsi
	callq	_ntb_transport_rx_remove
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_dev_kfree_skb
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_ntb_transport_rx_remove
	testq	%rax, %rax
	jne	LBB0_16
LBB0_17:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_err
LBB0_18:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error changing MTU, device inoperable\n"

	.no_dead_strip	_ntb_netdev_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntb_netdev_change_mtu
_ntb_netdev_change_mtu:                 ; @ntb_netdev_change_mtu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0]
	bl	_ntb_transport_max_size
Lloh0:
	adrp	x24, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ETH_HLEN@GOTPAGEOFF]
	ldr	w8, [x24]
	sub	w8, w0, w8
	cmp	w8, w21
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_2:
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_12
; %bb.3:
	ldr	w0, [x20]
	bl	_ntb_transport_link_down
	ldr	w8, [x19]
	cmp	w8, w21
	b.ge	LBB0_11
; %bb.4:
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_ntb_transport_rx_remove
	cbz	x0, LBB0_11
; %bb.5:
	mov	w25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dev_kfree_skb
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_ntb_transport_rx_remove
	sub	w25, w25, #1
	cbnz	x0, LBB0_6
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x0
	ldr	w0, [x20]
	ldr	w2, [x23]
	ldr	w8, [x24]
	add	w3, w8, w21
	mov	x1, x23
	bl	_ntb_transport_rx_enqueue
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_9 Depth=1
	adds	w25, w25, #1
	b.hs	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	add	w1, w8, w21
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbnz	x0, LBB0_7
; %bb.10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_11:
	str	w21, [x19]
	ldr	w0, [x20]
	bl	_ntb_transport_link_up
	mov	w22, #0
	b	LBB0_18
LBB0_12:
	mov	w22, #0
	str	w21, [x19]
	b	LBB0_18
LBB0_13:
	mov	x22, x0
	mov	x0, x23
	bl	_dev_kfree_skb
LBB0_14:
	ldr	w0, [x20]
	bl	_ntb_transport_link_down
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_ntb_transport_rx_remove
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	bl	_dev_kfree_skb
	b	LBB0_15
LBB0_17:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error changing MTU, device inoperable\n"

	.no_dead_strip	_ntb_netdev_change_mtu
.subsections_via_symbols
