	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_change_mtu
_netdev_change_mtu:                     ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	cmpl	$2, 16(%r15)
	jl	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpq	%rbx, 8(%r15)
	jne	LBB0_8
LBB0_4:
	movq	_ETHERNET_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r14,%rax), %edx
	addl	$4, %edx
	movq	_REGULAR_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RX_HUGE_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %edx
	jle	LBB0_6
## %bb.5:
	orl	%ecx, 20(%r15)
	movq	_MAX_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_6:
	notl	%ecx
	andl	%ecx, 20(%r15)
LBB0_7:
	addl	$3, %eax
	andl	$-4, %eax
	movl	%eax, (%r15)
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ETHERNET_HEADER_SIZE,4,2       ## @ETHERNET_HEADER_SIZE
	.comm	_REGULAR_RX_BUF_SIZE,4,2        ## @REGULAR_RX_BUF_SIZE
	.comm	_RX_HUGE_FRAME,4,2              ## @RX_HUGE_FRAME
	.comm	_MAX_RX_BUF_SIZE,4,2            ## @MAX_RX_BUF_SIZE
	.no_dead_strip	_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 netdev_change_mtu
_netdev_change_mtu:                     ; @netdev_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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x21, [x0]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	ldr	w8, [x21, #16]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _ETHERNET_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETHERNET_HEADER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w19, w8
Lloh6:
	adrp	x9, _REGULAR_RX_BUF_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REGULAR_RX_BUF_SIZE@GOTPAGEOFF]
	add	w10, w8, #4
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _RX_HUGE_FRAME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RX_HUGE_FRAME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w10, w8
	b.le	LBB0_7
; %bb.6:
	ldr	w8, [x21, #20]
	orr	w8, w8, w9
	str	w8, [x21, #20]
Lloh12:
	adrp	x8, _MAX_RX_BUF_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_RX_BUF_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	b	LBB0_8
LBB0_7:
	ldr	w10, [x21, #20]
	bic	w9, w10, w9
	str	w9, [x21, #20]
LBB0_8:
	mov	w0, #0
	add	w8, w8, #3
	and	w8, w8, #0xfffffffc
	str	w8, [x21]
	str	w19, [x20]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ETHERNET_HEADER_SIZE,4,2       ; @ETHERNET_HEADER_SIZE
	.comm	_REGULAR_RX_BUF_SIZE,4,2        ; @REGULAR_RX_BUF_SIZE
	.comm	_RX_HUGE_FRAME,4,2              ; @RX_HUGE_FRAME
	.comm	_MAX_RX_BUF_SIZE,4,2            ; @MAX_RX_BUF_SIZE
	.no_dead_strip	_netdev_change_mtu
.subsections_via_symbols
