	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power_write_file
_power_write_file:                      ## @power_write_file
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	(%rdi), %r14
	xorl	%r12d, %r12d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, %rbx
	movzbl	%bl, %esi
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movl	(%r14), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	cmpb	$1, %bl
	je	LBB0_6
## %bb.2:
	testb	%bl, %bl
	jne	LBB0_8
## %bb.3:
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	*%rcx
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_6:
	movq	8(%r14), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_7
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	(%r14), %edi
	callq	_module_put
LBB0_11:
	testl	%r12d, %r12d
	cmovnel	%r12d, %r15d
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power = %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Illegal value specified for power\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_power_write_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_write_file
_power_write_file:                      ; @power_write_file
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	ldr	x20, [x0]
	mov	x0, x1
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x21, x0
	and	w1, w21, #0xff
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	ldr	w0, [x20]
	bl	_try_module_get
	cbz	w0, LBB0_5
; %bb.1:
	and	w8, w21, #0xff
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.2:
	cbnz	w8, LBB0_8
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_4:
	mov	x0, x20
	blr	x8
	mov	x21, x0
	b	LBB0_9
LBB0_5:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_4
LBB0_7:
	mov	w21, #0
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	ldr	w0, [x20]
	bl	_module_put
LBB0_10:
	cmp	w21, #0
	csel	w0, w19, w21, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power = %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Illegal value specified for power\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_power_write_file
.subsections_via_symbols
