	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_set_pauseparam
_alx_set_pauseparam:                    ## @alx_set_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	cmpq	$0, 16(%r15)
	movq	_ALX_FC_TX@GOTPCREL(%rip), %r12
	movl	$0, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %eax
LBB0_2:
	cmpq	$0, 8(%r15)
	movq	_ALX_FC_RX@GOTPCREL(%rip), %r13
	movl	$0, %ebx
	je	LBB0_4
## %bb.3:
	movl	(%r13), %ebx
LBB0_4:
	orl	%eax, %ebx
	cmpq	$0, (%r15)
	movq	_ALX_FC_ANEG@GOTPCREL(%rip), %r15
	movl	$0, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %eax
LBB0_6:
	orl	%eax, %ebx
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movl	(%r14), %esi
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_12
## %bb.7:
	movl	4(%r14), %edx
	movl	%edx, %eax
	xorl	%ebx, %eax
	movl	(%r15), %ecx
	andl	%ebx, %edx
	testl	%ecx, %edx
	je	LBB0_10
## %bb.8:
	movl	(%r12), %edx
	orl	(%r13), %edx
	testl	%eax, %edx
	jne	LBB0_11
## %bb.9:
	andl	%ecx, %eax
	jne	LBB0_12
	jmp	LBB0_11
LBB0_10:
	testl	%ecx, %eax
	jne	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_alx_setup_speed_duplex
	testl	%eax, %eax
	jne	LBB0_15
LBB0_12:
	movl	4(%r14), %eax
	xorl	%ebx, %eax
	movl	(%r12), %ecx
	orl	(%r13), %ecx
	testl	%eax, %ecx
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_alx_cfg_mac_flowcontrol
LBB0_14:
	movl	%ebx, 4(%r14)
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALX_FC_TX,4,2                  ## @ALX_FC_TX
	.comm	_ALX_FC_RX,4,2                  ## @ALX_FC_RX
	.comm	_ALX_FC_ANEG,4,2                ## @ALX_FC_ANEG
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.no_dead_strip	_alx_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_set_pauseparam
_alx_set_pauseparam:                    ; @alx_set_pauseparam
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _ALX_FC_TX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ALX_FC_TX@GOTPAGEOFF]
	ldp	x10, x8, [x20, #8]
	ldr	w9, [x21]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
Lloh2:
	adrp	x22, _ALX_FC_RX@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ALX_FC_RX@GOTPAGEOFF]
	ldr	w9, [x22]
	ldr	x11, [x20]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh4:
	adrp	x23, _ALX_FC_ANEG@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ALX_FC_ANEG@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w20, w8, w9
	bl	_ASSERT_RTNL
	ldr	w1, [x19]
Lloh6:
	adrp	x8, _ADVERTISED_Autoneg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.1:
	ldr	w10, [x19, #4]
	eor	w9, w10, w20
	ldr	w11, [x23]
	and	w8, w9, w11
	and	w10, w10, w20
	tst	w10, w11
	b.eq	LBB0_3
; %bb.2:
	ldr	w10, [x22]
	ldr	w11, [x21]
	orr	w10, w11, w10
	and	w9, w10, w9
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_4
	b	LBB0_5
LBB0_3:
	cbnz	w8, LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x2, x20
	bl	_alx_setup_speed_duplex
	cbnz	w0, LBB0_8
LBB0_5:
	ldr	w8, [x19, #4]
	eor	w8, w8, w20
	ldr	w9, [x22]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_alx_cfg_mac_flowcontrol
LBB0_7:
	mov	w0, #0
	str	w20, [x19, #4]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ALX_FC_TX,4,2                  ; @ALX_FC_TX
	.comm	_ALX_FC_RX,4,2                  ; @ALX_FC_RX
	.comm	_ALX_FC_ANEG,4,2                ; @ALX_FC_ANEG
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.no_dead_strip	_alx_set_pauseparam
.subsections_via_symbols
