	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	movq	%rsi, %r13
	cmpl	$2, %edi
	jge	LBB0_1
LBB0_49:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_50:
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edi, %r12d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$30, -56(%rbp)                  ## 4-byte Folded Spill
	leaq	L_.str.1(%rip), %r14
	movq	_optarg@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %ebx
	movl	%r12d, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_getopt
	movl	$1, %ecx
	cmpl	$99, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$116, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$100, %eax
	jne	LBB0_49
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, %ecx
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	callq	_atoi
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	jmp	LBB0_2
LBB0_8:
	movl	%r12d, %edi
	callq	_malloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_optind@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%r12d, %eax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	jge	LBB0_12
## %bb.11:
	movslq	%eax, %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdi
	notl	%eax
	addl	%r12d, %eax
	leaq	4(,%rax,4), %rdx
	movl	$255, %esi
	callq	_memset
	movl	(%r14), %eax
LBB0_12:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	cmpl	%r12d, %eax
	jge	LBB0_19
## %bb.13:
	movslq	%eax, %r15
	movslq	-48(%rbp), %r12                 ## 4-byte Folded Reload
	movq	_O_RDWR@GOTPCREL(%rip), %r13
	movq	_ENCIOC_INIT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rdi
	movl	(%r13), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %ebx
	movl	(%r14), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %edi
	callq	_close
	incq	%r15
	cmpq	%r15, %r12
	jne	LBB0_14
LBB0_19:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.23:
	movq	_LOG_CONS@GOTPCREL(%rip), %rax
	movq	_LOG_PERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	jmp	LBB0_24
LBB0_20:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_daemon
	testq	%rax, %rax
	js	LBB0_21
## %bb.22:
	movq	_LOG_CONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_24:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	_optind@GOTPCREL(%rip), %rbx
	movq	_LOG_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rdi
	callq	_openlog
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_sleep
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	_optind@GOTPCREL(%rip), %rbx
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
	movslq	(%rbx), %rax
	cmpl	%r14d, %eax
	jge	LBB0_48
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rbx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r15d
	subl	%eax, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=2
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx,%r12,8), %rdx
	leaq	L_.str.7(%rip), %rsi
	callq	_syslog
	movl	%r13d, %edi
	callq	_close
LBB0_47:                                ##   in Loop: Header=BB0_27 Depth=2
	incq	%r12
	cmpl	%r12d, %r15d
	je	LBB0_48
LBB0_27:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r12,8), %rdi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=2
	movl	%eax, %r13d
	movq	_ENCIOC_GETENCSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	leaq	-44(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=2
	cmpl	$0, -44(%rbp)
	je	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=2
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_27 Depth=2
	movl	$0, -72(%rbp)
	movq	_ENCIOC_SETENCSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	leaq	-72(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx,%r12,8), %rdx
	leaq	L_.str.8(%rip), %rsi
	callq	_syslog
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_27 Depth=2
	movl	%r13d, %edi
	callq	_close
	movl	-44(%rbp), %eax
	cmpl	(%r14,%r12,4), %eax
	je	LBB0_47
## %bb.36:                              ##   in Loop: Header=BB0_27 Depth=2
	movl	%eax, (%r14,%r12,4)
	movl	-44(%rbp), %eax
	movq	_ALLSTAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx,%r12,8), %rdx
	leaq	L_.str.9(%rip), %rsi
	callq	_syslog
	movl	-44(%rbp), %eax
LBB0_38:                                ##   in Loop: Header=BB0_27 Depth=2
	movq	_SES_ENCSTAT_INFO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx,%r12,8), %rdx
	leaq	L_.str.10(%rip), %rsi
	callq	_syslog
	movl	-44(%rbp), %eax
LBB0_40:                                ##   in Loop: Header=BB0_27 Depth=2
	movq	_SES_ENCSTAT_NONCRITICAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx,%r12,8), %rdx
	leaq	L_.str.11(%rip), %rsi
	callq	_syslog
	movl	-44(%rbp), %eax
LBB0_42:                                ##   in Loop: Header=BB0_27 Depth=2
	movq	_SES_ENCSTAT_CRITICAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	_LOG_CRIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx,%r12,8), %rdx
	leaq	L_.str.12(%rip), %rsi
	callq	_syslog
	movl	-44(%rbp), %eax
LBB0_44:                                ##   in Loop: Header=BB0_27 Depth=2
	movq	_SES_ENCSTAT_UNRECOV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_47
## %bb.45:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	_LOG_ALERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx,%r12,8), %rdx
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_27 Depth=2
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx,%r12,8), %rdx
	leaq	L_.str.6(%rip), %rsi
