	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_init_tx_xmac
_niu_init_tx_xmac:                      ## @niu_init_tx_xmac
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_XMAC_MIN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_nr64_mac
	movq	_XMAC_MIN_TX_MIN_PKT_SIZE@GOTPCREL(%rip), %rcx
	movq	_XMAC_MIN_RX_MIN_PKT_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_XMAC_MIN_RX_MIN_PKT_SIZE_SHFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_XMAC_MIN_TX_MIN_PKT_SIZE_SHFT@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movl	%ebx, %edi
	shll	%cl, %edi
	notl	%esi
	movl	%edx, %ecx
	shll	%cl, %ebx
	andl	%eax, %esi
	orl	%esi, %edi
	orl	%edi, %ebx
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_nw64_mac
	movq	_XMAC_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_nw64_mac
	movq	_XTXMAC_STAT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_nw64_mac
	movq	_XMAC_IPG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_nr64_mac
	movq	_NIU_FLAGS_10G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	movq	_XMAC_IPG_IPG_XGMII@GOTPCREL(%rip), %rcx
	cmoveq	_XMAC_IPG_IPG_MII_GMII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IPG_12_15_XGMII@GOTPCREL(%rip), %rcx
	cmoveq	_IPG_12_MII_GMII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_XMAC_IPG_IPG_XGMII_SHIFT@GOTPCREL(%rip), %rcx
	cmoveq	_XMAC_IPG_IPG_MII_GMII_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %esi
	movl	(%rbx), %edi
	callq	_nw64_mac
	movq	_XMAC_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_nr64_mac
	movq	_XMAC_CONFIG_ALWAYS_NO_CRC@GOTPCREL(%rip), %rcx
	movq	_XMAC_CONFIG_STRETCH_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_XMAC_CONFIG_VAR_MIN_IPG_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_XMAC_CONFIG_TX_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_nw64_mac
	movq	_TXMAC_FRM_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_nw64_mac
	movq	_TXMAC_BYTE_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nw64_mac                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XMAC_MIN,4,2                   ## @XMAC_MIN
	.comm	_XMAC_MIN_TX_MIN_PKT_SIZE,4,2   ## @XMAC_MIN_TX_MIN_PKT_SIZE
	.comm	_XMAC_MIN_RX_MIN_PKT_SIZE,4,2   ## @XMAC_MIN_RX_MIN_PKT_SIZE
	.comm	_XMAC_MIN_RX_MIN_PKT_SIZE_SHFT,4,2 ## @XMAC_MIN_RX_MIN_PKT_SIZE_SHFT
	.comm	_XMAC_MIN_TX_MIN_PKT_SIZE_SHFT,4,2 ## @XMAC_MIN_TX_MIN_PKT_SIZE_SHFT
	.comm	_XMAC_MAX,4,2                   ## @XMAC_MAX
	.comm	_XTXMAC_STAT_MSK,4,2            ## @XTXMAC_STAT_MSK
	.comm	_XMAC_IPG,4,2                   ## @XMAC_IPG
	.comm	_NIU_FLAGS_10G,4,2              ## @NIU_FLAGS_10G
	.comm	_XMAC_IPG_IPG_XGMII,4,2         ## @XMAC_IPG_IPG_XGMII
	.comm	_IPG_12_15_XGMII,4,2            ## @IPG_12_15_XGMII
	.comm	_XMAC_IPG_IPG_XGMII_SHIFT,4,2   ## @XMAC_IPG_IPG_XGMII_SHIFT
	.comm	_XMAC_IPG_IPG_MII_GMII,4,2      ## @XMAC_IPG_IPG_MII_GMII
	.comm	_IPG_12_MII_GMII,4,2            ## @IPG_12_MII_GMII
	.comm	_XMAC_IPG_IPG_MII_GMII_SHIFT,4,2 ## @XMAC_IPG_IPG_MII_GMII_SHIFT
	.comm	_XMAC_CONFIG,4,2                ## @XMAC_CONFIG
	.comm	_XMAC_CONFIG_ALWAYS_NO_CRC,4,2  ## @XMAC_CONFIG_ALWAYS_NO_CRC
	.comm	_XMAC_CONFIG_STRETCH_MODE,4,2   ## @XMAC_CONFIG_STRETCH_MODE
	.comm	_XMAC_CONFIG_VAR_MIN_IPG_EN,4,2 ## @XMAC_CONFIG_VAR_MIN_IPG_EN
	.comm	_XMAC_CONFIG_TX_ENABLE,4,2      ## @XMAC_CONFIG_TX_ENABLE
	.comm	_TXMAC_FRM_CNT,4,2              ## @TXMAC_FRM_CNT
	.comm	_TXMAC_BYTE_CNT,4,2             ## @TXMAC_BYTE_CNT
	.no_dead_strip	_niu_init_tx_xmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_init_tx_xmac
