	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aoedisk_show_state
_aoedisk_show_state:                    ## @aoedisk_show_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_dev_to_disk
	movq	(%rax), %rdx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdx), %eax
	movq	_DEVFL_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DEVFL_KICKME@GOTPCREL(%rip), %rdi
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.3(%rip), %r8
	jmp	LBB0_3
LBB0_2:
	testl	%eax, %ecx
	leaq	L_.str.4(%rip), %r8
	leaq	L_.str.5(%rip), %rdi
	cmovneq	%rdi, %r8
	cmpq	$0, 8(%rdx)
	cmoveq	%rdi, %r8
LBB0_3:
	testl	%eax, %ecx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s\n"

	.comm	_DEVFL_UP,4,2                   ## @DEVFL_UP
L_.str.1:                               ## @.str.1
	.asciz	"up"

L_.str.2:                               ## @.str.2
	.asciz	"down"

	.comm	_DEVFL_KICKME,4,2               ## @DEVFL_KICKME
L_.str.3:                               ## @.str.3
	.asciz	",kickme"

L_.str.4:                               ## @.str.4
	.asciz	",closewait"

L_.str.5:                               ## @.str.5
	.space	1

	.no_dead_strip	_aoedisk_show_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aoedisk_show_state
_aoedisk_show_state:                    ; @aoedisk_show_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_dev_to_disk
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w10, [x9]
Lloh3:
	adrp	x8, _DEVFL_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEVFL_UP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w10
Lloh6:
	adrp	x11, _DEVFL_KICKME@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DEVFL_KICKME@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x4, l_.str.3@PAGE
Lloh10:
	add	x4, x4, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldr	x9, [x9, #8]
Lloh11:
	adrp	x10, l_.str.5@PAGE
Lloh12:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh13:
	adrp	x11, l_.str.4@PAGE
Lloh14:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	w8, #0
	csel	x11, x11, x10, eq
	cmp	x9, #0
	csel	x4, x10, x11, eq
LBB0_3:
Lloh15:
	adrp	x9, l_.str.1@PAGE
Lloh16:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh17:
	adrp	x10, l_.str.2@PAGE
Lloh18:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	csel	x3, x10, x9, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snprintf
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s\n"

	.comm	_DEVFL_UP,4,2                   ; @DEVFL_UP
l_.str.1:                               ; @.str.1
	.asciz	"up"

l_.str.2:                               ; @.str.2
	.asciz	"down"

	.comm	_DEVFL_KICKME,4,2               ; @DEVFL_KICKME
l_.str.3:                               ; @.str.3
	.asciz	",kickme"

l_.str.4:                               ; @.str.4
	.asciz	",closewait"

l_.str.5:                               ; @.str.5
	.space	1

	.no_dead_strip	_aoedisk_show_state
.subsections_via_symbols
