	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fman_get_pause_cfg             ## -- Begin function fman_get_pause_cfg
	.p2align	4, 0x90
_fman_get_pause_cfg:                    ## @fman_get_pause_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rbx
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	cmpl	$0, 20(%rbx)
	je	LBB0_11
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	cmpl	$0, 8(%rdi)
	je	LBB0_2
## %bb.3:
	movl	16(%rbx), %edi
	callq	_linkmode_adv_to_lcl_adv_t
	xorl	%esi, %esi
	cmpq	$0, 8(%rbx)
	movl	$0, %ecx
	je	LBB0_5
## %bb.4:
	movq	_LPA_PAUSE_CAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	_LPA_PAUSE_ASYM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_7:
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_mii_resolve_flowctrl_fdx
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	$1, (%r15)
LBB0_9:
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rdx
	movl	$1, %ecx
	testl	%eax, (%rdx)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_2:
	movl	(%rdi), %eax
	movl	%eax, (%r15)
	movl	4(%rdi), %ecx
LBB0_10:
	movl	%ecx, (%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPA_PAUSE_CAP,4,2              ## @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ## @LPA_PAUSE_ASYM
	.comm	_FLOW_CTRL_RX,4,2               ## @FLOW_CTRL_RX
	.comm	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fman_get_pause_cfg             ; -- Begin function fman_get_pause_cfg
	.p2align	2
_fman_get_pause_cfg:                    ; @fman_get_pause_cfg
	.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
	ldr	x21, [x0, #16]
	str	wzr, [x2]
	str	wzr, [x1]
	ldr	w8, [x21, #20]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w0, [x21, #16]
	bl	_linkmode_adv_to_lcl_adv_t
Lloh0:
	adrp	x8, _LPA_PAUSE_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LPA_PAUSE_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	x10, x9, [x21]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _LPA_PAUSE_ASYM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LPA_PAUSE_ASYM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w1, w9, w8
	bl	_mii_resolve_flowctrl_fdx
Lloh6:
	adrp	x8, _FLOW_CTRL_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x20]
LBB0_4:
Lloh9:
	adrp	x8, _FLOW_CTRL_TX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLOW_CTRL_TX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.5:
	mov	w8, #1
	b	LBB0_7
LBB0_6:
	ldr	w8, [x0]
	str	w8, [x20]
	ldr	w8, [x0, #4]
LBB0_7:
	str	w8, [x19]
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LPA_PAUSE_CAP,4,2              ; @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ; @LPA_PAUSE_ASYM
	.comm	_FLOW_CTRL_RX,4,2               ; @FLOW_CTRL_RX
	.comm	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
.subsections_via_symbols
