	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_init_hw
_ftgmac100_init_hw:                     ## @ftgmac100_init_hw
	.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, %r15
	movq	_FTGMAC100_OFFSET_ISR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	16(%r15), %rdi
	callq	_ioread32
	movq	(%rbx), %rsi
	addq	16(%r15), %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movl	(%r15), %edi
	movq	_FTGMAC100_OFFSET_RXR_BADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_iowrite32
	movl	4(%r15), %edi
	movq	_FTGMAC100_OFFSET_NPTXR_BADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_iowrite32
	movq	_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FTGMAC100_RBSR_SIZE
	movq	_FTGMAC100_OFFSET_RBSR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	16(%r15), %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movl	$1, %edi
	callq	_FTGMAC100_APTC_RXPOLL_CNT
	movq	_FTGMAC100_OFFSET_APTC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	16(%r15), %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movq	24(%r15), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ftgmac100_write_mac_addr
	movl	8(%r15), %edi
	movq	_FTGMAC100_OFFSET_MAHT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_iowrite32
	movl	12(%r15), %edi
	movq	_FTGMAC100_OFFSET_MAHT1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_iowrite32
	movl	$2, %edi
	callq	_FTGMAC100_DBLAC_RXDES_SIZE
	movl	%eax, %r14d
	movl	$2, %edi
	callq	_FTGMAC100_DBLAC_TXDES_SIZE
	orl	%eax, %r14d
	movl	$3, %edi
	callq	_FTGMAC100_DBLAC_RXBURST_SIZE
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_FTGMAC100_DBLAC_TXBURST_SIZE
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_FTGMAC100_DBLAC_RX_THR_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$6, %edi
	callq	_FTGMAC100_DBLAC_RXFIFO_HTHR
	movl	%eax, %r14d
	movl	$2, %edi
	callq	_FTGMAC100_DBLAC_RXFIFO_LTHR
	orl	%eax, %r14d
	orl	%ebx, %r14d
	movq	_FTGMAC100_OFFSET_DBLAC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	movl	%r14d, %edi
	callq	_iowrite32
	movl	$1, %edi
	callq	_FTGMAC100_ITC_RXINT_THR
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_FTGMAC100_ITC_TXINT_THR
	orl	%eax, %ebx
	movq	_FTGMAC100_OFFSET_ITC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	movl	%ebx, %edi
	callq	_iowrite32
	movq	_FTGMAC100_OFFSET_FEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	movq	_FTGMAC100_OFFSET_TPAFCR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	16(%r15), %rdi
	callq	_ioread32
	andl	$-1056964609, %eax              ## imm = 0xC0FFFFFF
	andl	$63, %ebx
	shll	$24, %ebx
	orl	%eax, %ebx
	movq	(%r14), %rsi
	addq	16(%r15), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FTGMAC100_OFFSET_ISR,8,3       ## @FTGMAC100_OFFSET_ISR
	.comm	_FTGMAC100_OFFSET_RXR_BADR,8,3  ## @FTGMAC100_OFFSET_RXR_BADR
	.comm	_FTGMAC100_OFFSET_NPTXR_BADR,8,3 ## @FTGMAC100_OFFSET_NPTXR_BADR
	.comm	_RX_BUF_SIZE,4,2                ## @RX_BUF_SIZE
	.comm	_FTGMAC100_OFFSET_RBSR,8,3      ## @FTGMAC100_OFFSET_RBSR
	.comm	_FTGMAC100_OFFSET_APTC,8,3      ## @FTGMAC100_OFFSET_APTC
	.comm	_FTGMAC100_OFFSET_MAHT0,8,3     ## @FTGMAC100_OFFSET_MAHT0
	.comm	_FTGMAC100_OFFSET_MAHT1,8,3     ## @FTGMAC100_OFFSET_MAHT1
	.comm	_FTGMAC100_DBLAC_RX_THR_EN,4,2  ## @FTGMAC100_DBLAC_RX_THR_EN
	.comm	_FTGMAC100_OFFSET_DBLAC,8,3     ## @FTGMAC100_OFFSET_DBLAC
	.comm	_FTGMAC100_OFFSET_ITC,8,3       ## @FTGMAC100_OFFSET_ITC
	.comm	_FTGMAC100_OFFSET_FEAR,8,3      ## @FTGMAC100_OFFSET_FEAR
	.comm	_FTGMAC100_OFFSET_TPAFCR,8,3    ## @FTGMAC100_OFFSET_TPAFCR
	.no_dead_strip	_ftgmac100_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_init_hw
