	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse8_setup
_pulse8_setup:                          ## @pulse8_setup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	movl	$0, 8(%rdi)
	movq	_MSGCODE_FIRMWARE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	movl	$2, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.1:
	movl	4(%r12), %edx
	shll	$8, %edx
	orl	8(%r12), %edx
	movl	%edx, 8(%r13)
	movl	16(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_info
	cmpl	$1, 8(%r13)
	jg	LBB0_3
## %bb.2:
	movq	_CEC_PHYS_ADDR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_25
LBB0_3:
	movq	_MSGCODE_GET_BUILDDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$4, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.4:
	movl	4(%r12), %eax
	movl	8(%r12), %ecx
	shll	$24, %eax
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	12(%r12), %edi
	shll	$8, %edi
	orl	%ecx, %edi
	orl	16(%r12), %edi
	leaq	-96(%rbp), %rdx
	xorl	%esi, %esi
	callq	_time64_to_tm
	movl	16(%r13), %edi
	movl	$1900, %edx                     ## imm = 0x76C
	addl	-72(%rbp), %edx
	movq	-80(%rbp), %rcx
	incq	%rcx
	movl	-84(%rbp), %r8d
	movl	-88(%rbp), %r9d
	movl	-96(%rbp), %ebx
	movl	-92(%rbp), %r10d
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_dev_info
	addq	$16, %rsp
	movl	16(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_MSGCODE_GET_AUTO_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.5:
	leaq	4(%r12), %rcx
	movl	(%rcx), %eax
	movl	%eax, 12(%r13)
	movl	16(%r13), %edi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rcx)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_MSGCODE_GET_DEVICE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.6:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	16(%r13), %edi
	movl	(%rdx), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_17
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_CEC_LOG_ADDR_TYPE_TV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_CEC_OP_ALL_DEVTYPE_TV@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_17:
	movq	_CEC_LOG_ADDR_TYPE_UNREGISTERED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_CEC_OP_ALL_DEVTYPE_SWITCH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %rcx
	movq	%rax, (%rcx)
	movl	16(%r13), %edi
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_18
LBB0_13:
	movq	_CEC_LOG_ADDR_TYPE_UNREGISTERED@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_CEC_LOG_ADDR_TYPE_RECORD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_CEC_OP_ALL_DEVTYPE_RECORD@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_16:
	movq	_CEC_LOG_ADDR_TYPE_SPECIFIC@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_CEC_OP_ALL_DEVTYPE_SWITCH@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_CEC_LOG_ADDR_TYPE_TUNER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_CEC_OP_ALL_DEVTYPE_TUNER@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_CEC_LOG_ADDR_TYPE_PLAYBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_CEC_OP_ALL_DEVTYPE_PLAYBACK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_CEC_LOG_ADDR_TYPE_PLAYBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_CEC_OP_ALL_DEVTYPE_AUDIOSYSTEM@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movq	24(%r14), %rcx
	movq	%rax, (%rcx)
LBB0_18:
	movq	_MSGCODE_GET_LOGICAL_ADDRESS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$2, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.19:
	movl	4(%r12), %edx
	shll	$8, %edx
	orl	8(%r12), %edx
	movl	%edx, 8(%r14)
	movl	16(%r13), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, 8(%r14)
	je	LBB0_21
## %bb.20:
	movl	$1, 12(%r14)
LBB0_21:
	movq	_MSGCODE_GET_PHYSICAL_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.22:
	movl	4(%r12), %edi
	shll	$8, %edi
	orl	8(%r12), %edi
	movl	%edi, (%r15)
	movl	16(%r13), %ebx
	callq	_cec_phys_addr_exp
	leaq	L_.str.9(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_MSGCODE_GET_HDMI_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.23:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	%edx, 16(%r14)
	movl	16(%r13), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_MSGCODE_GET_OSD_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.24:
	movl	20(%r14), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_strscpy
	movl	16(%r13), %edi
	movl	20(%r14), %edx
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	xorl	%ebx, %ebx
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_16
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_MSGCODE_FIRMWARE_VERSION,4,2   ## @MSGCODE_FIRMWARE_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware version %04x\n"

	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ## @CEC_PHYS_ADDR_INVALID
	.comm	_MSGCODE_GET_BUILDDATE,4,2      ## @MSGCODE_GET_BUILDDATE
L_.str.1:                               ## @.str.1
	.asciz	"Firmware build date %04ld.%02d.%02d %02d:%02d:%02d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Persistent config:\n"

	.comm	_MSGCODE_GET_AUTO_ENABLED,4,2   ## @MSGCODE_GET_AUTO_ENABLED
L_.str.3:                               ## @.str.3
	.asciz	"Autonomous mode: %s"

L_.str.4:                               ## @.str.4
	.asciz	"on"

L_.str.5:                               ## @.str.5
	.asciz	"off"

	.comm	_MSGCODE_GET_DEVICE_TYPE,4,2    ## @MSGCODE_GET_DEVICE_TYPE
L_.str.6:                               ## @.str.6
	.asciz	"Primary device type: %d\n"

	.comm	_CEC_LOG_ADDR_TYPE_TV,8,3       ## @CEC_LOG_ADDR_TYPE_TV
	.comm	_CEC_OP_ALL_DEVTYPE_TV,8,3      ## @CEC_OP_ALL_DEVTYPE_TV
	.comm	_CEC_LOG_ADDR_TYPE_RECORD,8,3   ## @CEC_LOG_ADDR_TYPE_RECORD
	.comm	_CEC_OP_ALL_DEVTYPE_RECORD,8,3  ## @CEC_OP_ALL_DEVTYPE_RECORD
	.comm	_CEC_LOG_ADDR_TYPE_TUNER,8,3    ## @CEC_LOG_ADDR_TYPE_TUNER
	.comm	_CEC_OP_ALL_DEVTYPE_TUNER,8,3   ## @CEC_OP_ALL_DEVTYPE_TUNER
	.comm	_CEC_LOG_ADDR_TYPE_PLAYBACK,8,3 ## @CEC_LOG_ADDR_TYPE_PLAYBACK
	.comm	_CEC_OP_ALL_DEVTYPE_PLAYBACK,8,3 ## @CEC_OP_ALL_DEVTYPE_PLAYBACK
	.comm	_CEC_OP_ALL_DEVTYPE_AUDIOSYSTEM,8,3 ## @CEC_OP_ALL_DEVTYPE_AUDIOSYSTEM
	.comm	_CEC_LOG_ADDR_TYPE_UNREGISTERED,8,3 ## @CEC_LOG_ADDR_TYPE_UNREGISTERED
	.comm	_CEC_OP_ALL_DEVTYPE_SWITCH,8,3  ## @CEC_OP_ALL_DEVTYPE_SWITCH
	.comm	_CEC_LOG_ADDR_TYPE_SPECIFIC,8,3 ## @CEC_LOG_ADDR_TYPE_SPECIFIC
L_.str.7:                               ## @.str.7
	.asciz	"Unknown Primary Device Type: %d\n"

	.comm	_MSGCODE_GET_LOGICAL_ADDRESS_MASK,4,2 ## @MSGCODE_GET_LOGICAL_ADDRESS_MASK
L_.str.8:                               ## @.str.8
	.asciz	"Logical address ACK mask: %x\n"

	.comm	_MSGCODE_GET_PHYSICAL_ADDRESS,4,2 ## @MSGCODE_GET_PHYSICAL_ADDRESS
L_.str.9:                               ## @.str.9
	.asciz	"Physical address: %x.%x.%x.%x\n"

	.comm	_MSGCODE_GET_HDMI_VERSION,4,2   ## @MSGCODE_GET_HDMI_VERSION
L_.str.10:                              ## @.str.10
	.asciz	"CEC version: %d\n"

	.comm	_MSGCODE_GET_OSD_NAME,4,2       ## @MSGCODE_GET_OSD_NAME
L_.str.11:                              ## @.str.11
	.asciz	"OSD name: %s\n"

	.no_dead_strip	_pulse8_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse8_setup
_pulse8_setup:                          ; @pulse8_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x23, [x0]
	str	wzr, [x0, #8]
Lloh3:
	adrp	x8, _MSGCODE_FIRMWARE_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSGCODE_FIRMWARE_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	stur	w3, [x29, #-64]
	sub	x1, x29, #64
	mov	w2, #1
	mov	w4, #2
	bl	_pulse8_send_and_wait
	cbnz	w0, LBB0_25
; %bb.1:
	ldp	w8, w9, [x23, #4]
	orr	w2, w9, w8, lsl #8
	str	w2, [x20, #8]
	ldr	w0, [x20, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.gt	LBB0_3
; %bb.2:
	mov	w0, #0
Lloh8:
	adrp	x8, _CEC_PHYS_ADDR_INVALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CEC_PHYS_ADDR_INVALID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_25
LBB0_3:
Lloh11:
	adrp	x8, _MSGCODE_GET_BUILDDATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSGCODE_GET_BUILDDATE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	stur	w3, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, x20
	mov	w2, #1
	mov	w4, #4
	bl	_pulse8_send_and_wait
	cbnz	w0, LBB0_25
; %bb.4:
	ldp	w8, w9, [x23, #4]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w9, w10, [x23, #12]
	orr	w8, w8, w9, lsl #8
	orr	w0, w8, w10
	add	x2, sp, #48
	mov	w1, #0
	bl	_time64_to_tm
	ldr	w0, [x20, #16]
	ldr	w8, [sp, #72]
	add	w2, w8, #1900
	ldr	x8, [sp, #64]
	add	x8, x8, #1
	ldp	w10, w9, [sp, #56]
	ldp	w12, w11, [sp, #48]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	ldr	w0, [x20, #16]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
Lloh18:
	adrp	x8, _MSGCODE_GET_AUTO_ENABLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSGCODE_GET_AUTO_ENABLED@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	stur	w3, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_pulse8_send_and_wait
	cbnz	w0, LBB0_25
; %bb.5:
	add	x22, x23, #4
	ldr	w8, [x22]
	str	w8, [x20, #12]
	ldr	w0, [x20, #16]
	ldr	w8, [x22]
Lloh21:
	adrp	x9, l_.str.4@PAGE
Lloh22:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh23:
	adrp	x10, l_.str.5@PAGE
Lloh24:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
Lloh27:
	adrp	x8, _MSGCODE_GET_DEVICE_TYPE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSGCODE_GET_DEVICE_TYPE@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	stur	w3, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_pulse8_send_and_wait
	cbnz	w0, LBB0_25
; %bb.6:
	ldr	w8, [x22]
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	w0, [x20, #16]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_9
; %bb.7:
Lloh32:
	adrp	x9, lJTI0_0@PAGE
Lloh33:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh34:
	adrp	x8, _CEC_LOG_ADDR_TYPE_TV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CEC_LOG_ADDR_TYPE_TV@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	str	x8, [x9]
Lloh37:
	adrp	x8, _CEC_OP_ALL_DEVTYPE_TV@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CEC_OP_ALL_DEVTYPE_TV@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
Lloh39:
	adrp	x8, _CEC_LOG_ADDR_TYPE_UNREGISTERED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CEC_LOG_ADDR_TYPE_UNREGISTERED@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	str	x8, [x9]
Lloh42:
	adrp	x8, _CEC_OP_ALL_DEVTYPE_SWITCH@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CEC_OP_ALL_DEVTYPE_SWITCH@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	str	x8, [x9]
	ldr	w0, [x20, #16]
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_info
	b	LBB0_18
LBB0_10:
Lloh47:
	adrp	x8, _CEC_LOG_ADDR_TYPE_UNREGISTERED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CEC_LOG_ADDR_TYPE_UNREGISTERED@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh49:
	adrp	x8, _CEC_LOG_ADDR_TYPE_RECORD@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CEC_LOG_ADDR_TYPE_RECORD@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	str	x8, [x9]
Lloh52:
	adrp	x8, _CEC_OP_ALL_DEVTYPE_RECORD@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CEC_OP_ALL_DEVTYPE_RECORD@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
Lloh54:
	adrp	x8, _CEC_LOG_ADDR_TYPE_SPECIFIC@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CEC_LOG_ADDR_TYPE_SPECIFIC@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	str	x8, [x9]
Lloh56:
	adrp	x8, _CEC_OP_ALL_DEVTYPE_SWITCH@GOTPAGE
Lloh57:
	ldr	x8, [x8, _CEC_OP_ALL_DEVTYPE_SWITCH@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh58:
	adrp	x8, _CEC_LOG_ADDR_TYPE_TUNER@GOTPAGE
Lloh59:
	ldr	x8, [x8, _CEC_LOG_ADDR_TYPE_TUNER@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	str	x8, [x9]
Lloh61:
	adrp	x8, _CEC_OP_ALL_DEVTYPE_TUNER@GOTPAGE
Lloh62:
	ldr	x8, [x8, _CEC_OP_ALL_DEVTYPE_TUNER@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh63:
	adrp	x8, _CEC_LOG_ADDR_TYPE_PLAYBACK@GOTPAGE
Lloh64:
	ldr	x8, [x8, _CEC_LOG_ADDR_TYPE_PLAYBACK@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	str	x8, [x9]
Lloh66:
	adrp	x8, _CEC_OP_ALL_DEVTYPE_PLAYBACK@GOTPAGE
Lloh67:
	ldr	x8, [x8, _CEC_OP_ALL_DEVTYPE_PLAYBACK@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh68:
	adrp	x8, _CEC_LOG_ADDR_TYPE_PLAYBACK@GOTPAGE
Lloh69:
	ldr	x8, [x8, _CEC_LOG_ADDR_TYPE_PLAYBACK@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	str	x8, [x9]
Lloh71:
	adrp	x8, _CEC_OP_ALL_DEVTYPE_AUDIOSYSTEM@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CEC_OP_ALL_DEVTYPE_AUDIOSYSTEM@GOTPAGEOFF]
LBB0_17:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	str	x8, [x9]
LBB0_18:
Lloh73:
	adrp	x8, _MSGCODE_GET_LOGICAL_ADDRESS_MASK@GOTPAGE
Lloh74:
	ldr	x8, [x8, _MSGCODE_GET_LOGICAL_ADDRESS_MASK@GOTPAGEOFF]
Lloh75:
	ldr	w3, [x8]
	stur	w3, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, x20
	mov	w2, #1
	mov	w4, #2
	bl	_pulse8_send_and_wait
	cbnz	w0, LBB0_25
; %bb.19:
	ldp	w8, w9, [x23, #4]
	orr	w8, w9, w8, lsl #8
	str	w8, [x19, #8]
	ldr	w0, [x20, #16]
	str	x8, [sp]
Lloh76:
	adrp	x1, l_.str.8@PAGE
Lloh77:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_21
; %bb.20:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_21:
Lloh78:
	adrp	x8, _MSGCODE_GET_PHYSICAL_ADDRESS@GOTPAGE
Lloh79:
	ldr	x8, [x8, _MSGCODE_GET_PHYSICAL_ADDRESS@GOTPAGEOFF]
Lloh80:
	ldr	w3, [x8]
	stur	w3, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_pulse8_send_and_wait
	cbnz	w0, LBB0_25
; %bb.22:
	ldp	w8, w9, [x23, #4]
	orr	w0, w9, w8, lsl #8
	str	w0, [x21]
	ldr	w21, [x20, #16]
	bl	_cec_phys_addr_exp
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh81:
	adrp	x1, l_.str.9@PAGE
Lloh82:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh83:
	adrp	x8, _MSGCODE_GET_HDMI_VERSION@GOTPAGE
Lloh84:
	ldr	x8, [x8, _MSGCODE_GET_HDMI_VERSION@GOTPAGEOFF]
Lloh85:
	ldr	w3, [x8]
	stur	w3, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_pulse8_send_and_wait
	cbnz	w0, LBB0_25
; %bb.23:
	ldr	w8, [x22]
	str	w8, [x19, #16]
	ldr	w0, [x20, #16]
	str	x8, [sp]
Lloh86:
	adrp	x1, l_.str.10@PAGE
Lloh87:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_dev_dbg
Lloh88:
	adrp	x8, _MSGCODE_GET_OSD_NAME@GOTPAGE
Lloh89:
	ldr	x8, [x8, _MSGCODE_GET_OSD_NAME@GOTPAGEOFF]
Lloh90:
	ldr	w3, [x8]
	stur	w3, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, x20
	mov	w2, #1
	mov	w4, #0
	bl	_pulse8_send_and_wait
	cbnz	w0, LBB0_25
; %bb.24:
	ldr	w0, [x19, #20]
	mov	x1, x22
	mov	w2, #4
	bl	_strscpy
	ldr	w0, [x20, #16]
	ldr	w8, [x19, #20]
	str	x8, [sp]
Lloh91:
	adrp	x1, l_.str.11@PAGE
Lloh92:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
LBB0_25:
	ldur	x8, [x29, #-56]
Lloh93:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh94:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
                                        ; -- End function
	.comm	_MSGCODE_FIRMWARE_VERSION,4,2   ; @MSGCODE_FIRMWARE_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware version %04x\n"

	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ; @CEC_PHYS_ADDR_INVALID
	.comm	_MSGCODE_GET_BUILDDATE,4,2      ; @MSGCODE_GET_BUILDDATE
l_.str.1:                               ; @.str.1
	.asciz	"Firmware build date %04ld.%02d.%02d %02d:%02d:%02d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Persistent config:\n"

	.comm	_MSGCODE_GET_AUTO_ENABLED,4,2   ; @MSGCODE_GET_AUTO_ENABLED
l_.str.3:                               ; @.str.3
	.asciz	"Autonomous mode: %s"

l_.str.4:                               ; @.str.4
	.asciz	"on"

l_.str.5:                               ; @.str.5
	.asciz	"off"

	.comm	_MSGCODE_GET_DEVICE_TYPE,4,2    ; @MSGCODE_GET_DEVICE_TYPE
l_.str.6:                               ; @.str.6
	.asciz	"Primary device type: %d\n"

	.comm	_CEC_LOG_ADDR_TYPE_TV,8,3       ; @CEC_LOG_ADDR_TYPE_TV
	.comm	_CEC_OP_ALL_DEVTYPE_TV,8,3      ; @CEC_OP_ALL_DEVTYPE_TV
	.comm	_CEC_LOG_ADDR_TYPE_RECORD,8,3   ; @CEC_LOG_ADDR_TYPE_RECORD
	.comm	_CEC_OP_ALL_DEVTYPE_RECORD,8,3  ; @CEC_OP_ALL_DEVTYPE_RECORD
	.comm	_CEC_LOG_ADDR_TYPE_TUNER,8,3    ; @CEC_LOG_ADDR_TYPE_TUNER
	.comm	_CEC_OP_ALL_DEVTYPE_TUNER,8,3   ; @CEC_OP_ALL_DEVTYPE_TUNER
	.comm	_CEC_LOG_ADDR_TYPE_PLAYBACK,8,3 ; @CEC_LOG_ADDR_TYPE_PLAYBACK
	.comm	_CEC_OP_ALL_DEVTYPE_PLAYBACK,8,3 ; @CEC_OP_ALL_DEVTYPE_PLAYBACK
	.comm	_CEC_OP_ALL_DEVTYPE_AUDIOSYSTEM,8,3 ; @CEC_OP_ALL_DEVTYPE_AUDIOSYSTEM
	.comm	_CEC_LOG_ADDR_TYPE_UNREGISTERED,8,3 ; @CEC_LOG_ADDR_TYPE_UNREGISTERED
	.comm	_CEC_OP_ALL_DEVTYPE_SWITCH,8,3  ; @CEC_OP_ALL_DEVTYPE_SWITCH
	.comm	_CEC_LOG_ADDR_TYPE_SPECIFIC,8,3 ; @CEC_LOG_ADDR_TYPE_SPECIFIC
l_.str.7:                               ; @.str.7
	.asciz	"Unknown Primary Device Type: %d\n"

	.comm	_MSGCODE_GET_LOGICAL_ADDRESS_MASK,4,2 ; @MSGCODE_GET_LOGICAL_ADDRESS_MASK
l_.str.8:                               ; @.str.8
	.asciz	"Logical address ACK mask: %x\n"

	.comm	_MSGCODE_GET_PHYSICAL_ADDRESS,4,2 ; @MSGCODE_GET_PHYSICAL_ADDRESS
l_.str.9:                               ; @.str.9
	.asciz	"Physical address: %x.%x.%x.%x\n"

	.comm	_MSGCODE_GET_HDMI_VERSION,4,2   ; @MSGCODE_GET_HDMI_VERSION
l_.str.10:                              ; @.str.10
	.asciz	"CEC version: %d\n"

	.comm	_MSGCODE_GET_OSD_NAME,4,2       ; @MSGCODE_GET_OSD_NAME
l_.str.11:                              ; @.str.11
	.asciz	"OSD name: %s\n"

	.no_dead_strip	_pulse8_setup
.subsections_via_symbols
