	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmac_set_flow_control
_gmac_set_flow_control:                 ## @gmac_set_flow_control
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	_GMAC_CONFIG0@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_CONFIG0_FLOW_CTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_CONFIG0_FLOW_TX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_2:
	andl	%ecx, %eax
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_CONFIG0_FLOW_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_4:
	orl	%r15d, %ebx
	orl	%ebx, %eax
	movq	(%r12), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_CONFIG0,8,3               ## @GMAC_CONFIG0
	.comm	_CONFIG0_FLOW_CTL,4,2           ## @CONFIG0_FLOW_CTL
	.comm	_CONFIG0_FLOW_TX,4,2            ## @CONFIG0_FLOW_TX
	.comm	_CONFIG0_FLOW_RX,4,2            ## @CONFIG0_FLOW_RX
	.no_dead_strip	_gmac_set_flow_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmac_set_flow_control
_gmac_set_flow_control:                 ; @gmac_set_flow_control
	.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
	bl	_netdev_priv
	mov	x21, x0
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x22, _GMAC_CONFIG0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GMAC_CONFIG0@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _CONFIG0_FLOW_CTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONFIG0_FLOW_CTL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _CONFIG0_FLOW_TX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONFIG0_FLOW_TX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w20, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _CONFIG0_FLOW_RX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CONFIG0_FLOW_RX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w19, #0
	csel	w9, wzr, w9, eq
	orr	w0, w8, w9
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x21
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_CONFIG0,8,3               ; @GMAC_CONFIG0
	.comm	_CONFIG0_FLOW_CTL,4,2           ; @CONFIG0_FLOW_CTL
	.comm	_CONFIG0_FLOW_TX,4,2            ; @CONFIG0_FLOW_TX
	.comm	_CONFIG0_FLOW_RX,4,2            ; @CONFIG0_FLOW_RX
	.no_dead_strip	_gmac_set_flow_control
.subsections_via_symbols
