	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_change_mtu
_rtl8152_change_mtu:                    ## @rtl8152_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, %r13d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	movl	%r13d, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_2:
	movl	4(%r15), %edi
	callq	_usb_autopm_get_interface
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	%r13d, (%rbx)
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movslq	%r13d, %rcx
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLA_RMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ocp_write_word
	movq	%rbx, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_r8153_set_rx_early_size
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	4(%r15), %edi
	callq	_usb_autopm_put_interface
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_PLA_RMS,4,2                    ## @PLA_RMS
	.no_dead_strip	_rtl8152_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8152_change_mtu
_rtl8152_change_mtu:                    ; @rtl8152_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	x23, x1
	mov	x21, x0
	bl	_netdev_priv
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	mov	w19, #0
	str	w23, [x21]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_usb_autopm_get_interface
	mov	x19, x0
	tbnz	w0, #31, LBB0_7
; %bb.3:
	add	x22, x20, #8
	mov	x0, x22
	bl	_mutex_lock
	str	w23, [x21]
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _VLAN_ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w23, sxtw
Lloh3:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x3, x8, x9
Lloh6:
	adrp	x8, _MCU_TYPE_PLA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCU_TYPE_PLA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _PLA_RMS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PLA_RMS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ocp_write_word
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_r8153_set_rx_early_size
LBB0_6:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w0, [x20, #4]
	bl	_usb_autopm_put_interface
LBB0_7:
	mov	x0, x19
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_PLA_RMS,4,2                    ; @PLA_RMS
	.no_dead_strip	_rtl8152_change_mtu
.subsections_via_symbols
