	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_get_flowctrl_cfg
_gfar_get_flowctrl_cfg:                 ## @gfar_get_flowctrl_cfg
	.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	24(%rdi), %rax
	movq	(%rax), %rax
	cmpl	$0, 24(%rax)
	je	LBB0_1
## %bb.2:
	cmpl	$0, 16(%rdi)
	je	LBB0_3
## %bb.7:
	xorl	%ebx, %ebx
	cmpq	$0, 16(%rax)
	movl	$0, %ecx
	je	LBB0_9
## %bb.8:
	movq	_LPA_PAUSE_CAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.10:
	movq	_LPA_PAUSE_ASYM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_11:
	orl	%ecx, %ebx
	movl	(%rax), %edi
	callq	_linkmode_adv_to_lcl_adv_t
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_mii_resolve_flowctrl_fdx
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_13
## %bb.12:
	movq	_MACCFG1_TX_FLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_15
## %bb.14:
	movq	_MACCFG1_RX_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	orl	%ecx, %eax
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_3:
	xorl	%eax, %eax
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.4:
	movq	_MACCFG1_TX_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	cmpq	$0, (%rdi)
	je	LBB0_16
## %bb.6:
	movq	_MACCFG1_RX_FLOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MACCFG1_TX_FLOW,4,2            ## @MACCFG1_TX_FLOW
	.comm	_MACCFG1_RX_FLOW,4,2            ## @MACCFG1_RX_FLOW
	.comm	_LPA_PAUSE_CAP,4,2              ## @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ## @LPA_PAUSE_ASYM
	.comm	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
	.comm	_FLOW_CTRL_RX,4,2               ## @FLOW_CTRL_RX
	.no_dead_strip	_gfar_get_flowctrl_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfar_get_flowctrl_cfg
_gfar_get_flowctrl_cfg:                 ; @gfar_get_flowctrl_cfg
	.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
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	w9, [x8, #24]
	cbz	w9, LBB0_3
; %bb.1:
	ldr	w9, [x0, #16]
	cbz	w9, LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _LPA_PAUSE_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LPA_PAUSE_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldp	x11, x10, [x8, #8]
	cmp	x10, #0
Lloh3:
	adrp	x10, _LPA_PAUSE_ASYM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LPA_PAUSE_ASYM@GOTPAGEOFF]
	csel	w9, wzr, w9, eq
Lloh5:
	ldr	w10, [x10]
	cmp	x11, #0
	csel	w10, wzr, w10, eq
	orr	w19, w10, w9
	ldr	w0, [x8]
	bl	_linkmode_adv_to_lcl_adv_t
	mov	x1, x19
	bl	_mii_resolve_flowctrl_fdx
Lloh6:
	adrp	x8, _FLOW_CTRL_TX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLOW_CTRL_TX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MACCFG1_TX_FLOW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MACCFG1_TX_FLOW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
Lloh12:
	adrp	x9, _FLOW_CTRL_RX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _MACCFG1_RX_FLOW@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MACCFG1_RX_FLOW@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w0, w9, w8
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh18:
	adrp	x8, _MACCFG1_TX_FLOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MACCFG1_TX_FLOW@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldp	x10, x9, [x0]
	cmp	x9, #0
	csel	w0, wzr, w8, eq
	cbz	x10, LBB0_6
; %bb.5:
Lloh21:
	adrp	x8, _MACCFG1_RX_FLOW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MACCFG1_RX_FLOW@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MACCFG1_TX_FLOW,4,2            ; @MACCFG1_TX_FLOW
	.comm	_MACCFG1_RX_FLOW,4,2            ; @MACCFG1_RX_FLOW
	.comm	_LPA_PAUSE_CAP,4,2              ; @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ; @LPA_PAUSE_ASYM
	.comm	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
	.comm	_FLOW_CTRL_RX,4,2               ; @FLOW_CTRL_RX
	.no_dead_strip	_gfar_get_flowctrl_cfg
.subsections_via_symbols
