	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_probe_nvconfig
_falcon_probe_nvconfig:                 ## @falcon_probe_nvconfig
	.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, %r12
	movq	16(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_falcon_read_nvram
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	8(%r14), %eax
	movl	%eax, 4(%r12)
	movl	4(%r14), %eax
	movl	%eax, (%r12)
	movl	32(%r14), %edi
	callq	_le16_to_cpu
	cmpl	$3, %eax
	jl	LBB0_5
## %bb.4:
	leaq	4(%r15), %r13
	movq	_FFE_AB_SPI_DEVICE_FLASH@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_falcon_spi_device_init
	movq	_FFE_AB_SPI_DEVICE_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_falcon_spi_device_init
LBB0_5:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rax
	movl	(%rax), %esi
	callq	_ether_addr_copy
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r12), %rdx
	movl	(%r12), %r9d
	movl	4(%r12), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_dbg
	movl	(%r14), %edi
	callq	_le16_to_cpu
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_falcon_probe_board
	movl	%eax, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FFE_AB_SPI_DEVICE_FLASH,8,3    ## @FFE_AB_SPI_DEVICE_FLASH
	.comm	_FFE_AB_SPI_DEVICE_EEPROM,8,3   ## @FFE_AB_SPI_DEVICE_EEPROM
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY is %d phy_id %d\n"

	.no_dead_strip	_falcon_probe_nvconfig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_probe_nvconfig
_falcon_probe_nvconfig:                 ; @falcon_probe_nvconfig
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, [x0, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_falcon_read_nvram
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldur	d0, [x20, #4]
	str	d0, [x19]
	ldr	w0, [x20, #32]
	bl	_le16_to_cpu
	cmp	w0, #3
	b.lt	LBB0_4
; %bb.3:
	add	x22, x21, #4
Lloh3:
	adrp	x8, _FFE_AB_SPI_DEVICE_FLASH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FFE_AB_SPI_DEVICE_FLASH@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x23, lsl #2]
	bl	_le32_to_cpu
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_falcon_spi_device_init
Lloh6:
	adrp	x8, _FFE_AB_SPI_DEVICE_EEPROM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FFE_AB_SPI_DEVICE_EEPROM@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x22, lsl #2]
	bl	_le32_to_cpu
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_falcon_spi_device_init
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	bl	_ether_addr_copy
Lloh9:
	adrp	x8, _probe@GOTPAGE
Lloh10:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	ldp	w5, w4, [x19]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_falcon_probe_board
	mov	x22, x0
LBB0_5:
	mov	x0, x20
	bl	_kfree
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FFE_AB_SPI_DEVICE_FLASH,8,3    ; @FFE_AB_SPI_DEVICE_FLASH
	.comm	_FFE_AB_SPI_DEVICE_EEPROM,8,3   ; @FFE_AB_SPI_DEVICE_EEPROM
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY is %d phy_id %d\n"

	.no_dead_strip	_falcon_probe_nvconfig
.subsections_via_symbols
