	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_change_mtu
_lan78xx_change_mtu:                    ## @lan78xx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%r14), %eax
	addl	%ebx, %eax
	cltd
	idivl	8(%r15)
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	4(%r15), %r12d
	movl	(%r15), %r13d
	movslq	%ebx, %rsi
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_lan78xx_set_rx_max_frame_length
	movl	%ebx, 4(%r14)
	addl	(%r14), %ebx
	movl	%ebx, (%r15)
	xorl	%r14d, %r14d
	cmpl	%r13d, 4(%r15)
	jne	LBB0_6
## %bb.3:
	movl	%ebx, 4(%r15)
	cmpl	%r12d, %ebx
	jle	LBB0_6
## %bb.4:
	movl	20(%r15), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	16(%r15), %rsi
	movq	%r15, %rdi
	callq	_unlink_urbs
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_tasklet_schedule
	jmp	LBB0_6
LBB0_1:
	movq	_EDOM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDOM,4,2                       ## @EDOM
	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.no_dead_strip	_lan78xx_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_change_mtu
_lan78xx_change_mtu:                    ; @lan78xx_change_mtu
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	ldr	w8, [x21]
	add	w8, w8, w20
	ldr	w9, [x0, #8]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldp	w23, w22, [x0]
Lloh0:
	adrp	x8, _VLAN_ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, w20, sxtw
	bl	_lan78xx_set_rx_max_frame_length
	str	w20, [x21, #4]
	ldr	w8, [x21]
	add	w8, w8, w20
	str	w8, [x19]
	ldr	w9, [x19, #4]
	cmp	w9, w23
	b.ne	LBB0_5
; %bb.2:
	str	w8, [x19, #4]
	cmp	w8, w22
	b.le	LBB0_5
; %bb.3:
	ldr	w0, [x19, #20]
	bl	_netif_running
	cbz	x0, LBB0_7
; %bb.4:
	add	x1, x19, #16
	mov	x0, x19
	bl	_unlink_urbs
	add	x0, x19, #12
	bl	_tasklet_schedule
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EDOM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDOM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EDOM,4,2                       ; @EDOM
	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.no_dead_strip	_lan78xx_change_mtu
.subsections_via_symbols
