	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_pauseparam
_e1000_set_pauseparam:                  ## @e1000_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	%rax, (%r14)
	leaq	8(%r14), %rbx
	movq	___E1000_RESETTING@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
	jmp	LBB0_1
LBB0_3:
	cmpq	$0, 8(%r15)
	movq	_E1000_FC_TX_PAUSE@GOTPCREL(%rip), %rax
	cmoveq	_E1000_FC_NONE@GOTPCREL(%rip), %rax
	movq	_E1000_FC_FULL@GOTPCREL(%rip), %rcx
	cmoveq	_E1000_FC_RX_PAUSE@GOTPCREL(%rip), %rcx
	cmpq	$0, 16(%r15)
	cmoveq	%rax, %rcx
	movl	(%rcx), %eax
	movl	%eax, 24(%r14)
	movl	%eax, 28(%r14)
	movq	(%r14), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movl	12(%r14), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	callq	_e1000_down
	movq	%r14, %rdi
	callq	_e1000_up
	jmp	LBB0_11
LBB0_6:
	addq	$16, %r14
	movq	(%r14), %rax
	movq	_e1000_media_type_fiber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_e1000_setup_link
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_e1000_force_mac_fc
LBB0_9:
	movl	%eax, %r14d
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	callq	_e1000_reset
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___E1000_RESETTING,4,2          ## @__E1000_RESETTING
	.comm	_E1000_FC_FULL,4,2              ## @E1000_FC_FULL
	.comm	_E1000_FC_RX_PAUSE,4,2          ## @E1000_FC_RX_PAUSE
	.comm	_E1000_FC_TX_PAUSE,4,2          ## @E1000_FC_TX_PAUSE
	.comm	_E1000_FC_NONE,4,2              ## @E1000_FC_NONE
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_e1000_media_type_fiber,8,3     ## @e1000_media_type_fiber
	.no_dead_strip	_e1000_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_pauseparam
_e1000_set_pauseparam:                  ; @e1000_set_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	x21, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x21]
	mov	x19, x0
	str	x8, [x19], #8
Lloh0:
	adrp	x22, ___E1000_RESETTING@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___E1000_RESETTING@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_msleep
	b	LBB0_1
LBB0_3:
Lloh2:
	adrp	x8, _E1000_FC_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_FC_NONE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _E1000_FC_TX_PAUSE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _E1000_FC_TX_PAUSE@GOTPAGEOFF]
	ldp	x11, x10, [x21, #8]
Lloh6:
	adrp	x12, _E1000_FC_RX_PAUSE@GOTPAGE
Lloh7:
	ldr	x12, [x12, _E1000_FC_RX_PAUSE@GOTPAGEOFF]
Lloh8:
	adrp	x13, _E1000_FC_FULL@GOTPAGE
Lloh9:
	ldr	x13, [x13, _E1000_FC_FULL@GOTPAGEOFF]
	cmp	x11, #0
	csel	x8, x8, x9, eq
	csel	x9, x12, x13, eq
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	stp	w8, w8, [x20, #24]
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x20, #12]
	bl	_netif_running
	cbz	x0, LBB0_10
; %bb.5:
	mov	x0, x20
	bl	_e1000_down
	mov	x0, x20
	bl	_e1000_up
	b	LBB0_11
LBB0_6:
	add	x0, x20, #16
	ldr	x8, [x0]
Lloh13:
	adrp	x9, _e1000_media_type_fiber@GOTPAGE
Lloh14:
	ldr	x9, [x9, _e1000_media_type_fiber@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	bl	_e1000_setup_link
	b	LBB0_9
LBB0_8:
	bl	_e1000_force_mac_fc
LBB0_9:
	mov	x20, x0
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	bl	_e1000_reset
LBB0_11:
	mov	w20, #0
LBB0_12:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	___E1000_RESETTING,4,2          ; @__E1000_RESETTING
	.comm	_E1000_FC_FULL,4,2              ; @E1000_FC_FULL
	.comm	_E1000_FC_RX_PAUSE,4,2          ; @E1000_FC_RX_PAUSE
	.comm	_E1000_FC_TX_PAUSE,4,2          ; @E1000_FC_TX_PAUSE
	.comm	_E1000_FC_NONE,4,2              ; @E1000_FC_NONE
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_e1000_media_type_fiber,8,3     ; @e1000_media_type_fiber
	.no_dead_strip	_e1000_set_pauseparam
.subsections_via_symbols
