	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flashinfo_show
_flashinfo_show:                        ## @flashinfo_show
	.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	%rdx, %r14
	callq	_to_cros_ec_dev
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	$0, 32(%rax)
	movq	_EC_CMD_FLASH_INFO@GOTPCREL(%rip), %rax
	movq	8(%r15), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 24(%rbx)
	movl	$16, (%rbx)
	movq	$0, 16(%rbx)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_cros_ec_cmd_xfer_status
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	12(%rax), %ecx
	movl	8(%rax), %r8d
	movl	(%rax), %edx
	movl	4(%rax), %r9d
	movl	%edx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_scnprintf
LBB0_4:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EC_CMD_FLASH_INFO,8,3          ## @EC_CMD_FLASH_INFO
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FlashSize %d\nWriteSize %d\nEraseSize %d\nProtectSize %d\n"

	.no_dead_strip	_flashinfo_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flashinfo_show
_flashinfo_show:                        ; @flashinfo_show
	.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, x2
	bl	_to_cros_ec_dev
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	xzr, [x0, #32]
Lloh3:
	adrp	x8, _EC_CMD_FLASH_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_CMD_FLASH_INFO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	add	x8, x9, x8
	mov	w9, #16
	str	w9, [x0]
	stp	xzr, x8, [x0, #16]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_cros_ec_cmd_xfer_status
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh8:
	ldr	w1, [x8]
	ldp	w4, w3, [x9, #8]
	ldp	w6, w5, [x9]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_scnprintf
LBB0_3:
	mov	x21, x0
	mov	x0, x19
	bl	_kfree
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EC_CMD_FLASH_INFO,8,3          ; @EC_CMD_FLASH_INFO
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FlashSize %d\nWriteSize %d\nEraseSize %d\nProtectSize %d\n"

	.no_dead_strip	_flashinfo_show
.subsections_via_symbols
