	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wbcir_shutdown
LCPI0_0:
	.quad	147                             ## 0x93
	.quad	10                              ## 0xa
LCPI0_1:
	.quad	255                             ## 0xff
	.quad	15                              ## 0xf
LCPI0_2:
	.quad	255                             ## 0xff
	.quad	240                             ## 0xf0
LCPI0_3:
	.quad	80                              ## 0x50
	.quad	9                               ## 0x9
LCPI0_4:
	.quad	255                             ## 0xff
	.quad	255                             ## 0xff
LCPI0_5:
	.quad	255                             ## 0xff
	.quad	23                              ## 0x17
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wbcir_shutdown:                        ## @wbcir_shutdown
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_pnp_get_drvdata
	movq	%rax, %rbx
	leaq	-144(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	leaq	-240(%rbp), %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movq	_wake_sc@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_INVALID_SCANCODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_30
## %bb.1:
	movq	%r15, %rdi
	callq	_device_may_wakeup
	testl	%eax, %eax
	je	LBB0_30
## %bb.2:
	movq	_protocol@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$130, %eax
	je	LBB0_11
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_30
## %bb.5:
	movq	(%r12), %rax
	cmpq	$4095, %rax                     ## imm = 0xFFF
	jle	LBB0_15
## %bb.6:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_29
LBB0_7:
	movq	_wake_rc6mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$6, %eax
	je	LBB0_17
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_20
## %bb.9:
	movq	(%r12), %rdi
	cmpq	$65535, %rdi                    ## imm = 0xFFFF
	jg	LBB0_28
## %bb.24:
	callq	_wbcir_to_rc6cells
	movq	%rax, -144(%rbp)
	movq	$255, -240(%rbp)
	movq	(%r12), %rdi
	sarq	$4, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -136(%rbp)
	movq	$255, -232(%rbp)
	movq	(%r12), %rdi
	sarq	$8, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -128(%rbp)
	movq	$255, -224(%rbp)
	movq	(%r12), %rdi
	sarq	$12, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -120(%rbp)
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [255,240]
	movups	%xmm0, -216(%rbp)
	movaps	LCPI0_3(%rip), %xmm0            ## xmm0 = [80,9]
	movaps	%xmm0, -112(%rbp)
	movq	$15, -200(%rbp)
	movl	$44, %r14d
	jmp	LBB0_27
LBB0_11:
	movq	(%r12), %rax
	cmpq	$16777215, %rax                 ## imm = 0xFFFFFF
	jle	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_29
LBB0_13:
	movaps	LCPI0_4(%rip), %xmm0            ## xmm0 = [255,255]
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movzbl	%al, %edi
	callq	_bitrev8
	movq	%rax, -136(%rbp)
	notq	%rax
	movq	%rax, -144(%rbp)
	movzbl	1(%r12), %edi
	callq	_bitrev8
	movq	%rax, -120(%rbp)
	movq	(%r12), %rcx
	cmpq	$65536, %rcx                    ## imm = 0x10000
	jl	LBB0_21
## %bb.14:
	shrl	$16, %ecx
	movzbl	%cl, %edi
	callq	_bitrev8
	jmp	LBB0_22
LBB0_15:
	movaps	LCPI0_5(%rip), %xmm0            ## xmm0 = [255,23]
	movaps	%xmm0, -240(%rbp)
	movl	%eax, %ecx
	andl	$63, %ecx
	movq	%rax, %rdx
	shrq	%rdx
	andl	$192, %edx
	orq	%rcx, %rdx
	movq	%rdx, -144(%rbp)
	movl	%eax, %ecx
	shrl	$9, %ecx
	andl	$7, %ecx
	movq	%rcx, -136(%rbp)
	testb	$64, %al
	jne	LBB0_23
## %bb.16:
	orq	$16, %rcx
	movq	%rcx, -136(%rbp)
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_17:
	movq	(%r12), %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -144(%rbp)
	movq	$255, -240(%rbp)
	movq	(%r12), %rdi
	sarq	$4, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -136(%rbp)
	movq	$255, -232(%rbp)
	movq	(%r12), %rdi
	sarq	$8, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -128(%rbp)
	movq	$255, -224(%rbp)
	movq	(%r12), %rdi
	sarq	$12, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -120(%rbp)
	movq	$63, -216(%rbp)
	movq	(%r12), %rdi
	sarq	$16, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -112(%rbp)
	movq	$255, -208(%rbp)
	movq	(%r12), %rdi
	sarq	$20, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -104(%rbp)
	movq	$255, -200(%rbp)
	movq	(%r12), %rdi
	testl	$-2147483648, %edi              ## imm = 0x80000000
	jne	LBB0_25
## %bb.18:
	cmpq	$8388607, %rdi                  ## imm = 0x7FFFFF
	jg	LBB0_28
## %bb.19:
	movl	$6, %eax
	movl	$60, %r14d
	jmp	LBB0_26
LBB0_20:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_29
LBB0_21:
	notq	%rax
LBB0_22:
	movq	%rax, -128(%rbp)
LBB0_23:
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_28:
	leaq	L_.str.2(%rip), %rsi
LBB0_29:
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_30
LBB0_25:
	sarq	$24, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -96(%rbp)
	movq	$255, -192(%rbp)
	movq	(%r12), %rdi
	sarq	$28, %rdi
	callq	_wbcir_to_rc6cells
	movq	%rax, -88(%rbp)
	movq	$255, -184(%rbp)
	movl	$8, %eax
	movl	$76, %r14d
LBB0_26:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [147,10]
	movaps	%xmm0, -144(%rbp,%rax,8)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [255,15]
	movaps	%xmm0, -240(%rbp,%rax,8)
LBB0_27:
	movq	_WBCIR_REG_WCEIR_INDEX@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	24(%rbx), %rdi
	movq	_WBCIR_REGSEL_COMPARE@GOTPCREL(%rip), %rax
	movq	_WBCIR_REG_ADDR0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%rax), %esi
	movl	$63, %edx
	callq	_wbcir_set_bits
	movq	_WBCIR_REG_WCEIR_DATA@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	24(%rbx), %rdi
	leaq	-144(%rbp), %rsi
	movl	$11, %edx
	callq	_outsb
	movq	(%r15), %rdi
	addq	24(%rbx), %rdi
	movq	_WBCIR_REGSEL_MASK@GOTPCREL(%rip), %rax
	movl	(%r12), %esi
	orl	(%rax), %esi
	movl	$63, %edx
	callq	_wbcir_set_bits
	movq	(%r13), %rdi
	addq	24(%rbx), %rdi
	leaq	-240(%rbp), %rsi
	movl	$11, %edx
	callq	_outsb
	movq	_WBCIR_REG_WCEIR_CSL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	movq	%r14, %rdi
	callq	_outb
	movq	_WBCIR_REG_WCEIR_STS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	movl	$23, %esi
	movl	$23, %edx
	callq	_wbcir_set_bits
	movl	$1, %r14d
