	.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
	movl	%edi, %ebx
	movq	(%rsi), %r14
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_usage
LBB0_2:
	xorl	%eax, %eax
	callq	_acpi_init
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r15
	movq	_optarg@GOTPCREL(%rip), %r12
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$105, %eax
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	je	LBB0_20
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_usage
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$106, %eax
	jle	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$107, %eax
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$115, %eax
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdi
	cmpb	$83, (%rdi)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	movq	%rdi, (%r12)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r12
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	%rdi, %r12
	callq	_strlen
	cmpq	%rax, %r12
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	$-5, %eax
	movb	$1, %cl
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	cmpl	$-5, %eax
	movq	_optarg@GOTPCREL(%rip), %r12
	ja	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_3
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdi
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r12
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	%rdi, %r12
	callq	_strlen
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	cmpq	%rax, %r12
	movq	_optarg@GOTPCREL(%rip), %r12
	je	LBB0_3
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdi
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r12
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	%rdi, %r12
	callq	_strlen
	movl	$1, -68(%rbp)                   ## 4-byte Folded Spill
	cmpq	%rax, %r12
	movq	_optarg@GOTPCREL(%rip), %r12
	je	LBB0_3
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_3
LBB0_20:
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	setne	%al
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	setne	%cl
	andb	%al, %cl
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	andb	%r14b, %cl
	cmpb	$1, %cl
	je	LBB0_21
## %bb.22:
	testl	%ebx, %ebx
	jne	LBB0_23
LBB0_28:
	testl	%r15d, %r15d
	jne	LBB0_29
LBB0_32:
	testb	$1, %r14b
	je	LBB0_34
LBB0_33:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_acpi_sleep
LBB0_34:
	movq	_acpifd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_close
	xorl	%edi, %edi
	callq	_exit
LBB0_21:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	testl	%ebx, %ebx
	je	LBB0_28
LBB0_23:
	testl	%r15d, %r15d
	je	LBB0_25
## %bb.24:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_25:
	testb	$1, %r14b
	je	LBB0_27
## %bb.26:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_27:
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_acpi_battinfo
	testl	%r15d, %r15d
	je	LBB0_32
LBB0_29:
	testb	$1, %r14b
	je	LBB0_31
## %bb.30:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_31:
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_acpi_sleep_ack
	testb	$1, %r14b
	jne	LBB0_33
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hi:k:s:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_EX_USAGE,4,2                   ## @EX_USAGE
L_.str.1:                               ## @.str.1
	.asciz	"invalid battery"

L_.str.2:                               ## @.str.2
	.asciz	"invalid ack argument"

L_.str.3:                               ## @.str.3
	.asciz	"invalid sleep type"

L_.str.4:                               ## @.str.4
	.asciz	"invalid sleep type (%d)"

	.comm	_optind,8,3                     ## @optind
L_.str.5:                               ## @.str.5
	.asciz	"-i, -k and -s are mutually exclusive"

L_.str.6:                               ## @.str.6
	.asciz	"-i and -k are mutually exclusive"

L_.str.7:                               ## @.str.7
	.asciz	"-i and -s are mutually exclusive"

L_.str.8:                               ## @.str.8
	.asciz	"-k and -s are mutually exclusive"

	.comm	_acpifd,4,2                     ## @acpifd
.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x1
	mov	x23, x0
	ldr	x24, [x1]
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_usage
LBB0_2:
	bl	_acpi_init
	mov	w20, #0
	mov	w28, #0
	mov	w26, #0
	mov	w19, #-1
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
Lloh2:
	adrp	x27, _optarg@GOTPAGE
Lloh3:
	ldr	x27, [x27, _optarg@GOTPAGEOFF]
                                        ; implicit-def: $w0
                                        ; kill: killed $w0
                                        ; implicit-def: $w0
                                        ; kill: killed $w0
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #105
	b.eq	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	cmn	w0, #1
	b.eq	LBB0_19
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_usage
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_getopt
	cmp	w0, #106
	b.le	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #107
	b.eq	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #115
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x27]
	ldrb	w8, [x0]
	cmp	w8, #83
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x0, #1
	str	x0, [x27]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #24
	mov	w2, #10
	bl	_strtol
	mov	x19, x0
	ldr	x8, [sp, #24]
	ldr	x0, [x27]
	sub	x21, x8, x0
	bl	_strlen
	cmp	x21, x0
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh4:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w19, #5
	mov	w26, #1
	cmn	w8, #5
	b.hi	LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh9:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_errx
	mov	w26, #1
	b	LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x27]
	add	x1, sp, #24
	mov	w2, #10
	bl	_strtol
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #24]
	ldr	x0, [x27]
	sub	x21, x8, x0
	bl	_strlen
	mov	w20, #1
	cmp	x21, x0
	b.eq	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh14:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
	mov	w20, #1
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x27]
	add	x1, sp, #24
	mov	w2, #10
	bl	_strtol
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #24]
	ldr	x0, [x27]
	sub	x21, x8, x0
	bl	_strlen
	mov	w28, #1
	cmp	x21, x0
	b.eq	LBB0_6
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh19:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
	mov	w28, #1
	b	LBB0_6
LBB0_19:
	cmp	w20, #0
	ccmp	w28, #0, #4, ne
	cset	w8, ne
	and	w8, w8, w26
	cmp	w8, #1
	b.eq	LBB0_25
; %bb.20:
	cbnz	w20, LBB0_26
LBB0_21:
	cbnz	w28, LBB0_31
LBB0_22:
	tbz	w26, #0, LBB0_24
LBB0_23:
	mov	x0, x19
	bl	_acpi_sleep
LBB0_24:
Lloh24:
	adrp	x8, _acpifd@GOTPAGE
Lloh25:
	ldr	x8, [x8, _acpifd@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_close
	mov	w0, #0
	bl	_exit
LBB0_25:
Lloh27:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_errx
	cbz	w20, LBB0_21
LBB0_26:
	cbz	w28, LBB0_28
; %bb.27:
Lloh32:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_errx
LBB0_28:
	tbz	w26, #0, LBB0_30
; %bb.29:
Lloh37:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_errx
LBB0_30:
	ldr	w0, [sp, #16]                   ; 4-byte Folded Reload
	bl	_acpi_battinfo
	cbz	w28, LBB0_22
LBB0_31:
	tbz	w26, #0, LBB0_33
; %bb.32:
Lloh42:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.8@PAGE
Lloh46:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_errx
LBB0_33:
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_acpi_sleep_ack
	tbnz	w26, #0, LBB0_23
	b	LBB0_24
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hi:k:s:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_EX_USAGE,4,2                   ; @EX_USAGE
l_.str.1:                               ; @.str.1
	.asciz	"invalid battery"

l_.str.2:                               ; @.str.2
	.asciz	"invalid ack argument"

l_.str.3:                               ; @.str.3
	.asciz	"invalid sleep type"

l_.str.4:                               ; @.str.4
	.asciz	"invalid sleep type (%d)"

	.comm	_optind,8,3                     ; @optind
l_.str.5:                               ; @.str.5
	.asciz	"-i, -k and -s are mutually exclusive"

l_.str.6:                               ; @.str.6
	.asciz	"-i and -k are mutually exclusive"

l_.str.7:                               ; @.str.7
	.asciz	"-i and -s are mutually exclusive"

l_.str.8:                               ; @.str.8
	.asciz	"-k and -s are mutually exclusive"

	.comm	_acpifd,4,2                     ; @acpifd
.subsections_via_symbols
