	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siena_probe_nic
_siena_probe_nic:                       ## @siena_probe_nic
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, (%rax)
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_efx_farch_fpga_ver
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_4:
	movq	_EFX_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r15)
	movq	%rax, 40(%r15)
	movq	_FR_AZ_CS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_efx_reado
	movl	-44(%rbp), %edi
	movq	_FRF_CZ_CS_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EFX_OWORD_FIELD
	decq	%rax
	movq	%rax, 32(%r15)
	movq	%r15, %rdi
	callq	_efx_mcdi_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movq	_RESET_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_efx_mcdi_reset
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	jmp	LBB0_14
LBB0_7:
	movq	%r15, %rdi
	callq	_siena_init_wol
	leaq	8(%r15), %r12
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_efx_nic_alloc_buffer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %edi
	andl	$15, %edi
	callq	_BUG_ON
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	12(%r15), %ebx
	movl	24(%r15), %r13d
	movslq	8(%r15), %r14
	movl	%ebx, %edi
	callq	_virt_to_phys
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movq	%r14, %r8
	movl	%ebx, %r9d
	callq	_netif_dbg
	movq	%r15, %rdi
	callq	_siena_probe_nvconfig
	movl	%eax, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_10
## %bb.9:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	movq	_PHY_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_MDIO_PRTAD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	jmp	LBB0_11
LBB0_10:
	testl	%ebx, %ebx
	jne	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	callq	_efx_mcdi_mon_probe
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_efx_nic_free_buffer
LBB0_14:
	movq	%r15, %rdi
	callq	_efx_mcdi_detach
	movq	%r15, %rdi
	callq	_efx_mcdi_fini
LBB0_15:
	movq	(%r15), %rdi
	callq	_kfree
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	callq	_efx_ptp_defer_probe_with_channel
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Siena FPGA not supported\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EFX_MAX_CHANNELS,8,3           ## @EFX_MAX_CHANNELS
	.comm	_FR_AZ_CS_DEBUG,4,2             ## @FR_AZ_CS_DEBUG
	.comm	_FRF_CZ_CS_PORT_NUM,4,2         ## @FRF_CZ_CS_PORT_NUM
	.comm	_RESET_TYPE_ALL,4,2             ## @RESET_TYPE_ALL
L_.str.1:                               ## @.str.1
	.asciz	"failed to reset NIC\n"

L_.str.2:                               ## @.str.2
	.asciz	"INT_KER at %llx (virt %p phys %llx)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"NVRAM is invalid therefore using defaults\n"

	.comm	_PHY_TYPE_NONE,4,2              ## @PHY_TYPE_NONE
	.comm	_MDIO_PRTAD_NONE,4,2            ## @MDIO_PRTAD_NONE
	.no_dead_strip	_siena_probe_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siena_probe_nic
_siena_probe_nic:                       ; @siena_probe_nic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	str	x19, [x0]
	str	x0, [x19]
	mov	x0, x19
	bl	_efx_farch_fpga_ver
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _probe@GOTPAGE
Lloh3:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_4:
Lloh13:
	adrp	x8, _EFX_MAX_CHANNELS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EFX_MAX_CHANNELS@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #40]
Lloh16:
	adrp	x8, _FR_AZ_CS_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FR_AZ_CS_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_efx_reado
	ldr	w0, [sp, #12]
Lloh19:
	adrp	x8, _FRF_CZ_CS_PORT_NUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FRF_CZ_CS_PORT_NUM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_EFX_OWORD_FIELD
	sub	x8, x0, #1
	str	x8, [x19, #32]
	mov	x0, x19
	bl	_efx_mcdi_init
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.5:
Lloh22:
	adrp	x8, _RESET_TYPE_ALL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RESET_TYPE_ALL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_efx_mcdi_reset
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
Lloh25:
	adrp	x8, _probe@GOTPAGE
Lloh26:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
Lloh28:
	adrp	x3, l_.str.1@PAGE
Lloh29:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	bl	_siena_init_wol
	add	x20, x19, #8
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_efx_nic_alloc_buffer
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	w8, [x19, #8]
	and	w0, w8, #0xf
	bl	_BUG_ON
Lloh30:
	adrp	x25, _probe@GOTPAGE
Lloh31:
	ldr	x25, [x25, _probe@GOTPAGEOFF]
	ldr	w21, [x25]
	ldr	w22, [x19, #24]
	ldp	w23, w24, [x19, #8]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	mov	x0, x24
	bl	_virt_to_phys
	mov	x6, x0
Lloh32:
	adrp	x3, l_.str.2@PAGE
Lloh33:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x4, x23
	mov	x5, x24
	bl	_netif_dbg
	mov	x0, x19
	bl	_siena_probe_nvconfig
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x25]
	ldr	w2, [x19, #24]
Lloh37:
	adrp	x3, l_.str.3@PAGE
Lloh38:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh39:
	adrp	x8, _PHY_TYPE_NONE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PHY_TYPE_NONE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _MDIO_PRTAD_NONE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MDIO_PRTAD_NONE@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	b	LBB0_11
LBB0_10:
	mov	x21, x0
	cbnz	w0, LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_efx_mcdi_mon_probe
	mov	x21, x0
	cbz	w0, LBB0_16
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_efx_nic_free_buffer
LBB0_13:
	mov	x0, x19
	bl	_efx_mcdi_detach
	mov	x0, x19
	bl	_efx_mcdi_fini
LBB0_14:
	ldr	x0, [x19]
	bl	_kfree
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	mov	x0, x19
	bl	_efx_ptp_defer_probe_with_channel
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Siena FPGA not supported\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EFX_MAX_CHANNELS,8,3           ; @EFX_MAX_CHANNELS
	.comm	_FR_AZ_CS_DEBUG,4,2             ; @FR_AZ_CS_DEBUG
	.comm	_FRF_CZ_CS_PORT_NUM,4,2         ; @FRF_CZ_CS_PORT_NUM
	.comm	_RESET_TYPE_ALL,4,2             ; @RESET_TYPE_ALL
l_.str.1:                               ; @.str.1
	.asciz	"failed to reset NIC\n"

l_.str.2:                               ; @.str.2
	.asciz	"INT_KER at %llx (virt %p phys %llx)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"NVRAM is invalid therefore using defaults\n"

	.comm	_PHY_TYPE_NONE,4,2              ; @PHY_TYPE_NONE
	.comm	_MDIO_PRTAD_NONE,4,2            ; @MDIO_PRTAD_NONE
	.no_dead_strip	_siena_probe_nic
.subsections_via_symbols
