	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm3393_set_mtu
_pm3393_set_mtu:                        ## @pm3393_set_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, %ebx
	addl	$18, %ebx
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rax
	movq	_MAC_DIRECTION_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pm3393_disable
	movq	_SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_pmwrite
	movq	_SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_pmwrite
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pm3393_enable
	jmp	LBB0_5
LBB0_4:
	movq	_SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_pmwrite
	movq	_SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_pmwrite
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FRAME_SIZE,4,2             ## @MAX_FRAME_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAC_DIRECTION_RX,4,2           ## @MAC_DIRECTION_RX
	.comm	_MAC_DIRECTION_TX,4,2           ## @MAC_DIRECTION_TX
	.comm	_SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH,4,2 ## @SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH
	.comm	_SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE,4,2 ## @SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE
	.no_dead_strip	_pm3393_set_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm3393_set_mtu
_pm3393_set_mtu:                        ; @pm3393_set_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
	add	w20, w1, #18
Lloh0:
	adrp	x8, _MAX_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w21, [x8]
	cbz	w21, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MAC_DIRECTION_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MAC_DIRECTION_TX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAC_DIRECTION_TX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_pm3393_disable
Lloh12:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_pmwrite
Lloh15:
	adrp	x8, _SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_pmwrite
	mov	x0, x19
	mov	x1, x21
	bl	_pm3393_enable
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_pmwrite
Lloh21:
	adrp	x8, _SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_pmwrite
LBB0_5:
	mov	w0, #0
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FRAME_SIZE,4,2             ; @MAX_FRAME_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAC_DIRECTION_RX,4,2           ; @MAC_DIRECTION_RX
	.comm	_MAC_DIRECTION_TX,4,2           ; @MAC_DIRECTION_TX
	.comm	_SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH,4,2 ; @SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH
	.comm	_SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE,4,2 ; @SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE
	.no_dead_strip	_pm3393_set_mtu
.subsections_via_symbols
