	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_system_regs              ## -- Begin function setup_system_regs
	.p2align	4, 0x90
_setup_system_regs:                     ## @setup_system_regs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_bfin_read_EMAC_SYSCTL
	movq	_RXDWA@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movzwl	%ax, %edi
	callq	_bfin_write_EMAC_SYSCTL
	movq	_RSTC@GOTPCREL(%rip), %rax
	movq	_CROLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_bfin_write_EMAC_MMC_CTL
	xorl	%edi, %edi
	callq	_bfin_write_DMA2_X_COUNT
	movl	$4, %edi
	callq	_bfin_write_DMA2_X_MODIFY
	xorl	%edi, %edi
	callq	_bfin_write_DMA2_Y_COUNT
	xorl	%edi, %edi
	callq	_bfin_write_DMA2_Y_MODIFY
	xorl	%edi, %edi
	callq	_bfin_write_DMA1_X_COUNT
	movl	$4, %edi
	callq	_bfin_write_DMA1_X_MODIFY
	xorl	%edi, %edi
	callq	_bfin_write_DMA1_Y_COUNT
	xorl	%edi, %edi
	popq	%rbp
	jmp	_bfin_write_DMA1_Y_MODIFY       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RXDWA,2,1                      ## @RXDWA
	.comm	_RSTC,4,2                       ## @RSTC
	.comm	_CROLL,4,2                      ## @CROLL
	.comm	_RXCKS,2,1                      ## @RXCKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_system_regs              ; -- Begin function setup_system_regs
	.p2align	2
_setup_system_regs:                     ; @setup_system_regs
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_bfin_read_EMAC_SYSCTL
Lloh0:
	adrp	x8, _RXDWA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RXDWA@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w0, w8, w0
	bl	_bfin_write_EMAC_SYSCTL
Lloh2:
	adrp	x8, _RSTC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RSTC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CROLL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CROLL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_bfin_write_EMAC_MMC_CTL
	mov	w0, #0
	bl	_bfin_write_DMA2_X_COUNT
	mov	w0, #4
	bl	_bfin_write_DMA2_X_MODIFY
	mov	w0, #0
	bl	_bfin_write_DMA2_Y_COUNT
	mov	w0, #0
	bl	_bfin_write_DMA2_Y_MODIFY
	mov	w0, #0
	bl	_bfin_write_DMA1_X_COUNT
	mov	w0, #4
	bl	_bfin_write_DMA1_X_MODIFY
	mov	w0, #0
	bl	_bfin_write_DMA1_Y_COUNT
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_bfin_write_DMA1_Y_MODIFY
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RXDWA,2,1                      ; @RXDWA
	.comm	_RSTC,4,2                       ; @RSTC
	.comm	_CROLL,4,2                      ; @CROLL
	.comm	_RXCKS,2,1                      ; @RXCKS
.subsections_via_symbols
