	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pasemi_mac_change_mtu
_pasemi_mac_change_mtu:                 ## @pasemi_mac_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, %r13
	movq	%r14, %rdi
	callq	_netif_running
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_napi_disable
	movq	%r14, %rdi
	callq	_netif_tx_disable
	movq	%r13, %rdi
	callq	_pasemi_mac_intf_disable
	movl	4(%r13), %edi
	callq	_PAS_DMA_RXINT_RCMDSTA
	movl	%eax, %edi
	callq	_read_dma_reg
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_pasemi_mac_pause_rxint
	movq	%r13, %rdi
	callq	_rx_ring
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rax, %rdi
	callq	_pasemi_mac_clean_rx
	movq	%r13, %rdi
	callq	_pasemi_mac_free_rx_buffers
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	_PE_DEF_MTU@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_7
## %bb.4:
	cmpl	$0, 16(%r13)
	jne	LBB0_7
## %bb.5:
	movq	%r13, %rdi
	callq	_pasemi_mac_setup_csrings
	cmpl	$0, 16(%r13)
	je	LBB0_6
LBB0_7:
	movq	_PAS_MAC_CFG_MACCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_read_mac_reg
	movq	_PAS_MAC_CFG_MACCFG_MAXF_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	notl	%r15d
	andl	%eax, %r15d
	movslq	%ebx, %rbx
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax), %rdi
	addq	$4, %rdi
	callq	_PAS_MAC_CFG_MACCFG_MAXF
	orl	%eax, %r15d
	movq	_PAS_MAC_CFG_MACCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_write_mac_reg
	movl	%ebx, (%r14)
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	movq	_LOCAL_SKB_ALIGN@GOTPCREL(%rip), %rcx
	movq	_ETH_HLEN@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rbx
	addq	(%rax), %rbx
	movq	(%rcx), %rax
	addq	%rbx, %rax
	addq	$128, %rax
	movq	%rax, 8(%r13)
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	je	LBB0_10
LBB0_9:
	movl	4(%r13), %edi
	callq	_PAS_DMA_RXINT_RCMDSTA
	movq	_PAS_DMA_RXINT_RCMDSTA_EN@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	orl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_dma_reg
	movq	%r13, %rdi
	callq	_rx_ring
	movq	$0, (%rax)
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	%r14, %rdi
	callq	_pasemi_mac_replenish_rx_ring
	movq	%r13, %rdi
	callq	_napi_enable
	movq	%r14, %rdi
	callq	_netif_start_queue
	movq	%r13, %rdi
	callq	_pasemi_mac_intf_enable
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%r12d, %r12d
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,8,3               ## @RX_RING_SIZE
	.comm	_PE_DEF_MTU,4,2                 ## @PE_DEF_MTU
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAS_MAC_CFG_MACCFG,4,2         ## @PAS_MAC_CFG_MACCFG
	.comm	_PAS_MAC_CFG_MACCFG_MAXF_M,4,2  ## @PAS_MAC_CFG_MACCFG_MAXF_M
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.comm	_LOCAL_SKB_ALIGN,8,3            ## @LOCAL_SKB_ALIGN
	.comm	_PAS_DMA_RXINT_RCMDSTA_EN,4,2   ## @PAS_DMA_RXINT_RCMDSTA_EN
	.no_dead_strip	_pasemi_mac_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pasemi_mac_change_mtu
_pasemi_mac_change_mtu:                 ; @pasemi_mac_change_mtu
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_running
	mov	x21, x0
Lloh0:
	adrp	x25, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RX_RING_SIZE@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_napi_disable
	mov	x0, x19
	bl	_netif_tx_disable
	mov	x0, x20
	bl	_pasemi_mac_intf_disable
	ldr	w0, [x20, #4]
	bl	_PAS_DMA_RXINT_RCMDSTA
	bl	_read_dma_reg
	mov	x23, x0
	mov	x0, x20
	bl	_pasemi_mac_pause_rxint
	mov	x0, x20
	bl	_rx_ring
	ldr	x1, [x25]
	bl	_pasemi_mac_clean_rx
	mov	x0, x20
	bl	_pasemi_mac_free_rx_buffers
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
Lloh2:
	adrp	x8, _PE_DEF_MTU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PE_DEF_MTU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ge	LBB0_6
; %bb.4:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_pasemi_mac_setup_csrings
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_9
LBB0_6:
Lloh5:
	adrp	x24, _PAS_MAC_CFG_MACCFG@GOTPAGE
Lloh6:
	ldr	x24, [x24, _PAS_MAC_CFG_MACCFG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_read_mac_reg
Lloh7:
	adrp	x8, _PAS_MAC_CFG_MACCFG_MAXF_M@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAS_MAC_CFG_MACCFG_MAXF_M@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w26, w0, w8
	sxtw	x27, w22
Lloh10:
	adrp	x28, _ETH_HLEN@GOTPAGE
Lloh11:
	ldr	x28, [x28, _ETH_HLEN@GOTPAGEOFF]
	ldr	x8, [x28]
	add	x8, x27, x8
	add	x0, x8, #4
	bl	_PAS_MAC_CFG_MACCFG_MAXF
	orr	w2, w0, w26
	ldr	w1, [x24]
	mov	x0, x20
	bl	_write_mac_reg
	mov	w24, #0
	str	w22, [x19]
	ldr	x8, [x28]
Lloh12:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _LOCAL_SKB_ALIGN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _LOCAL_SKB_ALIGN@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	add	x8, x27, x8
	add	x8, x8, x9
	add	x8, x8, x10
	add	x8, x8, #128
	str	x8, [x20, #8]
	cbz	w21, LBB0_8
LBB0_7:
	ldr	w0, [x20, #4]
	bl	_PAS_DMA_RXINT_RCMDSTA
Lloh18:
	adrp	x8, _PAS_DMA_RXINT_RCMDSTA_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAS_DMA_RXINT_RCMDSTA_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w1, w8, w23
	bl	_write_dma_reg
	mov	x0, x20
	bl	_rx_ring
	str	xzr, [x0]
	ldr	x8, [x25]
	sub	x1, x8, #1
	mov	x0, x19
	bl	_pasemi_mac_replenish_rx_ring
	mov	x0, x20
	bl	_napi_enable
	mov	x0, x19
	bl	_netif_start_queue
	mov	x0, x20
	bl	_pasemi_mac_intf_enable
LBB0_8:
	mov	x0, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w24, w8
	cbnz	w21, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,8,3               ; @RX_RING_SIZE
	.comm	_PE_DEF_MTU,4,2                 ; @PE_DEF_MTU
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAS_MAC_CFG_MACCFG,4,2         ; @PAS_MAC_CFG_MACCFG
	.comm	_PAS_MAC_CFG_MACCFG_MAXF_M,4,2  ; @PAS_MAC_CFG_MACCFG_MAXF_M
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.comm	_LOCAL_SKB_ALIGN,8,3            ; @LOCAL_SKB_ALIGN
	.comm	_PAS_DMA_RXINT_RCMDSTA_EN,4,2   ; @PAS_DMA_RXINT_RCMDSTA_EN
	.no_dead_strip	_pasemi_mac_change_mtu
.subsections_via_symbols