_niu_init_tx_xmac:                      ; @niu_init_tx_xmac
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _XMAC_MIN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XMAC_MIN@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_nr64_mac
Lloh2:
	adrp	x8, _XMAC_MIN_TX_MIN_PKT_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XMAC_MIN_TX_MIN_PKT_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _XMAC_MIN_RX_MIN_PKT_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XMAC_MIN_RX_MIN_PKT_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh8:
	adrp	x9, _XMAC_MIN_RX_MIN_PKT_SIZE_SHFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XMAC_MIN_RX_MIN_PKT_SIZE_SHFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _XMAC_MIN_TX_MIN_PKT_SIZE_SHFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _XMAC_MIN_TX_MIN_PKT_SIZE_SHFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w1, w8, w9
	ldr	w0, [x22]
	bl	_nw64_mac
Lloh14:
	adrp	x8, _XMAC_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XMAC_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_nw64_mac
Lloh17:
	adrp	x8, _XTXMAC_STAT_MSK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XTXMAC_STAT_MSK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_nw64_mac
Lloh20:
	adrp	x19, _XMAC_IPG@GOTPAGE
Lloh21:
	ldr	x19, [x19, _XMAC_IPG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_nr64_mac
	ldr	w8, [x21]
Lloh22:
	adrp	x9, _NIU_FLAGS_10G@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NIU_FLAGS_10G@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _XMAC_IPG_IPG_MII_GMII@GOTPAGE
Lloh26:
	ldr	x10, [x10, _XMAC_IPG_IPG_MII_GMII@GOTPAGEOFF]
Lloh27:
	adrp	x11, _XMAC_IPG_IPG_XGMII@GOTPAGE
Lloh28:
	ldr	x11, [x11, _XMAC_IPG_IPG_XGMII@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _IPG_12_MII_GMII@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IPG_12_MII_GMII@GOTPAGEOFF]
Lloh31:
	adrp	x10, _IPG_12_15_XGMII@GOTPAGE
Lloh32:
	ldr	x10, [x10, _IPG_12_15_XGMII@GOTPAGEOFF]
	bic	w8, w0, w8
	csel	x9, x9, x10, eq
Lloh33:
	adrp	x10, _XMAC_IPG_IPG_MII_GMII_SHIFT@GOTPAGE
Lloh34:
	ldr	x10, [x10, _XMAC_IPG_IPG_MII_GMII_SHIFT@GOTPAGEOFF]
Lloh35:
	adrp	x11, _XMAC_IPG_IPG_XGMII_SHIFT@GOTPAGE
Lloh36:
	ldr	x11, [x11, _XMAC_IPG_IPG_XGMII_SHIFT@GOTPAGEOFF]
	ldr	w9, [x9]
	csel	x10, x10, x11, eq
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w9, w8
	ldr	w0, [x19]
	bl	_nw64_mac
Lloh37:
	adrp	x19, _XMAC_CONFIG@GOTPAGE
Lloh38:
	ldr	x19, [x19, _XMAC_CONFIG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_nr64_mac
Lloh39:
	adrp	x8, _XMAC_CONFIG_ALWAYS_NO_CRC@GOTPAGE
Lloh40:
	ldr	x8, [x8, _XMAC_CONFIG_ALWAYS_NO_CRC@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _XMAC_CONFIG_STRETCH_MODE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _XMAC_CONFIG_STRETCH_MODE@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh45:
	adrp	x9, _XMAC_CONFIG_VAR_MIN_IPG_EN@GOTPAGE
Lloh46:
	ldr	x9, [x9, _XMAC_CONFIG_VAR_MIN_IPG_EN@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh48:
	adrp	x9, _XMAC_CONFIG_TX_ENABLE@GOTPAGE
Lloh49:
	ldr	x9, [x9, _XMAC_CONFIG_TX_ENABLE@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w1, w0, w8
	ldr	w0, [x19]
	bl	_nw64_mac
Lloh51:
	adrp	x8, _TXMAC_FRM_CNT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _TXMAC_FRM_CNT@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_nw64_mac
Lloh54:
	adrp	x8, _TXMAC_BYTE_CNT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _TXMAC_BYTE_CNT@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	mov	w1, #0
	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	_nw64_mac
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.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	_XMAC_MIN,4,2                   ; @XMAC_MIN
	.comm	_XMAC_MIN_TX_MIN_PKT_SIZE,4,2   ; @XMAC_MIN_TX_MIN_PKT_SIZE
	.comm	_XMAC_MIN_RX_MIN_PKT_SIZE,4,2   ; @XMAC_MIN_RX_MIN_PKT_SIZE
	.comm	_XMAC_MIN_RX_MIN_PKT_SIZE_SHFT,4,2 ; @XMAC_MIN_RX_MIN_PKT_SIZE_SHFT
	.comm	_XMAC_MIN_TX_MIN_PKT_SIZE_SHFT,4,2 ; @XMAC_MIN_TX_MIN_PKT_SIZE_SHFT
	.comm	_XMAC_MAX,4,2                   ; @XMAC_MAX
	.comm	_XTXMAC_STAT_MSK,4,2            ; @XTXMAC_STAT_MSK
	.comm	_XMAC_IPG,4,2                   ; @XMAC_IPG
	.comm	_NIU_FLAGS_10G,4,2              ; @NIU_FLAGS_10G
	.comm	_XMAC_IPG_IPG_XGMII,4,2         ; @XMAC_IPG_IPG_XGMII
	.comm	_IPG_12_15_XGMII,4,2            ; @IPG_12_15_XGMII
	.comm	_XMAC_IPG_IPG_XGMII_SHIFT,4,2   ; @XMAC_IPG_IPG_XGMII_SHIFT
	.comm	_XMAC_IPG_IPG_MII_GMII,4,2      ; @XMAC_IPG_IPG_MII_GMII
	.comm	_IPG_12_MII_GMII,4,2            ; @IPG_12_MII_GMII
	.comm	_XMAC_IPG_IPG_MII_GMII_SHIFT,4,2 ; @XMAC_IPG_IPG_MII_GMII_SHIFT
	.comm	_XMAC_CONFIG,4,2                ; @XMAC_CONFIG
	.comm	_XMAC_CONFIG_ALWAYS_NO_CRC,4,2  ; @XMAC_CONFIG_ALWAYS_NO_CRC
	.comm	_XMAC_CONFIG_STRETCH_MODE,4,2   ; @XMAC_CONFIG_STRETCH_MODE
	.comm	_XMAC_CONFIG_VAR_MIN_IPG_EN,4,2 ; @XMAC_CONFIG_VAR_MIN_IPG_EN
	.comm	_XMAC_CONFIG_TX_ENABLE,4,2      ; @XMAC_CONFIG_TX_ENABLE
	.comm	_TXMAC_FRM_CNT,4,2              ; @TXMAC_FRM_CNT
	.comm	_TXMAC_BYTE_CNT,4,2             ; @TXMAC_BYTE_CNT
	.no_dead_strip	_niu_init_tx_xmac
.subsections_via_symbols
