	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_falcon_reset_xaui              ## -- Begin function falcon_reset_xaui
	.p2align	4, 0x90
_falcon_reset_xaui:                     ## @falcon_reset_xaui
	.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	%rdi, %r13
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_WARN_ON
	movq	_FRF_AB_XX_RST_XX_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$1, %edx
	callq	_EF4_POPULATE_OWORD_1
	movq	_FR_AB_XX_PWR_RST@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-44(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ef4_writeo
	movl	$1000, %ebx                     ## imm = 0x3E8
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ef4_reado
	movl	-44(%rbp), %edi
	movl	(%r15), %esi
	callq	_EF4_OWORD_FIELD
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_SD_RST_ACT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_OWORD_FIELD
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_falcon_setup_xaui
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	callq	_netif_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRF_AB_XX_RST_XX_EN,4,2        ## @FRF_AB_XX_RST_XX_EN
	.comm	_FR_AB_XX_PWR_RST,4,2           ## @FR_AB_XX_PWR_RST
	.comm	_FRF_AB_XX_SD_RST_ACT,4,2       ## @FRF_AB_XX_SD_RST_ACT
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out waiting for XAUI/XGXS reset\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_falcon_reset_xaui              ; -- Begin function falcon_reset_xaui
	.p2align	2
_falcon_reset_xaui:                     ; @falcon_reset_xaui
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh0:
	adrp	x20, _FRF_AB_XX_RST_XX_EN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FRF_AB_XX_RST_XX_EN@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #1
	bl	_EF4_POPULATE_OWORD_1
Lloh2:
	adrp	x21, _FR_AB_XX_PWR_RST@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FR_AB_XX_PWR_RST@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
	mov	w22, #1000
Lloh4:
	adrp	x23, _FRF_AB_XX_SD_RST_ACT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FRF_AB_XX_SD_RST_ACT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w22, w22, #1
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_reado
	ldr	w0, [sp, #12]
	ldr	w1, [x20]
	bl	_EF4_OWORD_FIELD
	cbnz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #12]
	ldr	w1, [x23]
	bl	_EF4_OWORD_FIELD
	cbnz	x0, LBB0_1
; %bb.4:
	mov	x0, x19
	bl	_falcon_setup_xaui
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _hw@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FRF_AB_XX_RST_XX_EN,4,2        ; @FRF_AB_XX_RST_XX_EN
	.comm	_FR_AB_XX_PWR_RST,4,2           ; @FR_AB_XX_PWR_RST
	.comm	_FRF_AB_XX_SD_RST_ACT,4,2       ; @FRF_AB_XX_SD_RST_ACT
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out waiting for XAUI/XGXS reset\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