LBB0_46:                                ##   in Loop: Header=BB0_27 Depth=2
	callq	_syslog
	jmp	LBB0_47
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_50
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_50
LBB0_15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rdi
	callq	_perror
	jmp	LBB0_50
LBB0_21:
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s [ -c ] [ -d ] [ -t pollinterval ] device [ device ]\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"cdt:"

	.comm	_optarg,4,2                     ## @optarg
L_.str.2:                               ## @.str.2
	.asciz	"malloc"

	.comm	_optind,4,2                     ## @optind
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_ENCIOC_INIT,4,2                ## @ENCIOC_INIT
L_.str.3:                               ## @.str.3
	.asciz	"%s: ENCIOC_INIT fails- %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"daemon"

L_.str.5:                               ## @.str.5
	.asciz	"sesd"

	.comm	_LOG_CONS,4,2                   ## @LOG_CONS
	.comm	_LOG_USER,4,2                   ## @LOG_USER
	.comm	_LOG_PERROR,4,2                 ## @LOG_PERROR
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.6:                               ## @.str.6
	.asciz	"%s: %m"

	.comm	_ENCIOC_GETENCSTAT,4,2          ## @ENCIOC_GETENCSTAT
L_.str.7:                               ## @.str.7
	.asciz	"%s: ENCIOC_GETENCSTAT- %m"

	.comm	_ENCIOC_SETENCSTAT,4,2          ## @ENCIOC_SETENCSTAT
L_.str.8:                               ## @.str.8
	.asciz	"%s: ENCIOC_SETENCSTAT- %m"

	.comm	_ALLSTAT,4,2                    ## @ALLSTAT
	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
L_.str.9:                               ## @.str.9
	.asciz	"%s: Enclosure Status OK"

	.comm	_SES_ENCSTAT_INFO,4,2           ## @SES_ENCSTAT_INFO
L_.str.10:                              ## @.str.10
	.asciz	"%s: Enclosure Has Information"

	.comm	_SES_ENCSTAT_NONCRITICAL,4,2    ## @SES_ENCSTAT_NONCRITICAL
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.11:                              ## @.str.11
	.asciz	"%s: Enclosure Non-Critical"

	.comm	_SES_ENCSTAT_CRITICAL,4,2       ## @SES_ENCSTAT_CRITICAL
	.comm	_LOG_CRIT,4,2                   ## @LOG_CRIT
L_.str.12:                              ## @.str.12
	.asciz	"%s: Enclosure Critical"

	.comm	_SES_ENCSTAT_UNRECOV,4,2        ## @SES_ENCSTAT_UNRECOV
	.comm	_LOG_ALERT,4,2                  ## @LOG_ALERT
