	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_config_dma_bus
_xgbe_config_dma_bus:                   ## @xgbe_config_dma_bus
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DMA_SBMR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_XGMAC_IOREAD
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	_EAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	(%r15), %esi
	movq	_UNDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	(%r15), %esi
	movq	_BLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	sarl	$2, %ecx
	movl	%ebx, %edi
	callq	_XGMAC_SET_BITS
	movl	(%r15), %esi
	movq	_AAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r14), %ecx
	movl	%ebx, %edi
	callq	_XGMAC_SET_BITS
	movl	(%r15), %esi
	movq	_RD_OSR_LMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14), %ecx
	decl	%ecx
	movl	%ebx, %edi
	callq	_XGMAC_SET_BITS
	movl	(%r15), %esi
	movq	_WR_OSR_LMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r14), %ecx
	decl	%ecx
	movl	%ebx, %edi
	callq	_XGMAC_SET_BITS
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_XGMAC_IOWRITE
	movq	16(%r14), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	_DMA_TXEDMACR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TDPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_XGMAC_IOWRITE_BITS
	movq	16(%r14), %rax
LBB0_2:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	_DMA_RXEDMACR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RDPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XGMAC_IOWRITE_BITS             ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_SBMR,4,2                   ## @DMA_SBMR
	.comm	_EAME,4,2                       ## @EAME
	.comm	_UNDEF,4,2                      ## @UNDEF
	.comm	_BLEN,4,2                       ## @BLEN
	.comm	_AAL,4,2                        ## @AAL
	.comm	_RD_OSR_LMT,4,2                 ## @RD_OSR_LMT
	.comm	_WR_OSR_LMT,4,2                 ## @WR_OSR_LMT
	.comm	_DMA_TXEDMACR,4,2               ## @DMA_TXEDMACR
	.comm	_TDPS,4,2                       ## @TDPS
	.comm	_DMA_RXEDMACR,4,2               ## @DMA_RXEDMACR
	.comm	_RDPS,4,2                       ## @RDPS
	.no_dead_strip	_xgbe_config_dma_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_config_dma_bus
_xgbe_config_dma_bus:                   ; @xgbe_config_dma_bus
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _DMA_SBMR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMA_SBMR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_XGMAC_IOREAD
	mov	x20, x0
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _EAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAME@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _UNDEF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UNDEF@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _BLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w8, [x19]
	asr	w3, w8, #2
	mov	x0, x20
	bl	_XGMAC_SET_BITS
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _AAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AAL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
	mov	x0, x20
	bl	_XGMAC_SET_BITS
	ldr	w1, [x21]
Lloh14:
	adrp	x8, _RD_OSR_LMT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RD_OSR_LMT@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w8, [x19, #8]
	sub	w3, w8, #1
	mov	x0, x20
	bl	_XGMAC_SET_BITS
	ldr	w1, [x21]
Lloh17:
	adrp	x8, _WR_OSR_LMT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WR_OSR_LMT@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	ldr	w8, [x19, #12]
	sub	w3, w8, #1
	mov	x0, x20
	bl	_XGMAC_SET_BITS
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_XGMAC_IOWRITE
	ldr	x8, [x19, #16]
	ldr	x3, [x8, #8]
	cbz	x3, LBB0_2
; %bb.1:
Lloh20:
	adrp	x8, _DMA_TXEDMACR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMA_TXEDMACR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _TDPS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TDPS@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGMAC_IOWRITE_BITS
	ldr	x8, [x19, #16]
LBB0_2:
	ldr	x3, [x8]
	cbz	x3, LBB0_4
; %bb.3:
Lloh26:
	adrp	x8, _DMA_RXEDMACR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DMA_RXEDMACR@GOTPAGEOFF]
Lloh28:
	adrp	x9, _RDPS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RDPS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	ldr	w2, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_XGMAC_IOWRITE_BITS
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_SBMR,4,2                   ; @DMA_SBMR
	.comm	_EAME,4,2                       ; @EAME
	.comm	_UNDEF,4,2                      ; @UNDEF
	.comm	_BLEN,4,2                       ; @BLEN
	.comm	_AAL,4,2                        ; @AAL
	.comm	_RD_OSR_LMT,4,2                 ; @RD_OSR_LMT
	.comm	_WR_OSR_LMT,4,2                 ; @WR_OSR_LMT
	.comm	_DMA_TXEDMACR,4,2               ; @DMA_TXEDMACR
	.comm	_TDPS,4,2                       ; @TDPS
	.comm	_DMA_RXEDMACR,4,2               ; @DMA_RXEDMACR
	.comm	_RDPS,4,2                       ; @RDPS
	.no_dead_strip	_xgbe_config_dma_bus
.subsections_via_symbols
