	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drx39xxj_set_powerstate
_drx39xxj_set_powerstate:               ## @drx39xxj_set_powerstate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_DRX_POWER_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DRX_POWER_UP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	leaq	-4(%rbp), %rsi
	callq	_ctrl_power_mode
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_5:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRX_POWER_UP,4,2               ## @DRX_POWER_UP
	.comm	_DRX_POWER_DOWN,4,2             ## @DRX_POWER_DOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Power state change failed\n"

	.no_dead_strip	_drx39xxj_set_powerstate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drx39xxj_set_powerstate
_drx39xxj_set_powerstate:               ; @drx39xxj_set_powerstate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	x0, [x8]
Lloh0:
	adrp	x8, _DRX_POWER_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRX_POWER_DOWN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DRX_POWER_UP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRX_POWER_UP@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	stur	w8, [x29, #-4]
	sub	x1, x29, #4
	bl	_ctrl_power_mode
	cbz	w0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRX_POWER_UP,4,2               ; @DRX_POWER_UP
	.comm	_DRX_POWER_DOWN,4,2             ; @DRX_POWER_DOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Power state change failed\n"

	.no_dead_strip	_drx39xxj_set_powerstate
.subsections_via_symbols
