	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgb_adapter_stop              ## -- Begin function ixgb_adapter_stop
	.p2align	4, 0x90
_ixgb_adapter_stop:                     ## @ixgb_adapter_stop
	.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	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ENTER
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_3
LBB0_2:
	movl	$1, (%r15)
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rdi
	callq	_pr_debug
	movq	_IMC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_IXGB_WRITE_REG
	movq	_RCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_IXGB_READ_REG
	movq	_IXGB_RCTL_RXEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_IXGB_WRITE_REG
	movq	_TCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_IXGB_READ_REG
	movq	_IXGB_TCTL_TXEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_IXGB_WRITE_REG
	movq	%r15, %rdi
	callq	_IXGB_WRITE_FLUSH
	movq	_IXGB_DELAY_BEFORE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	movq	%r15, %rdi
	callq	_ixgb_mac_reset
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_pr_debug
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_IXGB_WRITE_REG
	movq	_ICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IXGB_READ_REG
	movq	_IXGB_CTRL0_RST@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Exiting because the adapter is already stopped!!!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Masking off all interrupts\n"

	.comm	_IMC,4,2                        ## @IMC
	.comm	_RCTL,4,2                       ## @RCTL
	.comm	_IXGB_RCTL_RXEN,4,2             ## @IXGB_RCTL_RXEN
	.comm	_TCTL,4,2                       ## @TCTL
	.comm	_IXGB_TCTL_TXEN,4,2             ## @IXGB_TCTL_TXEN
	.comm	_IXGB_DELAY_BEFORE_RESET,4,2    ## @IXGB_DELAY_BEFORE_RESET
L_.str.2:                               ## @.str.2
	.asciz	"Issuing a global reset to MAC\n"

	.comm	_ICR,4,2                        ## @ICR
	.comm	_IXGB_CTRL0_RST,4,2             ## @IXGB_CTRL0_RST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgb_adapter_stop              ; -- Begin function ixgb_adapter_stop
	.p2align	2
_ixgb_adapter_stop:                     ; @ixgb_adapter_stop
	.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, x0
	bl	_ENTER
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_pr_debug
Lloh4:
	adrp	x22, _IMC@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IMC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #-1
	bl	_IXGB_WRITE_REG
Lloh6:
	adrp	x8, _RCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RCTL@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_IXGB_READ_REG
Lloh9:
	adrp	x8, _IXGB_RCTL_RXEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IXGB_RCTL_RXEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x21
	bl	_IXGB_WRITE_REG
Lloh12:
	adrp	x8, _TCTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TCTL@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_IXGB_READ_REG
Lloh15:
	adrp	x8, _IXGB_TCTL_TXEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IXGB_TCTL_TXEN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x21
	bl	_IXGB_WRITE_REG
	mov	x0, x19
	bl	_IXGB_WRITE_FLUSH
Lloh18:
	adrp	x8, _IXGB_DELAY_BEFORE_RESET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IXGB_DELAY_BEFORE_RESET@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_msleep
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_ixgb_mac_reset
	mov	x21, x0
	mov	x0, x20
	bl	_pr_debug
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #-1
	bl	_IXGB_WRITE_REG
Lloh23:
	adrp	x8, _ICR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ICR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGB_READ_REG
Lloh26:
	adrp	x8, _IXGB_CTRL0_RST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IXGB_CTRL0_RST@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w0, w8, w21
LBB0_3:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Exiting because the adapter is already stopped!!!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Masking off all interrupts\n"

	.comm	_IMC,4,2                        ; @IMC
	.comm	_RCTL,4,2                       ; @RCTL
	.comm	_IXGB_RCTL_RXEN,4,2             ; @IXGB_RCTL_RXEN
	.comm	_TCTL,4,2                       ; @TCTL
	.comm	_IXGB_TCTL_TXEN,4,2             ; @IXGB_TCTL_TXEN
	.comm	_IXGB_DELAY_BEFORE_RESET,4,2    ; @IXGB_DELAY_BEFORE_RESET
l_.str.2:                               ; @.str.2
	.asciz	"Issuing a global reset to MAC\n"

	.comm	_ICR,4,2                        ; @ICR
	.comm	_IXGB_CTRL0_RST,4,2             ; @IXGB_CTRL0_RST
.subsections_via_symbols