L_.str.13:                              ## @.str.13
	.asciz	"%s: Enclosure Unrecoverable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x1
	cmp	w0, #2
	b.ge	LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x2, [x24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_fprintf
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	mov	x28, x0
	mov	w20, #0
	mov	w8, #0
	mov	w9, #30
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
Lloh5:
	adrp	x21, _optarg@GOTPAGE
Lloh6:
	ldr	x21, [x21, _optarg@GOTPAGEOFF]
Lloh7:
	adrp	x19, l_.str.1@PAGE
Lloh8:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	mov	x0, x28
	mov	x1, x24
	mov	x2, x19
	bl	_getopt
	mov	w8, #1
	cmp	w0, #99
	b.eq	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #116
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #100
	b.ne	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w20, #1
	mov	x8, x25
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_atoi
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x8, x25
	b	LBB0_5
LBB0_11:
	mov	x0, x28
	bl	_malloc
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_49
; %bb.12:
Lloh9:
	adrp	x8, _optind@GOTPAGE
Lloh10:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w28
	b.ge	LBB0_14
; %bb.13:
	sxtw	x9, w8
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	add	x0, x10, x9, lsl #2
	mvn	w8, w8
	add	w8, w8, w28
	lsl	x8, x8, #2
	add	x2, x8, #4
	mov	w1, #255
	bl	_memset
Lloh12:
	adrp	x8, _optind@GOTPAGE
Lloh13:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
LBB0_14:
Lloh15:
	adrp	x26, _O_RDWR@GOTPAGE
Lloh16:
	ldr	x26, [x26, _O_RDWR@GOTPAGEOFF]
	cmp	w8, w28
	b.ge	LBB0_19
; %bb.15:
	sxtw	x9, w28
	add	x21, x24, w8, sxtw #3
Lloh17:
	adrp	x22, _ENCIOC_INIT@GOTPAGE
Lloh18:
	ldr	x22, [x22, _ENCIOC_INIT@GOTPAGEOFF]
	sub	x23, x9, w8, sxtw
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w1, [x26]
	bl	_open
	tbnz	w0, #31, LBB0_50
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x19, x0
	ldr	w1, [x22]
	mov	x2, #0
	bl	_ioctl
	tbnz	x0, #63, LBB0_48
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	bl	_close
	add	x21, x21, #8
	subs	x23, x23, #1
	b.ne	LBB0_16
LBB0_19:
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	cbz	w20, LBB0_21
; %bb.20:
Lloh19:
	adrp	x8, _LOG_CONS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LOG_CONS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _LOG_PERROR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _LOG_PERROR@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w9, w8
	b	LBB0_23
LBB0_21:
	mov	w0, #0
	mov	w1, #0
	bl	_daemon
	tbnz	x0, #63, LBB0_51
; %bb.22:
Lloh25:
	adrp	x8, _LOG_CONS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LOG_CONS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
LBB0_23:
Lloh28:
	adrp	x8, _LOG_USER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LOG_USER@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_openlog
Lloh33:
	adrp	x20, _LOG_ERR@GOTPAGE
Lloh34:
	ldr	x20, [x20, _LOG_ERR@GOTPAGEOFF]
Lloh35:
	adrp	x23, l_.str.6@PAGE
Lloh36:
	add	x23, x23, l_.str.6@PAGEOFF
Lloh37:
	adrp	x27, _ENCIOC_GETENCSTAT@GOTPAGE
Lloh38:
	ldr	x27, [x27, _ENCIOC_GETENCSTAT@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	bl	_sleep
	mov	x28, x24
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
Lloh39:
	adrp	x8, _optind@GOTPAGE
Lloh40:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh41:
	ldrsw	x8, [x8]
	mov	x24, x28
	cmp	w8, w28
	b.ge	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x19, x9, x8, lsl #3
	sub	w22, w24, w8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x28, x9, x8, lsl #2
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	w0, [x20]
	ldr	x2, [x19]
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_syslog
	mov	x0, x21
	bl	_close
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	x19, x19, #8
	add	x28, x28, #4
	subs	w22, w22, #1
	b.eq	LBB0_24
LBB0_29:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19]
	ldr	w1, [x26]
	bl	_open
	tbnz	w0, #31, LBB0_46
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	x21, x0
	ldr	w1, [x27]
	add	x2, sp, #44
	bl	_ioctl
	tbnz	x0, #63, LBB0_27
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=2
	cbz	w25, LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_29 Depth=2
	str	wzr, [sp, #40]
Lloh44:
	adrp	x8, _ENCIOC_SETENCSTAT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENCIOC_SETENCSTAT@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x21
	bl	_ioctl
	tbz	x0, #63, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	w0, [x20]
	ldr	x2, [x19]
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_syslog
LBB0_35:                                ;   in Loop: Header=BB0_29 Depth=2
	mov	x0, x21
	bl	_close
	ldr	w8, [sp, #44]
	ldr	w9, [x28]
	cmp	w8, w9
	b.eq	LBB0_28
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=2
	str	w8, [x28]
	ldr	w8, [sp, #44]
Lloh49:
	adrp	x9, _ALLSTAT@GOTPAGE
Lloh50:
	ldr	x9, [x9, _ALLSTAT@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_29 Depth=2
Lloh52:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh55:
	adrp	x1, l_.str.9@PAGE
Lloh56:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_syslog
	ldr	w8, [sp, #44]
LBB0_38:                                ;   in Loop: Header=BB0_29 Depth=2
Lloh57:
	adrp	x9, _SES_ENCSTAT_INFO@GOTPAGE
Lloh58:
	ldr	x9, [x9, _SES_ENCSTAT_INFO@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_29 Depth=2
Lloh60:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh63:
	adrp	x1, l_.str.10@PAGE
Lloh64:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_syslog
	ldr	w8, [sp, #44]
LBB0_40:                                ;   in Loop: Header=BB0_29 Depth=2
Lloh65:
	adrp	x9, _SES_ENCSTAT_NONCRITICAL@GOTPAGE
Lloh66:
	ldr	x9, [x9, _SES_ENCSTAT_NONCRITICAL@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_29 Depth=2
Lloh68:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh69:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh71:
	adrp	x1, l_.str.11@PAGE
Lloh72:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_syslog
	ldr	w8, [sp, #44]
LBB0_42:                                ;   in Loop: Header=BB0_29 Depth=2
Lloh73:
	adrp	x9, _SES_ENCSTAT_CRITICAL@GOTPAGE
Lloh74:
	ldr	x9, [x9, _SES_ENCSTAT_CRITICAL@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_29 Depth=2
Lloh76:
	adrp	x8, _LOG_CRIT@GOTPAGE
Lloh77:
	ldr	x8, [x8, _LOG_CRIT@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh79:
	adrp	x1, l_.str.12@PAGE
Lloh80:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_syslog
	ldr	w8, [sp, #44]
LBB0_44:                                ;   in Loop: Header=BB0_29 Depth=2
Lloh81:
	adrp	x9, _SES_ENCSTAT_UNRECOV@GOTPAGE
Lloh82:
	ldr	x9, [x9, _SES_ENCSTAT_UNRECOV@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.45:                               ;   in Loop: Header=BB0_29 Depth=2
Lloh84:
	adrp	x8, _LOG_ALERT@GOTPAGE
Lloh85:
	ldr	x8, [x8, _LOG_ALERT@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh87:
	adrp	x1, l_.str.13@PAGE
Lloh88:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	w0, [x20]
	ldr	x2, [x19]
	mov	x1, x23
LBB0_47:                                ;   in Loop: Header=BB0_29 Depth=2
	bl	_syslog
	b	LBB0_28
LBB0_48:
Lloh89:
	adrp	x8, _stderr@GOTPAGE
Lloh90:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh91:
	ldr	w19, [x8]
	ldr	x20, [x21]
Lloh92:
	adrp	x8, _errno@GOTPAGE
Lloh93:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh95:
	adrp	x1, l_.str.3@PAGE
Lloh96:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	b	LBB0_2
LBB0_49:
Lloh97:
	adrp	x0, l_.str.2@PAGE
Lloh98:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_3
LBB0_50:
	ldr	x0, [x21]
	bl	_perror
	b	LBB0_3
LBB0_51:
Lloh99:
	adrp	x0, l_.str.4@PAGE
Lloh100:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh99, Lloh100
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s [ -c ] [ -d ] [ -t pollinterval ] device [ device ]\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"cdt:"

	.comm	_optarg,4,2                     ; @optarg
l_.str.2:                               ; @.str.2
	.asciz	"malloc"

	.comm	_optind,4,2                     ; @optind
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_ENCIOC_INIT,4,2                ; @ENCIOC_INIT
l_.str.3:                               ; @.str.3
	.asciz	"%s: ENCIOC_INIT fails- %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"daemon"

l_.str.5:                               ; @.str.5
	.asciz	"sesd"

	.comm	_LOG_CONS,4,2                   ; @LOG_CONS
	.comm	_LOG_USER,4,2                   ; @LOG_USER
	.comm	_LOG_PERROR,4,2                 ; @LOG_PERROR
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.6:                               ; @.str.6
	.asciz	"%s: %m"

	.comm	_ENCIOC_GETENCSTAT,4,2          ; @ENCIOC_GETENCSTAT
l_.str.7:                               ; @.str.7
	.asciz	"%s: ENCIOC_GETENCSTAT- %m"

	.comm	_ENCIOC_SETENCSTAT,4,2          ; @ENCIOC_SETENCSTAT
l_.str.8:                               ; @.str.8
	.asciz	"%s: ENCIOC_SETENCSTAT- %m"

	.comm	_ALLSTAT,4,2                    ; @ALLSTAT
	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
l_.str.9:                               ; @.str.9
	.asciz	"%s: Enclosure Status OK"

	.comm	_SES_ENCSTAT_INFO,4,2           ; @SES_ENCSTAT_INFO
l_.str.10:                              ; @.str.10
	.asciz	"%s: Enclosure Has Information"

	.comm	_SES_ENCSTAT_NONCRITICAL,4,2    ; @SES_ENCSTAT_NONCRITICAL
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.11:                              ; @.str.11
	.asciz	"%s: Enclosure Non-Critical"

	.comm	_SES_ENCSTAT_CRITICAL,4,2       ; @SES_ENCSTAT_CRITICAL
	.comm	_LOG_CRIT,4,2                   ; @LOG_CRIT
l_.str.12:                              ; @.str.12
	.asciz	"%s: Enclosure Critical"

	.comm	_SES_ENCSTAT_UNRECOV,4,2        ; @SES_ENCSTAT_UNRECOV
	.comm	_LOG_ALERT,4,2                  ; @LOG_ALERT
l_.str.13:                              ; @.str.13
	.asciz	"%s: Enclosure Unrecoverable"

.subsections_via_symbols
