	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lspcon_resume                  ## -- Begin function lspcon_resume
	.p2align	4, 0x90
_lspcon_resume:                         ## @lspcon_resume
	.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
	movq	%rdi, %rbx
	callq	_lspcon_wake_native_aux_ch
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DRM_LSPCON_MODE_PCON@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_lspcon_resume_in_pcon_wa
	jmp	LBB0_3
LBB0_2:
	movq	_DRM_LSPCON_MODE_LS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lspcon_wait_mode
	movq	_DRM_LSPCON_MODE_PCON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rax
	jne	LBB0_4
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_lspcon_change_mode
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_LSPCON_MODE_PCON,8,3       ## @DRM_LSPCON_MODE_PCON
	.comm	_DRM_LSPCON_MODE_LS,4,2         ## @DRM_LSPCON_MODE_LS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LSPCON resume failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"LSPCON resume success\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lspcon_resume                  ; -- Begin function lspcon_resume
	.p2align	2
_lspcon_resume:                         ; @lspcon_resume
	.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, x0
	bl	_lspcon_wake_native_aux_ch
Lloh0:
	adrp	x21, _DRM_LSPCON_MODE_PCON@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DRM_LSPCON_MODE_PCON@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x21]
	mov	x0, x19
	bl	_lspcon_resume_in_pcon_wa
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _DRM_LSPCON_MODE_LS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_LSPCON_MODE_LS@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_lspcon_wait_mode
	ldr	x1, [x21]
	cmp	x0, x1
	b.ne	LBB0_5
; %bb.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
LBB0_5:
	mov	x0, x19
	bl	_lspcon_change_mode
	cbz	x0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_ERROR
LBB0_7:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_DRM_DEBUG_KMS
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_LSPCON_MODE_PCON,8,3       ; @DRM_LSPCON_MODE_PCON
	.comm	_DRM_LSPCON_MODE_LS,4,2         ; @DRM_LSPCON_MODE_LS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LSPCON resume failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"LSPCON resume success\n"

.subsections_via_symbols
