	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse8_cec_adap_enable
_pulse8_cec_adap_enable:                ## @pulse8_cec_adap_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	callq	_cec_get_drvdata
	movq	_MSGCODE_SET_CONTROLLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -80(%rbp)
	movl	%ebx, -76(%rbp)
	movq	_MSGCODE_COMMAND_ACCEPTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-80(%rbp), %rsi
	movq	%rax, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	testl	%ebx, %ebx
	cmovel	%ebx, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSGCODE_SET_CONTROLLED,4,2     ## @MSGCODE_SET_CONTROLLED
	.comm	_MSGCODE_COMMAND_ACCEPTED,4,2   ## @MSGCODE_COMMAND_ACCEPTED
	.no_dead_strip	_pulse8_cec_adap_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse8_cec_adap_enable
_pulse8_cec_adap_enable:                ; @pulse8_cec_adap_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_cec_get_drvdata
Lloh3:
	adrp	x8, _MSGCODE_SET_CONTROLLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSGCODE_SET_CONTROLLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w19, [sp, #8]
Lloh6:
	adrp	x8, _MSGCODE_COMMAND_ACCEPTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSGCODE_COMMAND_ACCEPTED@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	w2, #2
	mov	w4, #1
	bl	_pulse8_send_and_wait
	cmp	w19, #0
	csel	w0, wzr, w0, eq
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSGCODE_SET_CONTROLLED,4,2     ; @MSGCODE_SET_CONTROLLED
	.comm	_MSGCODE_COMMAND_ACCEPTED,4,2   ; @MSGCODE_COMMAND_ACCEPTED
	.no_dead_strip	_pulse8_cec_adap_enable
.subsections_via_symbols