_ftgmac100_init_hw:                     ; @ftgmac100_init_hw
	.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
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x20, _FTGMAC100_OFFSET_ISR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FTGMAC100_OFFSET_ISR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	w0, [x19]
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _FTGMAC100_OFFSET_RXR_BADR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FTGMAC100_OFFSET_RXR_BADR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _FTGMAC100_OFFSET_NPTXR_BADR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FTGMAC100_OFFSET_NPTXR_BADR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
Lloh8:
	adrp	x8, _RX_BUF_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_BUF_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_FTGMAC100_RBSR_SIZE
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _FTGMAC100_OFFSET_RBSR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FTGMAC100_OFFSET_RBSR@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	mov	w0, #1
	bl	_FTGMAC100_APTC_RXPOLL_CNT
	ldr	x8, [x19, #16]
Lloh14:
	adrp	x9, _FTGMAC100_OFFSET_APTC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FTGMAC100_OFFSET_APTC@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ftgmac100_write_mac_addr
	ldr	w0, [x19, #8]
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x9, _FTGMAC100_OFFSET_MAHT0@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FTGMAC100_OFFSET_MAHT0@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	w0, [x19, #12]
	ldr	x8, [x19, #16]
Lloh20:
	adrp	x9, _FTGMAC100_OFFSET_MAHT1@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FTGMAC100_OFFSET_MAHT1@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	mov	w0, #2
	bl	_FTGMAC100_DBLAC_RXDES_SIZE
	mov	x20, x0
	mov	w0, #2
	bl	_FTGMAC100_DBLAC_TXDES_SIZE
	orr	w20, w0, w20
	mov	w0, #3
	bl	_FTGMAC100_DBLAC_RXBURST_SIZE
	orr	w20, w20, w0
	mov	w0, #3
	bl	_FTGMAC100_DBLAC_TXBURST_SIZE
	orr	w8, w20, w0
Lloh23:
	adrp	x9, _FTGMAC100_DBLAC_RX_THR_EN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FTGMAC100_DBLAC_RX_THR_EN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	w0, #6
	bl	_FTGMAC100_DBLAC_RXFIFO_HTHR
	orr	w20, w20, w0
	mov	w0, #2
	bl	_FTGMAC100_DBLAC_RXFIFO_LTHR
	orr	w0, w20, w0
	ldr	x8, [x19, #16]
Lloh26:
	adrp	x9, _FTGMAC100_OFFSET_DBLAC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FTGMAC100_OFFSET_DBLAC@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	mov	w0, #1
	bl	_FTGMAC100_ITC_RXINT_THR
	mov	x20, x0
	mov	w0, #1
	bl	_FTGMAC100_ITC_TXINT_THR
	orr	w0, w0, w20
	ldr	x8, [x19, #16]
Lloh29:
	adrp	x9, _FTGMAC100_OFFSET_ITC@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FTGMAC100_OFFSET_ITC@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	x8, [x19, #16]
Lloh32:
	adrp	x9, _FTGMAC100_OFFSET_FEAR@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FTGMAC100_OFFSET_FEAR@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	mov	x20, x0
	ldr	x8, [x19, #16]
Lloh35:
	adrp	x21, _FTGMAC100_OFFSET_TPAFCR@GOTPAGE
Lloh36:
	ldr	x21, [x21, _FTGMAC100_OFFSET_TPAFCR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	bfi	w0, w20, #24, #6
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	add	x1, x9, x8
	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	_iowrite32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_FTGMAC100_OFFSET_ISR,8,3       ; @FTGMAC100_OFFSET_ISR
	.comm	_FTGMAC100_OFFSET_RXR_BADR,8,3  ; @FTGMAC100_OFFSET_RXR_BADR
	.comm	_FTGMAC100_OFFSET_NPTXR_BADR,8,3 ; @FTGMAC100_OFFSET_NPTXR_BADR
	.comm	_RX_BUF_SIZE,4,2                ; @RX_BUF_SIZE
	.comm	_FTGMAC100_OFFSET_RBSR,8,3      ; @FTGMAC100_OFFSET_RBSR
	.comm	_FTGMAC100_OFFSET_APTC,8,3      ; @FTGMAC100_OFFSET_APTC
	.comm	_FTGMAC100_OFFSET_MAHT0,8,3     ; @FTGMAC100_OFFSET_MAHT0
	.comm	_FTGMAC100_OFFSET_MAHT1,8,3     ; @FTGMAC100_OFFSET_MAHT1
	.comm	_FTGMAC100_DBLAC_RX_THR_EN,4,2  ; @FTGMAC100_DBLAC_RX_THR_EN
	.comm	_FTGMAC100_OFFSET_DBLAC,8,3     ; @FTGMAC100_OFFSET_DBLAC
	.comm	_FTGMAC100_OFFSET_ITC,8,3       ; @FTGMAC100_OFFSET_ITC
	.comm	_FTGMAC100_OFFSET_FEAR,8,3      ; @FTGMAC100_OFFSET_FEAR
	.comm	_FTGMAC100_OFFSET_TPAFCR,8,3    ; @FTGMAC100_OFFSET_TPAFCR
	.no_dead_strip	_ftgmac100_init_hw
.subsections_via_symbols
