	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgmac_set_flow_ctrl
_xgmac_set_flow_ctrl:                   ## @xgmac_set_flow_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movl	%edx, 4(%rdi)
	movl	%edx, %eax
	orl	%esi, %eax
	je	LBB0_6
## %bb.1:
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movq	_XGMAC_FLOW_CTRL_RFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_3:
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	movq	_XGMAC_FLOW_CTRL_TFE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_5:
	orl	%esi, %edx
	movq	_PAUSE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_XGMAC_FLOW_CTRL_PT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_XGMAC_FLOW_CTRL_PLT@GOTPCREL(%rip), %rcx
	movq	_XGMAC_FLOW_CTRL_UP@GOTPCREL(%rip), %rsi
	orl	(%rcx), %edx
	orl	(%rsi), %edx
	orl	%eax, %edx
	leaq	8(%rbx), %r14
	movq	_XGMAC_FLOW_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%edx, %edi
	callq	_writel
	movq	_XGMAC_OMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %edi
	movq	_XGMAC_OMR_EFC@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	jmp	LBB0_7
LBB0_6:
	leaq	8(%rbx), %r14
	movq	_XGMAC_FLOW_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_XGMAC_OMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_XGMAC_OMR_EFC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
LBB0_7:
	movq	_XGMAC_OMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGMAC_FLOW_CTRL_RFE,4,2        ## @XGMAC_FLOW_CTRL_RFE
	.comm	_XGMAC_FLOW_CTRL_TFE,4,2        ## @XGMAC_FLOW_CTRL_TFE
	.comm	_XGMAC_FLOW_CTRL_PLT,4,2        ## @XGMAC_FLOW_CTRL_PLT
	.comm	_XGMAC_FLOW_CTRL_UP,4,2         ## @XGMAC_FLOW_CTRL_UP
	.comm	_PAUSE_TIME,4,2                 ## @PAUSE_TIME
	.comm	_XGMAC_FLOW_CTRL_PT_SHIFT,4,2   ## @XGMAC_FLOW_CTRL_PT_SHIFT
	.comm	_XGMAC_FLOW_CTRL,8,3            ## @XGMAC_FLOW_CTRL
	.comm	_XGMAC_OMR,8,3                  ## @XGMAC_OMR
	.comm	_XGMAC_OMR_EFC,4,2              ## @XGMAC_OMR_EFC
	.no_dead_strip	_xgmac_set_flow_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgmac_set_flow_ctrl
_xgmac_set_flow_ctrl:                   ; @xgmac_set_flow_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stp	w1, w2, [x0]
Lloh0:
	adrp	x20, _XGMAC_OMR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _XGMAC_OMR@GOTPAGEOFF]
	orr	w8, w2, w1
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _XGMAC_FLOW_CTRL_RFE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XGMAC_FLOW_CTRL_RFE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w1, #0
	csel	w8, wzr, w8, eq
Lloh5:
	adrp	x9, _XGMAC_FLOW_CTRL_TFE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XGMAC_FLOW_CTRL_TFE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w2, #0
	csel	w9, wzr, w9, eq
Lloh8:
	adrp	x10, _XGMAC_FLOW_CTRL_PLT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _XGMAC_FLOW_CTRL_PLT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _XGMAC_FLOW_CTRL_UP@GOTPAGE
Lloh12:
	ldr	x11, [x11, _XGMAC_FLOW_CTRL_UP@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	adrp	x12, _PAUSE_TIME@GOTPAGE
Lloh15:
	ldr	x12, [x12, _PAUSE_TIME@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
Lloh17:
	adrp	x13, _XGMAC_FLOW_CTRL_PT_SHIFT@GOTPAGE
Lloh18:
	ldr	x13, [x13, _XGMAC_FLOW_CTRL_PT_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
	lsl	w12, w12, w13
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w0, w8, w12
	ldr	x8, [x19, #8]!
Lloh20:
	adrp	x9, _XGMAC_FLOW_CTRL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _XGMAC_FLOW_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh23:
	adrp	x8, _XGMAC_OMR_EFC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XGMAC_OMR_EFC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]!
Lloh26:
	adrp	x9, _XGMAC_FLOW_CTRL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _XGMAC_FLOW_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh29:
	adrp	x8, _XGMAC_OMR_EFC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XGMAC_OMR_EFC@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	bic	w0, w0, w8
LBB0_3:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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 AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_XGMAC_FLOW_CTRL_RFE,4,2        ; @XGMAC_FLOW_CTRL_RFE
	.comm	_XGMAC_FLOW_CTRL_TFE,4,2        ; @XGMAC_FLOW_CTRL_TFE
	.comm	_XGMAC_FLOW_CTRL_PLT,4,2        ; @XGMAC_FLOW_CTRL_PLT
	.comm	_XGMAC_FLOW_CTRL_UP,4,2         ; @XGMAC_FLOW_CTRL_UP
	.comm	_PAUSE_TIME,4,2                 ; @PAUSE_TIME
	.comm	_XGMAC_FLOW_CTRL_PT_SHIFT,4,2   ; @XGMAC_FLOW_CTRL_PT_SHIFT
	.comm	_XGMAC_FLOW_CTRL,8,3            ; @XGMAC_FLOW_CTRL
	.comm	_XGMAC_OMR,8,3                  ; @XGMAC_OMR
	.comm	_XGMAC_OMR_EFC,4,2              ; @XGMAC_OMR_EFC
	.no_dead_strip	_xgmac_set_flow_ctrl
.subsections_via_symbols
