	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_write_rss_reg
_xlgmac_write_rss_reg:                  ## @xlgmac_write_rss_reg
	.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	%ecx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	callq	_mutex_lock
	movq	_MAC_RSSAR@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movq	_MAC_RSSAR_OB_POS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MAC_RSSAR_OB_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%eax, %edi
	callq	_XLGMAC_GET_REG_BITS
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_MAC_RSSDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	(%r13), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movq	_MAC_RSSAR_RSSIA_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_RSSAR_RSSIA_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_XLGMAC_SET_REG_BITS
	movq	_MAC_RSSAR_ADDRT_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_RSSAR_ADDRT_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_XLGMAC_SET_REG_BITS
	movq	_MAC_RSSAR_CT_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_RSSAR_CT_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movq	%rbx, %rcx
	movq	%r15, %rbx
	movl	(%r15), %esi
	movq	%rcx, %r14
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movq	%r13, %r15
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	$-1000, %r13d                   ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movl	%eax, %edi
	callq	_XLGMAC_GET_REG_BITS
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	incl	%r13d
	jne	LBB0_2
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_RSSAR,8,3                  ## @MAC_RSSAR
	.comm	_MAC_RSSAR_OB_POS,4,2           ## @MAC_RSSAR_OB_POS
	.comm	_MAC_RSSAR_OB_LEN,4,2           ## @MAC_RSSAR_OB_LEN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MAC_RSSDR,8,3                  ## @MAC_RSSDR
	.comm	_MAC_RSSAR_RSSIA_POS,4,2        ## @MAC_RSSAR_RSSIA_POS
	.comm	_MAC_RSSAR_RSSIA_LEN,4,2        ## @MAC_RSSAR_RSSIA_LEN
	.comm	_MAC_RSSAR_ADDRT_POS,4,2        ## @MAC_RSSAR_ADDRT_POS
	.comm	_MAC_RSSAR_ADDRT_LEN,4,2        ## @MAC_RSSAR_ADDRT_LEN
	.comm	_MAC_RSSAR_CT_POS,4,2           ## @MAC_RSSAR_CT_POS
	.comm	_MAC_RSSAR_CT_LEN,4,2           ## @MAC_RSSAR_CT_LEN
	.no_dead_strip	_xlgmac_write_rss_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_write_rss_reg
_xlgmac_write_rss_reg:                  ; @xlgmac_write_rss_reg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x23, _MAC_RSSAR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAC_RSSAR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x24, _MAC_RSSAR_OB_POS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAC_RSSAR_OB_POS@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh4:
	adrp	x25, _MAC_RSSAR_OB_LEN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MAC_RSSAR_OB_LEN@GOTPAGEOFF]
	ldr	w2, [x25]
	bl	_XLGMAC_GET_REG_BITS
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _MAC_RSSDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAC_RSSDR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh9:
	adrp	x8, _MAC_RSSAR_RSSIA_POS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAC_RSSAR_RSSIA_POS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MAC_RSSAR_RSSIA_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAC_RSSAR_RSSIA_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x3, x21
	bl	_XLGMAC_SET_REG_BITS
Lloh15:
	adrp	x8, _MAC_RSSAR_ADDRT_POS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAC_RSSAR_ADDRT_POS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _MAC_RSSAR_ADDRT_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAC_RSSAR_ADDRT_LEN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_XLGMAC_SET_REG_BITS
Lloh21:
	adrp	x8, _MAC_RSSAR_CT_POS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAC_RSSAR_CT_POS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _MAC_RSSAR_CT_LEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAC_RSSAR_CT_LEN@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XLGMAC_SET_REG_BITS
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	w20, #-1000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	w1, [x24]
	ldr	w2, [x25]
	bl	_XLGMAC_GET_REG_BITS
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
	adds	w20, w20, #1
	b.lo	LBB0_2
LBB0_4:
Lloh27:
	adrp	x8, _EBUSY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_RSSAR,8,3                  ; @MAC_RSSAR
	.comm	_MAC_RSSAR_OB_POS,4,2           ; @MAC_RSSAR_OB_POS
	.comm	_MAC_RSSAR_OB_LEN,4,2           ; @MAC_RSSAR_OB_LEN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MAC_RSSDR,8,3                  ; @MAC_RSSDR
	.comm	_MAC_RSSAR_RSSIA_POS,4,2        ; @MAC_RSSAR_RSSIA_POS
	.comm	_MAC_RSSAR_RSSIA_LEN,4,2        ; @MAC_RSSAR_RSSIA_LEN
	.comm	_MAC_RSSAR_ADDRT_POS,4,2        ; @MAC_RSSAR_ADDRT_POS
	.comm	_MAC_RSSAR_ADDRT_LEN,4,2        ; @MAC_RSSAR_ADDRT_LEN
	.comm	_MAC_RSSAR_CT_POS,4,2           ; @MAC_RSSAR_CT_POS
	.comm	_MAC_RSSAR_CT_LEN,4,2           ; @MAC_RSSAR_CT_LEN
	.no_dead_strip	_xlgmac_write_rss_reg
.subsections_via_symbols
