	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_setup_mss
_xgene_enet_setup_mss:                  ## @xgene_enet_setup_mss
	.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
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %r12d
	negl	%r12d
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_NUM_MSS_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.1:
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movq	8(%r15), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%rcx,%rdx,4)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	incl	(%rax,%rdx,4)
	movl	(%r13), %eax
	movl	%edx, %r12d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jns	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	movslq	%eax, %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_3
LBB0_6:
	testl	%r12d, %r12d
	jns	LBB0_13
## %bb.7:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, (%rcx,%rbx,4)
	movq	16(%r15), %rax
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	*(%rax)
	movq	8(%r15), %rax
	movl	%r14d, (%rax,%rbx,4)
	movl	(%r13), %eax
	movl	%ebx, %r12d
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%r12d, %r12d
	jns	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_9
LBB0_13:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NUM_MSS_REG,4,2                ## @NUM_MSS_REG
	.no_dead_strip	_xgene_enet_setup_mss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_setup_mss
_xgene_enet_setup_mss:                  ; @xgene_enet_setup_mss
	.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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	neg	w21, w22
	bl	_spin_lock
Lloh3:
	adrp	x23, _NUM_MSS_REG@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NUM_MSS_REG@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w22, #1
	ccmp	w8, #1, #8, ge
	b.lt	LBB0_6
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	cmp	w11, w20
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #24]
	lsl	x11, x9, #2
	ldr	w12, [x8, x11]
	add	w12, w12, #1
	str	w12, [x8, x11]
	ldr	w8, [x23]
	mov	x21, x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbz	w21, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	sxtw	x11, w8
	cmp	x9, x11
	b.lt	LBB0_2
LBB0_6:
	tbz	w21, #31, LBB0_13
; %bb.7:
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x22, #0
	mov	w24, #1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	w10, [x9, x22, lsl #2]
	cbnz	w10, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	lsl	x21, x22, #2
	str	w24, [x9, x21]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	blr	x8
	ldr	x8, [x19, #8]
	str	w20, [x8, x21]
	ldr	w8, [x23]
	mov	x21, x22
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	tbz	w21, #31, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	sxtw	x9, w8
	cmp	x22, x9
	b.lt	LBB0_9
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x21
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NUM_MSS_REG,4,2                ; @NUM_MSS_REG
	.no_dead_strip	_xgene_enet_setup_mss
.subsections_via_symbols
