	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_config_sph_mode
_xlgmac_config_sph_mode:                ## @xlgmac_config_sph_mode
	.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
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	16(%r14), %rbx
	xorl	%r12d, %r12d
	movq	_DMA_CH_CR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_XLGMAC_DMA_REG
	movq	%rax, %rdi
	callq	_readl
	movq	_DMA_CH_CR_SPH_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DMA_CH_CR_SPH_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_XLGMAC_DMA_REG
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_writel
	incl	%r12d
	addq	$4, %rbx
	cmpl	(%r14), %r12d
	jb	LBB0_2
LBB0_4:
	movq	_MAC_RCR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_MAC_RCR_HDSMS_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_RCR_HDSMS_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_XLGMAC_SPH_HDSMS_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	callq	_XLGMAC_SET_REG_BITS
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CH_CR,4,2                  ## @DMA_CH_CR
	.comm	_DMA_CH_CR_SPH_POS,4,2          ## @DMA_CH_CR_SPH_POS
	.comm	_DMA_CH_CR_SPH_LEN,4,2          ## @DMA_CH_CR_SPH_LEN
	.comm	_MAC_RCR,8,3                    ## @MAC_RCR
	.comm	_MAC_RCR_HDSMS_POS,4,2          ## @MAC_RCR_HDSMS_POS
	.comm	_MAC_RCR_HDSMS_LEN,4,2          ## @MAC_RCR_HDSMS_LEN
	.comm	_XLGMAC_SPH_HDSMS_SIZE,4,2      ## @XLGMAC_SPH_HDSMS_SIZE
	.no_dead_strip	_xlgmac_config_sph_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_config_sph_mode
_xlgmac_config_sph_mode:                ; @xlgmac_config_sph_mode
	.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	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	w22, #0
	ldr	x20, [x19, #16]
Lloh0:
	adrp	x23, _DMA_CH_CR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_CH_CR@GOTPAGEOFF]
Lloh2:
	adrp	x24, _DMA_CH_CR_SPH_POS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DMA_CH_CR_SPH_POS@GOTPAGEOFF]
Lloh4:
	adrp	x25, _DMA_CH_CR_SPH_LEN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DMA_CH_CR_SPH_LEN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_XLGMAC_DMA_REG
	bl	_readl
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x20
	bl	_XLGMAC_DMA_REG
	mov	x1, x0
	mov	x0, x21
	bl	_writel
	add	w22, w22, #1
	add	x20, x20, #4
	ldr	w8, [x19]
	cmp	w22, w8
	b.lo	LBB0_2
LBB0_4:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x20, _MAC_RCR@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MAC_RCR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh8:
	adrp	x8, _MAC_RCR_HDSMS_POS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_RCR_HDSMS_POS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _MAC_RCR_HDSMS_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAC_RCR_HDSMS_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _XLGMAC_SPH_HDSMS_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XLGMAC_SPH_HDSMS_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_XLGMAC_SET_REG_BITS
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CH_CR,4,2                  ; @DMA_CH_CR
	.comm	_DMA_CH_CR_SPH_POS,4,2          ; @DMA_CH_CR_SPH_POS
	.comm	_DMA_CH_CR_SPH_LEN,4,2          ; @DMA_CH_CR_SPH_LEN
	.comm	_MAC_RCR,8,3                    ; @MAC_RCR
	.comm	_MAC_RCR_HDSMS_POS,4,2          ; @MAC_RCR_HDSMS_POS
	.comm	_MAC_RCR_HDSMS_LEN,4,2          ; @MAC_RCR_HDSMS_LEN
	.comm	_XLGMAC_SPH_HDSMS_SIZE,4,2      ; @XLGMAC_SPH_HDSMS_SIZE
	.no_dead_strip	_xlgmac_config_sph_mode
.subsections_via_symbols
