	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power
_power:                                 ## @power
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	movq	%rdx, %rsi
	movq	%r15, %rdx
	callq	_arg_parse
	movq	_opt@GOTPCREL(%rip), %r12
	cmpq	$0, 16(%r12)
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	movq	_POWER_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_arg_help
LBB0_3:
	movl	24(%r12), %edi
	leaq	-36(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_open_dev
	cmpq	$0, 16(%r12)
	jne	LBB0_4
## %bb.5:
	movq	(%r12), %rsi
	movq	_POWER_NONE@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edi
	cmpq	(%rax), %rsi
	jne	LBB0_6
## %bb.7:
	callq	_power_show
	jmp	LBB0_8
LBB0_4:
	movl	-36(%rbp), %edi
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_read_controller_data
	movq	%rbx, %rdi
	callq	_power_list
	jmp	LBB0_8
LBB0_6:
	movl	8(%r12), %edx
	xorl	%ecx, %ecx
	callq	_power_set
LBB0_8:
	movl	-36(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_opt,32,3                       ## @opt
	.comm	_POWER_NONE,8,3                 ## @POWER_NONE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't set power and list power states\n"

	.no_dead_strip	_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power
_power:                                 ; @power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x20
	bl	_arg_parse
Lloh0:
	adrp	x22, _opt@GOTPAGE
Lloh1:
	ldr	x22, [x22, _opt@GOTPAGEOFF]
	ldr	x8, [x22, #16]
Lloh2:
	adrp	x23, _POWER_NONE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _POWER_NONE@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_arg_help
LBB0_3:
	ldr	w0, [x22, #24]
	add	x1, sp, #4
	mov	w2, #1
	mov	w3, #1
	bl	_open_dev
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_6
; %bb.4:
	ldr	x1, [x22]
	ldr	x8, [x23]
	ldr	w0, [sp, #4]
	cmp	x1, x8
	b.ne	LBB0_7
; %bb.5:
	bl	_power_show
	b	LBB0_8
LBB0_6:
	ldr	w0, [sp, #4]
	add	x1, sp, #8
	bl	_read_controller_data
	add	x0, sp, #8
	bl	_power_list
	b	LBB0_8
LBB0_7:
	ldr	w2, [x22, #8]
	mov	w3, #0
	bl	_power_set
LBB0_8:
	ldr	w0, [sp, #4]
	bl	_close
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_opt,32,3                       ; @opt
	.comm	_POWER_NONE,8,3                 ; @POWER_NONE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't set power and list power states\n"

	.no_dead_strip	_power
.subsections_via_symbols
