	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_reset                      ## -- Begin function igc_reset
	.p2align	4, 0x90
_igc_reset:                             ## @igc_reset
	.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	%rdi, %rbx
	movq	48(%rdi), %r15
	leaq	8(%rdi), %r14
	movq	_IGC_PBA_34K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$10, %eax
	movq	_MAX_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rdi), %edx
	movl	40(%rdi), %esi
	addl	(%rcx), %edx
	subl	%edx, %eax
	andl	$-16, %eax
	movl	%eax, 24(%rdi)
	addl	$-16, %eax
	movl	%eax, 28(%rdi)
	movabsq	$4295032831, %rax               ## imm = 0x10000FFFF
	movq	%rax, 32(%rdi)
	movl	%esi, 44(%rdi)
	movq	%r14, %rdi
	callq	*16(%rbx)
	movq	%r14, %rdi
	callq	*8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_2:
	movl	4(%rbx), %edi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_igc_power_down_link
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_igc_get_phy_info               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IGC_PBA_34K,4,2                ## @IGC_PBA_34K
	.comm	_MAX_JUMBO_FRAME_SIZE,4,2       ## @MAX_JUMBO_FRAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hardware Error\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function igc_reset
lCPI0_0:
	.long	65535                           ; 0xffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_igc_reset
	.p2align	2
_igc_reset:                             ; @igc_reset
	.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	x20, x0
	ldr	x21, [x0, #48]
	add	x19, x0, #8
Lloh0:
	adrp	x8, _IGC_PBA_34K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IGC_PBA_34K@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #10
	ldr	w9, [x0]
Lloh3:
	adrp	x10, _MAX_JUMBO_FRAME_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_JUMBO_FRAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w9, w9, w10
	sub	w8, w8, w9
	and	w8, w8, #0xfffffff0
	sub	w9, w8, #16
	stp	w8, w9, [x0, #24]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0, #32]
	ldr	w8, [x0, #40]
	str	w8, [x0, #44]
	ldr	x8, [x0, #16]
	mov	x0, x19
	blr	x8
	ldr	x8, [x20, #8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_2:
	ldr	w0, [x20, #4]
	bl	_netif_running
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_igc_power_down_link
LBB0_4:
	mov	x0, x19
	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
	b	_igc_get_phy_info
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IGC_PBA_34K,4,2                ; @IGC_PBA_34K
	.comm	_MAX_JUMBO_FRAME_SIZE,4,2       ; @MAX_JUMBO_FRAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hardware Error\n"

.subsections_via_symbols
