	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_change_mtu
_niu_change_mtu:                        ## @niu_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, %r15
	callq	_netdev_priv
	cmpl	$68, %ebx
	jl	LBB0_2
## %bb.1:
	movq	_NIU_MAX_MTU@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jl	LBB0_2
## %bb.3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r12d
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, (%r15)
	movq	%r15, %rdi
	callq	_netif_running
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	cmpl	%ebx, %r14d
	setl	%al
	cmpl	%r14d, %r12d
	setle	%cl
	xorb	%al, %cl
	jne	LBB0_13
## %bb.5:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_niu_full_shutdown
	movq	%rbx, %rdi
	callq	_niu_free_channels
	movq	%rbx, %rdi
	callq	_niu_enable_napi
	movq	%rbx, %rdi
	callq	_niu_alloc_channels
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	%rbx, %r12
	addq	$32, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_niu_init_hw
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_init_timer
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	%rbx, (%rbx)
	movq	_niu_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_niu_enable_interrupts
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_niu_stop_hw
LBB0_9:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_netif_tx_start_all_queues
	movq	24(%rbx), %rax
	movq	_LOOPBACK_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_netif_carrier_on
LBB0_12:
	movq	%rbx, %rdi
	callq	_add_timer
	xorl	%r13d, %r13d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NIU_MAX_MTU,4,2                ## @NIU_MAX_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_niu_timer,4,2                  ## @niu_timer
	.comm	_LOOPBACK_DISABLED,8,3          ## @LOOPBACK_DISABLED
	.no_dead_strip	_niu_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_change_mtu
_niu_change_mtu:                        ; @niu_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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	cmp	w21, #68
	b.lt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _NIU_MAX_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIU_MAX_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.lt	LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	w22, [x20]
Lloh3:
	adrp	x8, _ETH_DATA_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	str	w21, [x20]
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_4
; %bb.3:
	cmp	w23, w21
	cset	w8, lt
	cmp	w22, w23
	cset	w9, le
	eor	w8, w9, w8
	tbz	w8, #0, LBB0_7
LBB0_4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	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
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_niu_full_shutdown
	mov	x0, x19
	bl	_niu_free_channels
	mov	x0, x19
	bl	_niu_enable_napi
	mov	x0, x19
	bl	_niu_alloc_channels
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.8:
	add	x21, x19, #32
	mov	x0, x21
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_niu_init_hw
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_init_timer
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _HZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #16]
	str	x19, [x19]
Lloh15:
	adrp	x8, _niu_timer@GOTPAGE
Lloh16:
	ldr	x8, [x8, _niu_timer@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	mov	w1, #1
	bl	_niu_enable_interrupts
	cbz	w0, LBB0_12
; %bb.10:
	mov	x22, x0
	mov	x0, x19
	bl	_niu_stop_hw
LBB0_11:
	mov	x0, x21
	bl	_spin_unlock_irq
	b	LBB0_6
LBB0_12:
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_netif_tx_start_all_queues
	ldr	x8, [x19, #24]
Lloh18:
	adrp	x9, _LOOPBACK_DISABLED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LOOPBACK_DISABLED@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_netif_carrier_on
LBB0_14:
	mov	x0, x19
	bl	_add_timer
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NIU_MAX_MTU,4,2                ; @NIU_MAX_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_niu_timer,4,2                  ; @niu_timer
	.comm	_LOOPBACK_DISABLED,8,3          ; @LOOPBACK_DISABLED
	.no_dead_strip	_niu_change_mtu
.subsections_via_symbols
