	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_set_power_state             ## -- Begin function dc_set_power_state
	.p2align	4, 0x90
_dc_set_power_state:                    ## @dc_set_power_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	movl	%ebx, %edi
	callq	_ASSERT
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	(%r14), %rsi
	cmpl	$128, %r15d
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_dc_resource_state_construct
	movq	%r14, %rdi
	callq	*24(%r14)
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%edi, %edi
	cmpl	$0, 8(%rsi)
	sete	%dil
	callq	_ASSERT
	movq	(%r14), %rsi
	movl	4(%rsi), %r15d
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r14), %rdi
	callq	_dc_resource_state_destruct
	movq	(%r14), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	(%r14), %rax
	movl	%r15d, 4(%rax)
	movq	(%r14), %rax
	movl	(%rbx), %ecx
	movl	%ecx, (%rax)
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_set_power_state             ; -- Begin function dc_set_power_state
	.p2align	2
_dc_set_power_state:                    ; @dc_set_power_state
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x20, x0
	bl	_ASSERT
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x1, [x19]
	cmp	w21, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_dc_resource_state_construct
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	b	LBB0_5
LBB0_3:
	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
LBB0_4:
	ldr	w8, [x1, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_ASSERT
	ldr	x1, [x19]
	ldr	w21, [x1, #4]
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [x19]
	bl	_dc_resource_state_destruct
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	x8, [x19]
	str	w21, [x8, #4]
	ldr	x8, [x19]
	ldr	w9, [x20]
	str	w9, [x8]
LBB0_5:
	mov	x0, x20
	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
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
