	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function beri_cfi_disk_print
_beri_cfi_disk_print:                   ## @beri_cfi_disk_print
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_beri_cfi_disk@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	leaq	L_.str.1(%rip), %rdi
	callq	_pager_output
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	L_.str.2(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$80, %esi
	xorl	%ecx, %ecx
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_pager_output
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r15, -120(%rbp)
	movq	$0, -128(%rbp)
	movq	_D_SLICENONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -132(%rbp)
	movq	_D_PARTNONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)
	xorl	%eax, %eax
	callq	_cfi_get_mediasize
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_cfi_get_sectorsize
	leaq	-136(%rbp), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_disk_open
	movl	$0, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$80, %esi
	xorl	%ecx, %ecx
	callq	_snprintf
	leaq	-136(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_disk_print
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_disk_close
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s devices:"

	.comm	_beri_cfi_disk,8,3              ## @beri_cfi_disk
L_.str.1:                               ## @.str.1
	.asciz	"\n"

L_.str.2:                               ## @.str.2
	.asciz	"    cfi%d   CFI flash device\n"

	.comm	_D_SLICENONE,4,2                ## @D_SLICENONE
	.comm	_D_PARTNONE,4,2                 ## @D_PARTNONE
L_.str.3:                               ## @.str.3
	.asciz	"    cfi%d"

	.no_dead_strip	_beri_cfi_disk_print
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function beri_cfi_disk_print
_beri_cfi_disk_print:                   ; @beri_cfi_disk_print
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _beri_cfi_disk@GOTPAGE
Lloh4:
	ldr	x21, [x21, _beri_cfi_disk@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pager_output
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	w1, #80
	mov	w3, #0
	bl	_snprintf
	add	x0, sp, #24
	bl	_pager_output
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.2:
	stp	xzr, x21, [sp, #8]
Lloh11:
	adrp	x8, _D_SLICENONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D_SLICENONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _D_PARTNONE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _D_PARTNONE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	bl	_cfi_get_mediasize
	mov	x20, x0
	bl	_cfi_get_sectorsize
	mov	x2, x0
	mov	x0, sp
	mov	x1, x20
	bl	_disk_open
	cbz	x0, LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #24
	mov	w1, #80
	mov	w3, #0
	bl	_snprintf
	mov	x0, sp
	add	x1, sp, #24
	mov	x2, x19
	bl	_disk_print
	mov	x20, x0
	mov	x0, sp
	bl	_disk_close
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s devices:"

	.comm	_beri_cfi_disk,8,3              ; @beri_cfi_disk
l_.str.1:                               ; @.str.1
	.asciz	"\n"

l_.str.2:                               ; @.str.2
	.asciz	"    cfi%d   CFI flash device\n"

	.comm	_D_SLICENONE,4,2                ; @D_SLICENONE
	.comm	_D_PARTNONE,4,2                 ; @D_PARTNONE
l_.str.3:                               ; @.str.3
	.asciz	"    cfi%d"

	.no_dead_strip	_beri_cfi_disk_print
.subsections_via_symbols
