	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panel_encoder_dpms
_panel_encoder_dpms:                    ## @panel_encoder_dpms
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_to_panel_encoder
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_FB_BLANK_UNBLANK@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_FB_BLANK_POWERDOWN@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	callq	_backlight_update_status
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.7:
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	%r14d, (%rax)
	sete	%sil
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gpiod_set_value_cansleep       ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
	.comm	_FB_BLANK_UNBLANK,4,2           ## @FB_BLANK_UNBLANK
	.comm	_FB_BLANK_POWERDOWN,4,2         ## @FB_BLANK_POWERDOWN
	.no_dead_strip	_panel_encoder_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panel_encoder_dpms
_panel_encoder_dpms:                    ; @panel_encoder_dpms
	.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, x1
	bl	_to_panel_encoder
	ldr	x8, [x0]
	ldp	x20, x0, [x8]
Lloh0:
	adrp	x21, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _FB_BLANK_UNBLANK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FB_BLANK_UNBLANK@GOTPAGEOFF]
Lloh4:
	adrp	x10, _FB_BLANK_POWERDOWN@GOTPAGE
Lloh5:
	ldr	x10, [x10, _FB_BLANK_POWERDOWN@GOTPAGEOFF]
	cmp	w8, w19
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x0]
	bl	_backlight_update_status
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, w19
	cset	w1, eq
	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	_gpiod_set_value_cansleep
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
	.comm	_FB_BLANK_UNBLANK,4,2           ; @FB_BLANK_UNBLANK
	.comm	_FB_BLANK_POWERDOWN,4,2         ; @FB_BLANK_POWERDOWN
	.no_dead_strip	_panel_encoder_dpms
.subsections_via_symbols
