	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_write_rss_reg
_xgbe_write_rss_reg:                    ## @xgbe_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, %ebx
	movl	%edx, %r14d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	callq	_mutex_lock
	movq	_MAC_RSSAR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_OB@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_XGMAC_IOREAD_BITS
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_MAC_RSSDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_XGMAC_IOWRITE
	movl	(%r13), %esi
	movq	_RSSIA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_XGMAC_IOWRITE_BITS
	movl	(%r13), %esi
	movq	_ADDRT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_XGMAC_IOWRITE_BITS
	movl	(%r13), %esi
	movq	_CT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_XGMAC_IOWRITE_BITS
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_XGMAC_IOWRITE_BITS
	movl	$-1000, %ebx                    ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_XGMAC_IOREAD_BITS
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	incl	%ebx
	jne	LBB0_2
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_RSSAR,4,2                  ## @MAC_RSSAR
	.comm	_OB,4,2                         ## @OB
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MAC_RSSDR,4,2                  ## @MAC_RSSDR
	.comm	_RSSIA,4,2                      ## @RSSIA
	.comm	_ADDRT,4,2                      ## @ADDRT
	.comm	_CT,4,2                         ## @CT
	.no_dead_strip	_xgbe_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 xgbe_write_rss_reg
_xgbe_write_rss_reg:                    ; @xgbe_write_rss_reg
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x23, _MAC_RSSAR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAC_RSSAR@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _OB@GOTPAGE
Lloh3:
	ldr	x24, [x24, _OB@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_XGMAC_IOREAD_BITS
	cbnz	x0, LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _MAC_RSSDR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAC_RSSDR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_XGMAC_IOWRITE
	ldr	w1, [x23]
Lloh7:
	adrp	x8, _RSSIA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RSSIA@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_XGMAC_IOWRITE_BITS
	ldr	w1, [x23]
Lloh10:
	adrp	x8, _ADDRT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADDRT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_XGMAC_IOWRITE_BITS
	ldr	w1, [x23]
Lloh13:
	adrp	x8, _CT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_XGMAC_IOWRITE_BITS
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w3, #1
	bl	_XGMAC_IOWRITE_BITS
	mov	w20, #-1000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_XGMAC_IOREAD_BITS
	cbz	x0, 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:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh18:
	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, #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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_RSSAR,4,2                  ; @MAC_RSSAR
	.comm	_OB,4,2                         ; @OB
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MAC_RSSDR,4,2                  ; @MAC_RSSDR
	.comm	_RSSIA,4,2                      ; @RSSIA
	.comm	_ADDRT,4,2                      ; @ADDRT
	.comm	_CT,4,2                         ; @CT
	.no_dead_strip	_xgbe_write_rss_reg
.subsections_via_symbols
