	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_change_mtu
_sky2_change_mtu:                       ## @sky2_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
	subq	$40, %rsp
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_ETH_JUMBO_MTU@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jl	LBB0_2
## %bb.3:
	movq	8(%rbx), %r15
	movl	(%rbx), %r12d
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jge	LBB0_6
## %bb.4:
	movq	(%r15), %rax
	movq	_CHIP_ID_YUKON_FE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.5:
	movq	_CHIP_ID_YUKON_FE_P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
LBB0_6:
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_B0_IMSK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_sky2_read32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_sky2_write32
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_netif_stop_queue
	leaq	12(%r15), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_napi_disable
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_synchronize_irq
	movq	_SKY2_HW_RAM_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_sky2_set_tx_stfwd
LBB0_10:
	movq	_GM_GP_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_gma_read16
	movl	(%rbx), %edx
	movq	_GM_GPCR_RX_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	andl	%eax, %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_gma_write16
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sky2_rx_stop
	movq	%rbx, %rdi
	callq	_sky2_rx_clean
	movl	%r13d, (%r14)
	movq	_DATA_BLIND_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DATA_BLIND_VAL
	movl	%eax, %ebx
	movq	_GM_SMOD_VLAN_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_IPG_DATA_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IPG_DATA_VAL
	orl	%ebx, %eax
	movl	(%r14), %ecx
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movl	$0, %ecx
	jle	LBB0_12
## %bb.11:
	movq	_GM_SMOD_JUMBO_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_12:
	orl	%ecx, %eax
	movq	_GM_SERIAL_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	callq	_gma_write16
	movq	_rxqaddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %edi
	movq	_RB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RB_ADDR
	movq	_RB_ENA_OP_MD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_sky2_rx_start
	movl	%eax, %ebx
	movq	_B0_IMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_sky2_write32
	movq	_B0_Y2_SP_LISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sky2_read32
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_napi_enable
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_dev_close
	jmp	LBB0_16
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_7:
	movl	%r13d, (%r14)
	jmp	LBB0_15
LBB0_14:
	movq	_GM_GP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_gma_write16
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_ETH_JUMBO_MTU,4,2              ## @ETH_JUMBO_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_CHIP_ID_YUKON_FE,8,3           ## @CHIP_ID_YUKON_FE
	.comm	_CHIP_ID_YUKON_FE_P,8,3         ## @CHIP_ID_YUKON_FE_P
	.comm	_B0_IMSK,4,2                    ## @B0_IMSK
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_SKY2_HW_RAM_BUFFER,4,2         ## @SKY2_HW_RAM_BUFFER
	.comm	_GM_GP_CTRL,4,2                 ## @GM_GP_CTRL
	.comm	_GM_GPCR_RX_ENA,4,2             ## @GM_GPCR_RX_ENA
	.comm	_DATA_BLIND_DEF,4,2             ## @DATA_BLIND_DEF
	.comm	_GM_SMOD_VLAN_ENA,4,2           ## @GM_SMOD_VLAN_ENA
	.comm	_IPG_DATA_DEF,4,2               ## @IPG_DATA_DEF
	.comm	_GM_SMOD_JUMBO_ENA,4,2          ## @GM_SMOD_JUMBO_ENA
	.comm	_GM_SERIAL_MODE,4,2             ## @GM_SERIAL_MODE
	.comm	_rxqaddr,8,3                    ## @rxqaddr
	.comm	_RB_CTRL,4,2                    ## @RB_CTRL
	.comm	_RB_ENA_OP_MD,4,2               ## @RB_ENA_OP_MD
	.comm	_B0_Y2_SP_LISR,4,2              ## @B0_Y2_SP_LISR
	.no_dead_strip	_sky2_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_change_mtu
_sky2_change_mtu:                       ; @sky2_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	x25, x1
	mov	x19, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETH_JUMBO_MTU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_JUMBO_MTU@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w25
	ccmp	w9, w25, #8, le
	b.ge	LBB0_3
