	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_start_hw
_ftgmac100_start_hw:                    ## @ftgmac100_start_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	%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, %r15
	movq	_FTGMAC100_OFFSET_MACCR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%r15), %rdi
	callq	_ioread32
	movq	_FTGMAC100_MACCR_FAST_MODE@GOTPCREL(%rip), %rcx
	movq	_FTGMAC100_MACCR_GIGA_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_FTGMAC100_MACCR_TXDMA_EN@GOTPCREL(%rip), %r8
	movq	_FTGMAC100_MACCR_RXDMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %r9
	movq	(%r15), %rsi
	movq	16(%r15), %rdi
	xorl	%ecx, %ecx
	cmpq	(%r9), %rsi
	jne	LBB0_2
## %bb.1:
	movq	_FTGMAC100_MACCR_FULLDUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	andl	%eax, %edx
	orl	(%r8), %ebx
	movq	_FTGMAC100_MACCR_TXMAC_EN@GOTPCREL(%rip), %r13
	movq	_FTGMAC100_MACCR_RXMAC_EN@GOTPCREL(%rip), %r12
	movq	_FTGMAC100_MACCR_CRC_APD@GOTPCREL(%rip), %r11
	movq	_FTGMAC100_MACCR_PHY_LINK_LEVEL@GOTPCREL(%rip), %r10
	movq	_FTGMAC100_MACCR_RX_RUNT@GOTPCREL(%rip), %r9
	movq	_FTGMAC100_MACCR_RX_BROADPKT@GOTPCREL(%rip), %r8
	movl	(%rdi), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	je	LBB0_4
## %bb.3:
	movq	_FTGMAC100_MACCR_RX_ALL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_4:
	orl	%esi, %ecx
	orl	%edx, %ebx
	orl	(%r13), %ebx
	orl	(%r12), %ebx
	orl	(%r11), %ebx
	orl	(%r10), %ebx
	orl	(%r9), %ebx
	orl	(%r8), %ebx
	orl	%ecx, %ebx
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_FTGMAC100_MACCR_RX_MULTIPKT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	callq	_netdev_mc_count
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_FTGMAC100_MACCR_HT_MULTI_EN@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %ebx
LBB0_9:
	movq	16(%r15), %rax
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	4(%rax), %edi
	je	LBB0_11
## %bb.10:
	movq	_FTGMAC100_MACCR_RM_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_11:
	orl	%ebx, %edi
	movq	(%r14), %rsi
	addq	8(%r15), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FTGMAC100_OFFSET_MACCR,8,3     ## @FTGMAC100_OFFSET_MACCR
	.comm	_FTGMAC100_MACCR_FAST_MODE,4,2  ## @FTGMAC100_MACCR_FAST_MODE
	.comm	_FTGMAC100_MACCR_GIGA_MODE,4,2  ## @FTGMAC100_MACCR_GIGA_MODE
	.comm	_FTGMAC100_MACCR_TXDMA_EN,4,2   ## @FTGMAC100_MACCR_TXDMA_EN
	.comm	_FTGMAC100_MACCR_RXDMA_EN,4,2   ## @FTGMAC100_MACCR_RXDMA_EN
	.comm	_FTGMAC100_MACCR_TXMAC_EN,4,2   ## @FTGMAC100_MACCR_TXMAC_EN
	.comm	_FTGMAC100_MACCR_RXMAC_EN,4,2   ## @FTGMAC100_MACCR_RXMAC_EN
	.comm	_FTGMAC100_MACCR_CRC_APD,4,2    ## @FTGMAC100_MACCR_CRC_APD
	.comm	_FTGMAC100_MACCR_PHY_LINK_LEVEL,4,2 ## @FTGMAC100_MACCR_PHY_LINK_LEVEL
	.comm	_FTGMAC100_MACCR_RX_RUNT,4,2    ## @FTGMAC100_MACCR_RX_RUNT
	.comm	_FTGMAC100_MACCR_RX_BROADPKT,4,2 ## @FTGMAC100_MACCR_RX_BROADPKT
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_FTGMAC100_MACCR_FULLDUP,4,2    ## @FTGMAC100_MACCR_FULLDUP
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_FTGMAC100_MACCR_RX_ALL,4,2     ## @FTGMAC100_MACCR_RX_ALL
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_FTGMAC100_MACCR_RX_MULTIPKT,4,2 ## @FTGMAC100_MACCR_RX_MULTIPKT
	.comm	_FTGMAC100_MACCR_HT_MULTI_EN,4,2 ## @FTGMAC100_MACCR_HT_MULTI_EN
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_FTGMAC100_MACCR_RM_VLAN,4,2    ## @FTGMAC100_MACCR_RM_VLAN
	.no_dead_strip	_ftgmac100_start_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_start_hw
_ftgmac100_start_hw:                    ; @ftgmac100_start_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, #8]
Lloh0:
	adrp	x20, _FTGMAC100_OFFSET_MACCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FTGMAC100_OFFSET_MACCR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
Lloh2:
	adrp	x8, _FTGMAC100_MACCR_FAST_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FTGMAC100_MACCR_FAST_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _FTGMAC100_MACCR_GIGA_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FTGMAC100_MACCR_GIGA_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w8, w8, w0
Lloh8:
	adrp	x9, _FTGMAC100_MACCR_TXDMA_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FTGMAC100_MACCR_TXDMA_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _FTGMAC100_MACCR_RXDMA_EN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FTGMAC100_MACCR_RXDMA_EN@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh14:
	adrp	x10, _FTGMAC100_MACCR_TXMAC_EN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _FTGMAC100_MACCR_TXMAC_EN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _FTGMAC100_MACCR_RXMAC_EN@GOTPAGE
