	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_get_pauseparam
_netdev_get_pauseparam:                 ## @netdev_get_pauseparam
	.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	%rsi, %r14
	callq	_netdev_priv
	movq	(%rax), %rbx
	movq	_PAUSE_FLOW_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%rbx), %eax
	sete	%cl
	movl	%ecx, (%r14)
	cmpl	$0, 12(%rbx)
	je	LBB0_1
## %bb.2:
	movq	_KS8842_SWITCH_CTRL_1_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SWITCH_RX_FLOW_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sw_chk
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, 4(%r14)
	movl	(%r15), %esi
	movq	_SWITCH_TX_FLOW_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sw_chk
	testq	%rax, %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DMA_RX_FLOW_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	4(%rbx), %eax
	setne	%cl
	movl	%ecx, 4(%r14)
	movq	_DMA_TX_FLOW_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
LBB0_3:
	setne	%al
	movzbl	%al, %eax
	movl	%eax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAUSE_FLOW_CTRL,4,2            ## @PAUSE_FLOW_CTRL
	.comm	_DMA_RX_FLOW_ENABLE,4,2         ## @DMA_RX_FLOW_ENABLE
	.comm	_DMA_TX_FLOW_ENABLE,4,2         ## @DMA_TX_FLOW_ENABLE
	.comm	_KS8842_SWITCH_CTRL_1_OFFSET,4,2 ## @KS8842_SWITCH_CTRL_1_OFFSET
	.comm	_SWITCH_RX_FLOW_CTRL,4,2        ## @SWITCH_RX_FLOW_CTRL
	.comm	_SWITCH_TX_FLOW_CTRL,4,2        ## @SWITCH_TX_FLOW_CTRL
	.no_dead_strip	_netdev_get_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_get_pauseparam
_netdev_get_pauseparam:                 ; @netdev_get_pauseparam
	.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, x1
	bl	_netdev_priv
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _PAUSE_FLOW_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAUSE_FLOW_CTRL@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, eq
	str	w8, [x19]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, _KS8842_SWITCH_CTRL_1_OFFSET@GOTPAGE
Lloh4:
	ldr	x21, [x21, _KS8842_SWITCH_CTRL_1_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _SWITCH_RX_FLOW_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SWITCH_RX_FLOW_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sw_chk
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x19, #4]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _SWITCH_TX_FLOW_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SWITCH_TX_FLOW_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sw_chk
	cmp	x0, #0
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _DMA_RX_FLOW_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_RX_FLOW_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldp	w9, w10, [x20, #4]
	tst	w8, w9
	cset	w8, ne
	str	w8, [x19, #4]
Lloh14:
	adrp	x8, _DMA_TX_FLOW_ENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMA_TX_FLOW_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w10
LBB0_3:
	cset	w8, ne
	str	w8, [x19, #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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PAUSE_FLOW_CTRL,4,2            ; @PAUSE_FLOW_CTRL
	.comm	_DMA_RX_FLOW_ENABLE,4,2         ; @DMA_RX_FLOW_ENABLE
	.comm	_DMA_TX_FLOW_ENABLE,4,2         ; @DMA_TX_FLOW_ENABLE
	.comm	_KS8842_SWITCH_CTRL_1_OFFSET,4,2 ; @KS8842_SWITCH_CTRL_1_OFFSET
	.comm	_SWITCH_RX_FLOW_CTRL,4,2        ; @SWITCH_RX_FLOW_CTRL
	.comm	_SWITCH_TX_FLOW_CTRL,4,2        ; @SWITCH_TX_FLOW_CTRL
	.no_dead_strip	_netdev_get_pauseparam
.subsections_via_symbols