LBB0_30:
	movq	_WBCIR_REG_WCEIR_EV_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	movl	%r14d, %esi
	movl	$7, %edx
	callq	_wbcir_set_bits
	movq	_WBCIR_REG_WCEIR_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_wbcir_set_bits
	movq	_WBCIR_BANK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wbcir_select_bank
	movq	_WBCIR_IRQ_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_WBCIR_REG_SP3_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_outb
	movl	$0, (%rbx)
	movl	8(%rbx), %edi
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_led_trigger_event
	movl	4(%rbx), %edi
	callq	_disable_irq
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_wake_sc,8,3                    ## @wake_sc
	.comm	_INVALID_SCANCODE,8,3           ## @INVALID_SCANCODE
	.comm	_protocol,4,2                   ## @protocol
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RC5 - Invalid wake scancode\n"

L_.str.1:                               ## @.str.1
	.asciz	"NEC - Invalid wake scancode\n"

	.comm	_wake_rc6mode,4,2               ## @wake_rc6mode
L_.str.2:                               ## @.str.2
	.asciz	"RC6 - Invalid wake scancode\n"

L_.str.3:                               ## @.str.3
	.asciz	"RC6 - Invalid wake mode\n"

	.comm	_WBCIR_REG_WCEIR_INDEX,8,3      ## @WBCIR_REG_WCEIR_INDEX
	.comm	_WBCIR_REGSEL_COMPARE,4,2       ## @WBCIR_REGSEL_COMPARE
	.comm	_WBCIR_REG_ADDR0,4,2            ## @WBCIR_REG_ADDR0
	.comm	_WBCIR_REG_WCEIR_DATA,8,3       ## @WBCIR_REG_WCEIR_DATA
	.comm	_WBCIR_REGSEL_MASK,4,2          ## @WBCIR_REGSEL_MASK
	.comm	_WBCIR_REG_WCEIR_CSL,8,3        ## @WBCIR_REG_WCEIR_CSL
	.comm	_WBCIR_REG_WCEIR_STS,8,3        ## @WBCIR_REG_WCEIR_STS
	.comm	_WBCIR_REG_WCEIR_EV_EN,8,3      ## @WBCIR_REG_WCEIR_EV_EN
	.comm	_WBCIR_REG_WCEIR_CTL,8,3        ## @WBCIR_REG_WCEIR_CTL
	.comm	_WBCIR_BANK_0,4,2               ## @WBCIR_BANK_0
	.comm	_WBCIR_IRQ_NONE,8,3             ## @WBCIR_IRQ_NONE
	.comm	_WBCIR_REG_SP3_IER,8,3          ## @WBCIR_REG_SP3_IER
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.no_dead_strip	_wbcir_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function wbcir_shutdown
lCPI0_0:
	.quad	147                             ; 0x93
	.quad	10                              ; 0xa