LBB0_1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_2:
	mov	x0, x22
	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_3:
	mov	x22, x0
	ldr	x20, [x0, #8]
	ldr	w21, [x0]
Lloh9:
	adrp	x28, _ETH_DATA_LEN@GOTPAGE
Lloh10:
	ldr	x28, [x28, _ETH_DATA_LEN@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, w25
	b.ge	LBB0_5
; %bb.4:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _CHIP_ID_YUKON_FE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CHIP_ID_YUKON_FE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _CHIP_ID_YUKON_FE_P@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CHIP_ID_YUKON_FE_P@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_1
LBB0_5:
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_10
; %bb.6:
Lloh17:
	adrp	x24, _B0_IMSK@GOTPAGE
Lloh18:
	ldr	x24, [x24, _B0_IMSK@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_sky2_read32
	mov	x23, x0
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #0
	bl	_sky2_write32
Lloh19:
	adrp	x8, _jiffies@GOTPAGE
Lloh20:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_netif_stop_queue
	add	x24, x20, #12
	mov	x0, x24
	bl	_napi_disable
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_synchronize_irq
	ldr	w8, [x20, #8]
Lloh22:
	adrp	x9, _SKY2_HW_RAM_BUFFER@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SKY2_HW_RAM_BUFFER@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_sky2_set_tx_stfwd
LBB0_8:
Lloh25:
	adrp	x27, _GM_GP_CTRL@GOTPAGE
Lloh26:
	ldr	x27, [x27, _GM_GP_CTRL@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_gma_read16
	mov	x26, x0
	ldr	w2, [x27]
Lloh27:
	adrp	x8, _GM_GPCR_RX_ENA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GM_GPCR_RX_ENA@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	bic	w3, w0, w8
	mov	x0, x20
	mov	x1, x21
	bl	_gma_write16
	mov	x0, x22
	bl	_sky2_rx_stop
	mov	x0, x22
	bl	_sky2_rx_clean
	str	w25, [x19]
Lloh30:
	adrp	x8, _DATA_BLIND_DEF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DATA_BLIND_DEF@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_DATA_BLIND_VAL
Lloh33:
	adrp	x8, _GM_SMOD_VLAN_ENA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GM_SMOD_VLAN_ENA@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w25, w8, w0
Lloh36:
	adrp	x8, _IPG_DATA_DEF@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IPG_DATA_DEF@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_IPG_DATA_VAL
	orr	w8, w25, w0
	ldr	w9, [x19]
	ldr	w10, [x28]
Lloh39:
	adrp	x11, _GM_SMOD_JUMBO_ENA@GOTPAGE
Lloh40:
	ldr	x11, [x11, _GM_SMOD_JUMBO_ENA@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x11]
	cmp	w9, w10
	csel	w9, w11, wzr, gt
	orr	w3, w8, w9
Lloh42:
	adrp	x8, _GM_SERIAL_MODE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GM_SERIAL_MODE@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_gma_write16
Lloh45:
	adrp	x8, _rxqaddr@GOTPAGE
Lloh46:
	ldr	x8, [x8, _rxqaddr@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	ldr	w0, [x8, x21, lsl #2]
Lloh48:
	adrp	x8, _RB_CTRL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _RB_CTRL@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_RB_ADDR
	mov	x1, x0
Lloh51:
	adrp	x8, _RB_ENA_OP_MD@GOTPAGE
Lloh52:
	ldr	x8, [x8, _RB_ENA_OP_MD@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write8
	mov	x0, x22
	bl	_sky2_rx_start
	mov	x22, x0
Lloh54:
	adrp	x8, _B0_IMSK@GOTPAGE
Lloh55:
	ldr	x8, [x8, _B0_IMSK@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_sky2_write32
Lloh57:
	adrp	x8, _B0_Y2_SP_LISR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _B0_Y2_SP_LISR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sky2_read32
	mov	x0, x24
	bl	_napi_enable
	cbz	w22, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_dev_close
	b	LBB0_2
LBB0_10:
	mov	w22, #0
	str	w25, [x19]
	b	LBB0_2
LBB0_11:
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x26
	bl	_gma_write16
	mov	x0, x19
	bl	_netif_wake_queue
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_ETH_JUMBO_MTU,4,2              ; @ETH_JUMBO_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_CHIP_ID_YUKON_FE,8,3           ; @CHIP_ID_YUKON_FE
	.comm	_CHIP_ID_YUKON_FE_P,8,3         ; @CHIP_ID_YUKON_FE_P
	.comm	_B0_IMSK,4,2                    ; @B0_IMSK
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_SKY2_HW_RAM_BUFFER,4,2         ; @SKY2_HW_RAM_BUFFER
	.comm	_GM_GP_CTRL,4,2                 ; @GM_GP_CTRL
	.comm	_GM_GPCR_RX_ENA,4,2             ; @GM_GPCR_RX_ENA
	.comm	_DATA_BLIND_DEF,4,2             ; @DATA_BLIND_DEF
	.comm	_GM_SMOD_VLAN_ENA,4,2           ; @GM_SMOD_VLAN_ENA
	.comm	_IPG_DATA_DEF,4,2               ; @IPG_DATA_DEF
	.comm	_GM_SMOD_JUMBO_ENA,4,2          ; @GM_SMOD_JUMBO_ENA
	.comm	_GM_SERIAL_MODE,4,2             ; @GM_SERIAL_MODE
	.comm	_rxqaddr,8,3                    ; @rxqaddr
	.comm	_RB_CTRL,4,2                    ; @RB_CTRL
	.comm	_RB_ENA_OP_MD,4,2               ; @RB_ENA_OP_MD
	.comm	_B0_Y2_SP_LISR,4,2              ; @B0_Y2_SP_LISR
	.no_dead_strip	_sky2_change_mtu
.subsections_via_symbols