Lloh18:
	ldr	x11, [x11, _FTGMAC100_MACCR_RXMAC_EN@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
Lloh20:
	adrp	x12, _FTGMAC100_MACCR_CRC_APD@GOTPAGE
Lloh21:
	ldr	x12, [x12, _FTGMAC100_MACCR_CRC_APD@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
Lloh23:
	adrp	x13, _FTGMAC100_MACCR_PHY_LINK_LEVEL@GOTPAGE
Lloh24:
	ldr	x13, [x13, _FTGMAC100_MACCR_PHY_LINK_LEVEL@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
Lloh26:
	adrp	x14, _FTGMAC100_MACCR_RX_RUNT@GOTPAGE
Lloh27:
	ldr	x14, [x14, _FTGMAC100_MACCR_RX_RUNT@GOTPAGEOFF]
Lloh28:
	ldr	w14, [x14]
Lloh29:
	adrp	x15, _FTGMAC100_MACCR_RX_BROADPKT@GOTPAGE
Lloh30:
	ldr	x15, [x15, _FTGMAC100_MACCR_RX_BROADPKT@GOTPAGEOFF]
Lloh31:
	ldr	w15, [x15]
Lloh32:
	adrp	x16, _DUPLEX_FULL@GOTPAGE
Lloh33:
	ldr	x16, [x16, _DUPLEX_FULL@GOTPAGEOFF]
	ldr	x17, [x19]
Lloh34:
	ldr	x16, [x16]
Lloh35:
	adrp	x0, _FTGMAC100_MACCR_FULLDUP@GOTPAGE
Lloh36:
	ldr	x0, [x0, _FTGMAC100_MACCR_FULLDUP@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x0]
	cmp	x17, x16
	csel	w16, w0, wzr, eq
	ldr	x0, [x19, #16]
	ldr	w17, [x0]
Lloh38:
	adrp	x1, _IFF_PROMISC@GOTPAGE
Lloh39:
	ldr	x1, [x1, _IFF_PROMISC@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x1]
Lloh41:
	adrp	x2, _FTGMAC100_MACCR_RX_ALL@GOTPAGE
Lloh42:
	ldr	x2, [x2, _FTGMAC100_MACCR_RX_ALL@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x2]
	tst	w1, w17
	csel	w1, wzr, w2, eq
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w8, w8, w14
	orr	w8, w8, w15
	orr	w8, w8, w16
	orr	w21, w8, w1
Lloh44:
	adrp	x8, _IFF_ALLMULTI@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w17
	b.eq	LBB0_2
; %bb.1:
Lloh47:
	adrp	x8, _FTGMAC100_MACCR_RX_MULTIPKT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FTGMAC100_MACCR_RX_MULTIPKT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	bl	_netdev_mc_count
	cbz	x0, LBB0_5
; %bb.3:
Lloh49:
	adrp	x8, _FTGMAC100_MACCR_HT_MULTI_EN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _FTGMAC100_MACCR_HT_MULTI_EN@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_5:
Lloh51:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh52:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
	ldp	x10, x9, [x19, #8]
	ldr	w9, [x9, #4]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x11, _FTGMAC100_MACCR_RM_VLAN@GOTPAGE
Lloh55:
	ldr	x11, [x11, _FTGMAC100_MACCR_RM_VLAN@GOTPAGEOFF]
Lloh56:
	ldr	w11, [x11]
	tst	w8, w9
	csel	w8, wzr, w11, eq
	orr	w0, w8, w21
	ldr	x8, [x20]
	add	x1, x8, x10
	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 AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.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
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_FTGMAC100_OFFSET_MACCR,8,3     ; @FTGMAC100_OFFSET_MACCR
	.comm	_FTGMAC100_MACCR_FAST_MODE,4,2  ; @FTGMAC100_MACCR_FAST_MODE
	.comm	_FTGMAC100_MACCR_GIGA_MODE,4,2  ; @FTGMAC100_MACCR_GIGA_MODE
	.comm	_FTGMAC100_MACCR_TXDMA_EN,4,2   ; @FTGMAC100_MACCR_TXDMA_EN
	.comm	_FTGMAC100_MACCR_RXDMA_EN,4,2   ; @FTGMAC100_MACCR_RXDMA_EN
	.comm	_FTGMAC100_MACCR_TXMAC_EN,4,2   ; @FTGMAC100_MACCR_TXMAC_EN
	.comm	_FTGMAC100_MACCR_RXMAC_EN,4,2   ; @FTGMAC100_MACCR_RXMAC_EN
	.comm	_FTGMAC100_MACCR_CRC_APD,4,2    ; @FTGMAC100_MACCR_CRC_APD
	.comm	_FTGMAC100_MACCR_PHY_LINK_LEVEL,4,2 ; @FTGMAC100_MACCR_PHY_LINK_LEVEL
	.comm	_FTGMAC100_MACCR_RX_RUNT,4,2    ; @FTGMAC100_MACCR_RX_RUNT
	.comm	_FTGMAC100_MACCR_RX_BROADPKT,4,2 ; @FTGMAC100_MACCR_RX_BROADPKT
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_FTGMAC100_MACCR_FULLDUP,4,2    ; @FTGMAC100_MACCR_FULLDUP
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_FTGMAC100_MACCR_RX_ALL,4,2     ; @FTGMAC100_MACCR_RX_ALL
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_FTGMAC100_MACCR_RX_MULTIPKT,4,2 ; @FTGMAC100_MACCR_RX_MULTIPKT
	.comm	_FTGMAC100_MACCR_HT_MULTI_EN,4,2 ; @FTGMAC100_MACCR_HT_MULTI_EN
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_FTGMAC100_MACCR_RM_VLAN,4,2    ; @FTGMAC100_MACCR_RM_VLAN
	.no_dead_strip	_ftgmac100_start_hw
.subsections_via_symbols
