	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_component_power_status
_set_component_power_status:            ## @set_component_power_status
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_enclosure_device
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_enclosure_component
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_9
LBB0_1:
	movb	2(%r13), %al
	movl	$1, %edx
	testb	%al, %al
	je	LBB0_7
## %bb.2:
	cmpb	$10, %al
	je	LBB0_7
	jmp	LBB0_3
LBB0_4:
	movb	3(%r13), %al
	xorl	%edx, %edx
	testb	%al, %al
	je	LBB0_7
## %bb.5:
	cmpb	$10, %al
	jne	LBB0_6
LBB0_7:
	movq	(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*%rcx
LBB0_9:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"on"

L_.str.1:                               ## @.str.1
	.asciz	"off"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_set_component_power_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_component_power_status
_set_component_power_status:            ; @set_component_power_status
	.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, x3
	mov	x22, x2
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_enclosure_device
	mov	x20, x0
	mov	x0, x21
	bl	_to_enclosure_component
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_3
LBB0_1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_5
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_9
LBB0_3:
	ldrb	w8, [x22, #2]
	mov	w2, #1
	cbz	w8, LBB0_7
; %bb.4:
	cmp	w8, #10
	b.eq	LBB0_7
	b	LBB0_1
LBB0_5:
	mov	w2, #0
	ldrb	w8, [x22, #3]
	cbz	w8, LBB0_7
; %bb.6:
	cmp	w8, #10
	b.ne	LBB0_2
LBB0_7:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_9:
	mov	x0, x19
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"on"

l_.str.1:                               ; @.str.1
	.asciz	"off"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_set_component_power_status
.subsections_via_symbols
