	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ave_desc_switch
_ave_desc_switch:                       ## @ave_desc_switch
	.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
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_4
## %bb.1:
	movq	%rax, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_AVE_DESCC@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_writel
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	xorl	%edx, %edx
	movl	$150, %ecx
	movl	$15000, %r8d                    ## imm = 0x3A98
	callq	_readl_poll_timeout
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_AVE_DESCC_TD@GOTPCREL(%rip), %rax
	movq	_AVE_DESCC_RD0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_AVE_DESCC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_11
LBB0_6:
	movq	_AVE_DESCC@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_AVE_DESCC_RDSTP@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movq	_AVE_DESCC_STATUS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	movl	(%r13), %edx
	shll	$16, %edx
	andl	%ebx, %edx
	movl	%ebx, %esi
	movl	$150, %ecx
	movl	$150000, %r8d                   ## imm = 0x249F0
	callq	_readl_poll_timeout
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_10:
	movq	_AVE_DESCC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_AVE_DESCC_RDSTP@GOTPCREL(%rip), %rcx
	movq	_AVE_DESCC_STATUS_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
LBB0_11:
	addq	(%r15), %rsi
	callq	_writel
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_AVE_DESCC_TD,4,2               ## @AVE_DESCC_TD
	.comm	_AVE_DESCC_RD0,4,2              ## @AVE_DESCC_RD0
	.comm	_AVE_DESCC,8,3                  ## @AVE_DESCC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't stop descriptor\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_AVE_DESCC_RDSTP,4,2            ## @AVE_DESCC_RDSTP
	.comm	_AVE_DESCC_STATUS_MASK,4,2      ## @AVE_DESCC_STATUS_MASK
L_.str.1:                               ## @.str.1
	.asciz	"can't suspend descriptor\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ave_desc_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ave_desc_switch
_ave_desc_switch:                       ; @ave_desc_switch
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _AVE_DESCC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AVE_DESCC@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	w2, #0
	mov	w3, #150
	mov	w4, #15000
	bl	_readl_poll_timeout
	cbz	w0, LBB0_12
; %bb.3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _AVE_DESCC_TD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVE_DESCC_TD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _AVE_DESCC_RD0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AVE_DESCC_RD0@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _AVE_DESCC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AVE_DESCC@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	b	LBB0_11
LBB0_6:
	ldr	x8, [x20]
Lloh17:
	adrp	x22, _AVE_DESCC@GOTPAGE
Lloh18:
	ldr	x22, [x22, _AVE_DESCC@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh19:
	adrp	x23, _AVE_DESCC_RDSTP@GOTPAGE
Lloh20:
	ldr	x23, [x23, _AVE_DESCC_RDSTP@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh21:
	adrp	x9, _AVE_DESCC_STATUS_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AVE_DESCC_STATUS_MASK@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh23:
	ldr	w9, [x9]
	bic	w21, w8, w9
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x0, x9, x8
	ldr	w8, [x23]
	and	w2, w21, w8, lsl #16
	mov	x1, x21
	mov	w3, #150
	mov	w4, #18928
	movk	w4, #2, lsl #16
	bl	_readl_poll_timeout
	cbz	w0, LBB0_12
; %bb.7:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_netdev_err
Lloh26:
	adrp	x8, _EBUSY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
	ldr	x8, [x20]
Lloh28:
	adrp	x19, _AVE_DESCC@GOTPAGE
Lloh29:
	ldr	x19, [x19, _AVE_DESCC@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_readl
Lloh30:
	adrp	x8, _AVE_DESCC_RDSTP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AVE_DESCC_RDSTP@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _AVE_DESCC_STATUS_MASK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AVE_DESCC_STATUS_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	x8, [x20]
	ldr	x9, [x19]
LBB0_11:
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
LBB0_12:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_AVE_DESCC_TD,4,2               ; @AVE_DESCC_TD
	.comm	_AVE_DESCC_RD0,4,2              ; @AVE_DESCC_RD0
	.comm	_AVE_DESCC,8,3                  ; @AVE_DESCC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't stop descriptor\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_AVE_DESCC_RDSTP,4,2            ; @AVE_DESCC_RDSTP
	.comm	_AVE_DESCC_STATUS_MASK,4,2      ; @AVE_DESCC_STATUS_MASK
l_.str.1:                               ; @.str.1
	.asciz	"can't suspend descriptor\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ave_desc_switch
.subsections_via_symbols
