	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power_set
_power_set:                             ## @power_set
	.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
	movl	%edx, %r13d
	movl	%esi, %r12d
	movl	%edi, %r14d
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	setne	%bl
	shll	$31, %ebx
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_NVME_OPC_SET_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_NVME_FEAT_POWER_MANAGEMENT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_htole32
	movq	%rax, -56(%rbp)
	shll	$5, %r13d
	orl	%r12d, %r13d
	movl	%r13d, %edi
	callq	_htole32
	movq	%rax, -64(%rbp)
	movq	_NVME_PASSTHROUGH_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r15, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-72(%rbp), %rdi
	callq	_nvme_completion_is_error
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_OPC_SET_FEATURES,4,2      ## @NVME_OPC_SET_FEATURES
	.comm	_NVME_FEAT_POWER_MANAGEMENT,4,2 ## @NVME_FEAT_POWER_MANAGEMENT
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ## @NVME_PASSTHROUGH_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set feature power mgmt request failed"

L_.str.1:                               ## @.str.1
	.asciz	"set feature power mgmt request returned error"

	.no_dead_strip	_power_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_set
_power_set:                             ; @power_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w3, #0
	cset	w22, ne
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _NVME_OPC_SET_FEATURES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_OPC_SET_FEATURES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _NVME_FEAT_POWER_MANAGEMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_FEAT_POWER_MANAGEMENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w22, lsl #31
	bl	_htole32
	str	x0, [sp, #16]
	orr	w0, w20, w19, lsl #5
	bl	_htole32
	str	x0, [sp, #8]
Lloh6:
	adrp	x8, _NVME_PASSTHROUGH_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVME_PASSTHROUGH_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	x0, sp
	bl	_nvme_completion_is_error
	cbz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_OPC_SET_FEATURES,4,2      ; @NVME_OPC_SET_FEATURES
	.comm	_NVME_FEAT_POWER_MANAGEMENT,4,2 ; @NVME_FEAT_POWER_MANAGEMENT
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ; @NVME_PASSTHROUGH_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set feature power mgmt request failed"

l_.str.1:                               ; @.str.1
	.asciz	"set feature power mgmt request returned error"

	.no_dead_strip	_power_set
.subsections_via_symbols
