	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siena_mtd_probe_partition
_siena_mtd_probe_partition:             ## @siena_mtd_probe_partition
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_siena_nvram_types@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpl	%r14d, %eax
	jbe	LBB0_2
## %bb.1:
	movq	(%rbx), %r13
	movl	%r14d, %r12d
	shlq	$4, %r12
	cmpq	$0, 8(%r13,%r12)
	je	LBB0_2
## %bb.3:
	movq	(%r13,%r12), %rbx
	movq	%r15, %rdi
	callq	_efx_port_num
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.4:
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_efx_mcdi_nvram_info
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	cmpl	$0, -48(%rbp)
	je	LBB0_6
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	leaq	(%r12,%r13), %rcx
	addq	$8, %rcx
	leaq	(%rax,%rax,4), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, 32(%rdx,%rax,8)
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rdx,%rax,8)
	movq	_MTD_NORFLASH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rdx,%rax,8)
	movq	_MTD_CAP_NORFLASH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rdx,%rax,8)
	movq	-72(%rbp), %rcx
	movq	%rcx, (%rdx,%rax,8)
	movq	-64(%rbp), %rcx
	movq	%rcx, 8(%rdx,%rax,8)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_siena_nvram_types,8,3          ## @siena_nvram_types
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MTD_NORFLASH,4,2               ## @MTD_NORFLASH
	.comm	_MTD_CAP_NORFLASH,4,2           ## @MTD_CAP_NORFLASH
	.no_dead_strip	_siena_mtd_probe_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siena_mtd_probe_partition
_siena_mtd_probe_partition:             ; @siena_mtd_probe_partition
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x22, [x1]
Lloh0:
	adrp	x23, _siena_nvram_types@GOTPAGE
Lloh1:
	ldr	x23, [x23, _siena_nvram_types@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, w19
	b.ls	LBB0_5
; %bb.1:
	ldr	x8, [x23]
	add	x23, x8, w19, uxtw #4
	ldr	x9, [x23, #8]!
	cbz	x9, LBB0_5
; %bb.2:
	mov	w9, w19
	lsl	x9, x9, #4
	ldr	x24, [x8, x9]
	mov	x0, x21
	bl	_efx_port_num
	cmp	x24, x0
	b.ne	LBB0_5
; %bb.3:
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x19
	bl	_efx_mcdi_nvram_info
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #96
	ret
LBB0_7:
	mov	w0, #0
	mov	w8, w20
	mov	w9, #40
	madd	x8, x8, x9, x22
	str	w19, [x8, #32]
	ldr	x9, [x23]
	str	x9, [x8, #24]
Lloh5:
	adrp	x9, _MTD_NORFLASH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MTD_NORFLASH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8, #20]
Lloh8:
	adrp	x9, _MTD_CAP_NORFLASH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MTD_CAP_NORFLASH@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	ldr	x9, [sp, #24]
	str	x9, [x8]
	ldr	x9, [sp, #16]
	str	x9, [x8, #8]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_siena_nvram_types,8,3          ; @siena_nvram_types
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MTD_NORFLASH,4,2               ; @MTD_NORFLASH
	.comm	_MTD_CAP_NORFLASH,4,2           ; @MTD_CAP_NORFLASH
	.no_dead_strip	_siena_mtd_probe_partition
.subsections_via_symbols
