	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_change_mtu
_pch_gbe_change_mtu:                    ## @pch_gbe_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, %r14d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	%r14d, %ebx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %ebx
	movq	%rax, %r12
	movq	_PCH_GBE_FRAME_SIZE_2048@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jle	LBB0_4
## %bb.1:
	movq	_PCH_GBE_FRAME_SIZE_4096@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jle	LBB0_4
## %bb.2:
	movq	_PCH_GBE_FRAME_SIZE_8192@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jle	LBB0_4
## %bb.3:
	movq	_PCH_GBE_MAX_RX_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	(%r12), %r13
	cltq
	movq	%rax, (%r12)
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_pch_gbe_down
	movq	%r12, %rdi
	callq	_pch_gbe_up
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_pch_gbe_up
	jmp	LBB0_9
LBB0_7:
	movq	%r12, %rdi
	callq	_pch_gbe_reset
LBB0_8:
	movl	%r14d, (%r15)
	movl	%ebx, 8(%r12)
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_netdev_dbg
	xorl	%r13d, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_PCH_GBE_FRAME_SIZE_2048,4,2    ## @PCH_GBE_FRAME_SIZE_2048
	.comm	_PCH_GBE_FRAME_SIZE_4096,4,2    ## @PCH_GBE_FRAME_SIZE_4096
	.comm	_PCH_GBE_FRAME_SIZE_8192,4,2    ## @PCH_GBE_FRAME_SIZE_8192
	.comm	_PCH_GBE_MAX_RX_BUFFER_SIZE,4,2 ## @PCH_GBE_MAX_RX_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"max_frame : %d  rx_buffer_len : %d  mtu : %d  max_frame_size : %d\n"

	.no_dead_strip	_pch_gbe_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_change_mtu
_pch_gbe_change_mtu:                    ; @pch_gbe_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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w19
	add	w22, w8, w9
Lloh6:
	adrp	x8, _PCH_GBE_FRAME_SIZE_2048@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCH_GBE_FRAME_SIZE_2048@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w22, w8
	b.le	LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _PCH_GBE_FRAME_SIZE_4096@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCH_GBE_FRAME_SIZE_4096@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w22, w8
	b.le	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _PCH_GBE_FRAME_SIZE_8192@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCH_GBE_FRAME_SIZE_8192@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PCH_GBE_MAX_RX_BUFFER_SIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCH_GBE_MAX_RX_BUFFER_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w22, w8
	csel	w8, w9, w8, gt
LBB0_3:
	ldr	x24, [x21]
	sxtw	x8, w8
	str	x8, [x21]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_pch_gbe_down
	mov	x0, x21
	bl	_pch_gbe_up
	cbz	w0, LBB0_7
; %bb.5:
	mov	x23, x0
	str	x24, [x21]
	mov	x0, x21
	bl	_pch_gbe_up
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_pch_gbe_reset
LBB0_7:
	str	w19, [x20]
	str	w22, [x21, #8]
	ldr	w3, [x21]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x4, x19
	mov	x5, x22
	bl	_netdev_dbg
	mov	w23, #0
LBB0_8:
	mov	x0, x23
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_PCH_GBE_FRAME_SIZE_2048,4,2    ; @PCH_GBE_FRAME_SIZE_2048
	.comm	_PCH_GBE_FRAME_SIZE_4096,4,2    ; @PCH_GBE_FRAME_SIZE_4096
	.comm	_PCH_GBE_FRAME_SIZE_8192,4,2    ; @PCH_GBE_FRAME_SIZE_8192
	.comm	_PCH_GBE_MAX_RX_BUFFER_SIZE,4,2 ; @PCH_GBE_MAX_RX_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"max_frame : %d  rx_buffer_len : %d  mtu : %d  max_frame_size : %d\n"

	.no_dead_strip	_pch_gbe_change_mtu
.subsections_via_symbols
