	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_change_mtu
_xennet_change_mtu:                     ## @xennet_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_xennet_can_sg
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	jl	LBB0_4
LBB0_5:
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_XEN_NETIF_MAX_TX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MAX_TCP_HEADER@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cmpl	%r14d, %eax
	jge	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XEN_NETIF_MAX_TX_SIZE,4,2      ## @XEN_NETIF_MAX_TX_SIZE
	.comm	_MAX_TCP_HEADER,4,2             ## @MAX_TCP_HEADER
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xennet_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_change_mtu
_xennet_change_mtu:                     ; @xennet_change_mtu
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_xennet_can_sg
Lloh0:
	adrp	x8, _XEN_NETIF_MAX_TX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XEN_NETIF_MAX_TX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MAX_TCP_HEADER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_TCP_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w8, w8, w9
Lloh6:
	adrp	x9, _ETH_DATA_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x0, #0
	csel	w8, w9, w8, eq
	cmp	w8, w19
	b.ge	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	str	w19, [x20]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XEN_NETIF_MAX_TX_SIZE,4,2      ; @XEN_NETIF_MAX_TX_SIZE
	.comm	_MAX_TCP_HEADER,4,2             ; @MAX_TCP_HEADER
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xennet_change_mtu
.subsections_via_symbols