lCPI0_1:
	.quad	255                             ; 0xff
	.quad	15                              ; 0xf
lCPI0_2:
	.quad	255                             ; 0xff
	.quad	240                             ; 0xf0
lCPI0_3:
	.quad	80                              ; 0x50
	.quad	9                               ; 0x9
lCPI0_4:
	.quad	255                             ; 0xff
	.quad	23                              ; 0x17
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wbcir_shutdown:                        ; @wbcir_shutdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	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]
	bl	_pnp_get_drvdata
	mov	x19, x0
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #88
	bl	_memset
Lloh3:
	adrp	x21, _wake_sc@GOTPAGE
Lloh4:
	ldr	x21, [x21, _wake_sc@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _INVALID_SCANCODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INVALID_SCANCODE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.1:
	mov	x0, x20
	bl	_device_may_wakeup
	cbz	w0, LBB0_24
; %bb.2:
Lloh8:
	adrp	x8, _protocol@GOTPAGE
Lloh9:
	ldr	x8, [x8, _protocol@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #130
	b.eq	LBB0_11
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_24
; %bb.5:
	ldr	x8, [x21]
	cmp	x8, #4095
	b.le	LBB0_15
; %bb.6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_23
LBB0_7:
Lloh13:
	adrp	x8, _wake_rc6mode@GOTPAGE
Lloh14:
	ldr	x8, [x8, _wake_rc6mode@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, #6
	b.eq	LBB0_17
; %bb.8:
	cbnz	w8, LBB0_20
; %bb.9:
	ldr	x0, [x21]
	cmp	x0, #16, lsl #12                ; =65536
	b.ge	LBB0_22
; %bb.10:
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #96]
	mov	w20, #255
	str	x20, [sp]
	ldr	x8, [x21]
	asr	x0, x8, #4
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #104]
	str	x20, [sp, #8]
	ldr	x8, [x21]
	asr	x0, x8, #8
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #112]
	str	x20, [sp, #16]
	ldr	x8, [x21]
	asr	x0, x8, #12
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #120]
Lloh16:
	adrp	x8, lCPI0_2@PAGE
Lloh17:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	stur	q0, [sp, #24]
Lloh18:
	adrp	x8, lCPI0_3@PAGE
Lloh19:
	ldr	q0, [x8, lCPI0_3@PAGEOFF]
	str	q0, [sp, #128]
	mov	w8, #15
	str	x8, [sp, #40]
	mov	w20, #44
	b	LBB0_29
LBB0_11:
	ldr	x8, [x21]
	mov	w9, #16777215
	cmp	x8, x9
	b.le	LBB0_13
; %bb.12:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_13:
	movi.2d	v0, #0x000000000000ff
	stp	q0, q0, [sp]
	and	x0, x8, #0xff
	bl	_bitrev8
	mvn	x8, x0
	stp	x8, x0, [sp, #96]
	ldrb	w0, [x21, #1]
	bl	_bitrev8
	str	x0, [sp, #120]
	ldr	x8, [x21]
	cmp	x8, #16, lsl #12                ; =65536
	b.lt	LBB0_21
; %bb.14:
	ubfx	x0, x8, #16, #8
	bl	_bitrev8
	mov	x20, #0
	str	x0, [sp, #112]
	b	LBB0_29
LBB0_15:
Lloh22:
	adrp	x9, lCPI0_4@PAGE
Lloh23:
	ldr	q0, [x9, lCPI0_4@PAGEOFF]
	str	q0, [sp]
	lsr	x9, x8, #1
	and	x10, x9, #0xc0
	bfxil	x10, x8, #0, #6
	ubfx	x9, x8, #9, #3
	stp	x10, x9, [sp, #96]
	mov	x20, #0
	tbnz	w8, #6, LBB0_29
; %bb.16:
	orr	x8, x9, #0x10
	str	x8, [sp, #104]
	b	LBB0_29
LBB0_17:
	ldr	x0, [x21]
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #96]
	mov	w22, #255
	str	x22, [sp]
	ldr	x8, [x21]
	asr	x0, x8, #4
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #104]
	str	x22, [sp, #8]
	ldr	x8, [x21]
	asr	x0, x8, #8
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #112]
	str	x22, [sp, #16]
	ldr	x8, [x21]
	asr	x0, x8, #12
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #120]
	mov	w8, #63
	str	x8, [sp, #24]
	ldr	x8, [x21]
	asr	x0, x8, #16
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #128]
	str	x22, [sp, #32]
	ldr	x8, [x21]
	asr	x0, x8, #20
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #136]
	str	x22, [sp, #40]
	ldr	x8, [x21]
	tbnz	w8, #31, LBB0_27
; %bb.18:
	cmp	x8, #2048, lsl #12              ; =8388608
	b.ge	LBB0_22
; %bb.19:
	mov	w8, #6
	mov	w20, #60
	b	LBB0_28
LBB0_20:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_21:
	mov	x20, #0
	mvn	x8, x0
	str	x8, [sp, #112]
	b	LBB0_29
LBB0_22:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_23:
	mov	x0, x20
	bl	_dev_err
LBB0_24:
	mov	w20, #0
LBB0_25:
	ldr	x8, [x19, #24]
Lloh28:
	adrp	x9, _WBCIR_REG_WCEIR_EV_EN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WBCIR_REG_WCEIR_EV_EN@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x20
	mov	w2, #7
	bl	_wbcir_set_bits
	ldr	x8, [x19, #24]
Lloh31:
	adrp	x9, _WBCIR_REG_WCEIR_CTL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _WBCIR_REG_WCEIR_CTL@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x20
	mov	w2, #1
	bl	_wbcir_set_bits
Lloh34:
	adrp	x8, _WBCIR_BANK_0@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WBCIR_BANK_0@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wbcir_select_bank
Lloh37:
	adrp	x8, _WBCIR_IRQ_NONE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WBCIR_IRQ_NONE@GOTPAGEOFF]
Lloh39:
	ldr	x0, [x8]
	ldr	x8, [x19, #16]
Lloh40:
	adrp	x9, _WBCIR_REG_SP3_IER@GOTPAGE
Lloh41:
	ldr	x9, [x9, _WBCIR_REG_SP3_IER@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	str	wzr, [x19]
	ldr	w0, [x19, #8]
Lloh43:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh44:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_led_trigger_event
	ldr	w0, [x19, #4]
	bl	_disable_irq
	ldur	x8, [x29, #-56]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.26:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_27:
	asr	x0, x8, #24
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #144]
	mov	w20, #255
	str	x20, [sp, #48]
	ldr	x8, [x21]
	asr	x0, x8, #28
	bl	_wbcir_to_rc6cells
	str	x0, [sp, #152]
	str	x20, [sp, #56]
	mov	w8, #8
	mov	w20, #76
LBB0_28:
	lsl	x8, x8, #3
Lloh49:
	adrp	x9, lCPI0_0@PAGE
Lloh50:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	add	x9, sp, #96
	str	q0, [x9, x8]
Lloh51:
	adrp	x9, lCPI0_1@PAGE
Lloh52:
	ldr	q0, [x9, lCPI0_1@PAGEOFF]
	mov	x9, sp
	str	q0, [x9, x8]
LBB0_29:
	ldr	x8, [x19, #24]
Lloh53:
	adrp	x21, _WBCIR_REG_WCEIR_INDEX@GOTPAGE
Lloh54:
	ldr	x21, [x21, _WBCIR_REG_WCEIR_INDEX@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh55:
	adrp	x10, _WBCIR_REGSEL_COMPARE@GOTPAGE
Lloh56:
	ldr	x10, [x10, _WBCIR_REGSEL_COMPARE@GOTPAGEOFF]
	add	x0, x9, x8
Lloh57:
	ldr	w8, [x10]
Lloh58:
	adrp	x22, _WBCIR_REG_ADDR0@GOTPAGE
Lloh59:
	ldr	x22, [x22, _WBCIR_REG_ADDR0@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w9, w8
	mov	w2, #63
	bl	_wbcir_set_bits
	ldr	x8, [x19, #24]
Lloh60:
	adrp	x23, _WBCIR_REG_WCEIR_DATA@GOTPAGE
Lloh61:
	ldr	x23, [x23, _WBCIR_REG_WCEIR_DATA@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	add	x1, sp, #96
	mov	w2, #11
	bl	_outsb
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	add	x0, x9, x8
Lloh62:
	adrp	x8, _WBCIR_REGSEL_MASK@GOTPAGE
Lloh63:
	ldr	x8, [x8, _WBCIR_REGSEL_MASK@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w1, w9, w8
	mov	w2, #63
	bl	_wbcir_set_bits
	ldr	x8, [x19, #24]
	ldr	x9, [x23]
	add	x0, x9, x8
	mov	x1, sp
	mov	w2, #11
	bl	_outsb
	ldr	x8, [x19, #24]
Lloh65:
	adrp	x9, _WBCIR_REG_WCEIR_CSL@GOTPAGE
Lloh66:
	ldr	x9, [x9, _WBCIR_REG_WCEIR_CSL@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outb
	ldr	x8, [x19, #24]
Lloh68:
	adrp	x9, _WBCIR_REG_WCEIR_STS@GOTPAGE
Lloh69:
	ldr	x9, [x9, _WBCIR_REG_WCEIR_STS@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #23
	mov	w2, #23
	bl	_wbcir_set_bits
	mov	w20, #1
	b	LBB0_25
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpAdrp	Lloh16, Lloh18
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdr	Lloh51, Lloh52
	.loh AdrpLdr	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_wake_sc,8,3                    ; @wake_sc
	.comm	_INVALID_SCANCODE,8,3           ; @INVALID_SCANCODE
	.comm	_protocol,4,2                   ; @protocol
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RC5 - Invalid wake scancode\n"

l_.str.1:                               ; @.str.1
	.asciz	"NEC - Invalid wake scancode\n"

	.comm	_wake_rc6mode,4,2               ; @wake_rc6mode
l_.str.2:                               ; @.str.2
	.asciz	"RC6 - Invalid wake scancode\n"

l_.str.3:                               ; @.str.3
	.asciz	"RC6 - Invalid wake mode\n"

	.comm	_WBCIR_REG_WCEIR_INDEX,8,3      ; @WBCIR_REG_WCEIR_INDEX
	.comm	_WBCIR_REGSEL_COMPARE,4,2       ; @WBCIR_REGSEL_COMPARE
	.comm	_WBCIR_REG_ADDR0,4,2            ; @WBCIR_REG_ADDR0
	.comm	_WBCIR_REG_WCEIR_DATA,8,3       ; @WBCIR_REG_WCEIR_DATA
	.comm	_WBCIR_REGSEL_MASK,4,2          ; @WBCIR_REGSEL_MASK
	.comm	_WBCIR_REG_WCEIR_CSL,8,3        ; @WBCIR_REG_WCEIR_CSL
	.comm	_WBCIR_REG_WCEIR_STS,8,3        ; @WBCIR_REG_WCEIR_STS
	.comm	_WBCIR_REG_WCEIR_EV_EN,8,3      ; @WBCIR_REG_WCEIR_EV_EN
	.comm	_WBCIR_REG_WCEIR_CTL,8,3        ; @WBCIR_REG_WCEIR_CTL
	.comm	_WBCIR_BANK_0,4,2               ; @WBCIR_BANK_0
	.comm	_WBCIR_IRQ_NONE,8,3             ; @WBCIR_IRQ_NONE
	.comm	_WBCIR_REG_SP3_IER,8,3          ; @WBCIR_REG_SP3_IER
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.no_dead_strip	_wbcir_shutdown
.subsections_via_symbols
