	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_fw2x_get_flow_control
_aq_fw2x_get_flow_control:              ## @aq_fw2x_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_aq_fw2x_state2_get
	movq	_HW_ATL_FW2X_CAP_PAUSE@GOTPCREL(%rip), %rdx
	movq	_HW_ATL_FW2X_CAP_ASYM_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_3
## %bb.1:
	movq	_AQ_NIC_FC_RX@GOTPCREL(%rip), %rdx
	testl	%eax, %ecx
	movl	(%rdx), %ecx
	jne	LBB0_5
## %bb.2:
	movq	_AQ_NIC_FC_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	jmp	LBB0_5
LBB0_3:
	andl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	movq	_AQ_NIC_FC_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	movl	%ecx, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_FW2X_CAP_PAUSE,4,2      ## @HW_ATL_FW2X_CAP_PAUSE
	.comm	_HW_ATL_FW2X_CAP_ASYM_PAUSE,4,2 ## @HW_ATL_FW2X_CAP_ASYM_PAUSE
	.comm	_AQ_NIC_FC_RX,4,2               ## @AQ_NIC_FC_RX
	.comm	_AQ_NIC_FC_TX,4,2               ## @AQ_NIC_FC_TX
	.no_dead_strip	_aq_fw2x_get_flow_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq_fw2x_get_flow_control
_aq_fw2x_get_flow_control:              ; @aq_fw2x_get_flow_control
	.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, x1
	bl	_aq_fw2x_state2_get
Lloh0:
	adrp	x8, _HW_ATL_FW2X_CAP_PAUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_ATL_FW2X_CAP_PAUSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HW_ATL_FW2X_CAP_ASYM_PAUSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HW_ATL_FW2X_CAP_ASYM_PAUSE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w0
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _AQ_NIC_FC_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AQ_NIC_FC_RX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbnz	w9, LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, _AQ_NIC_FC_TX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AQ_NIC_FC_TX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _AQ_NIC_FC_TX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AQ_NIC_FC_TX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w9, #0
	csel	w8, wzr, w8, eq
LBB0_4:
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_FW2X_CAP_PAUSE,4,2      ; @HW_ATL_FW2X_CAP_PAUSE
	.comm	_HW_ATL_FW2X_CAP_ASYM_PAUSE,4,2 ; @HW_ATL_FW2X_CAP_ASYM_PAUSE
	.comm	_AQ_NIC_FC_RX,4,2               ; @AQ_NIC_FC_RX
	.comm	_AQ_NIC_FC_TX,4,2               ; @AQ_NIC_FC_TX
	.no_dead_strip	_aq_fw2x_get_flow_control
.subsections_via_symbols
