	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_ir_set_filter
_img_ir_set_filter:                     ## @img_ir_set_filter
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	16(%rdi), %r15
	movl	4(%r15), %edi
	cmpl	$128, %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r12
	cmoveq	%rax, %r12
	movq	(%rdx), %rcx
	movq	8(%rdx), %r8
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.1:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_8
## %bb.3:
	movq	$0, -48(%rbp)
	movl	$-1, -56(%rbp)
	cmpl	$129, %r14d
	jne	LBB0_9
## %bb.4:
	movq	(%r13), %rdx
	jmp	LBB0_10
LBB0_5:
	xorl	%r13d, %r13d
	cmpl	$128, %r14d
	je	LBB0_12
LBB0_6:
	cmpl	$129, %r14d
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	__img_ir_set_filter
	jmp	LBB0_13
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_9:
	movb	8(%r13), %cl
	movl	$1, %edx
	shlq	%cl, %rdx
LBB0_10:
	leaq	-72(%rbp), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*%r8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movl	4(%r15), %edi
	movq	-72(%rbp), %r8
	movq	-64(%rbp), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_dev_dbg
	cmpl	$128, %r14d
	jne	LBB0_6
LBB0_12:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	__img_ir_set_wake_filter
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR scancode %sfilter=%08x & %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"wake "

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"IR raw %sfilter=%016llx & %016llx\n"

	.no_dead_strip	_img_ir_set_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_ir_set_filter
_img_ir_set_filter:                     ; @img_ir_set_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x19, [x0, #16]
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w1, #128
	csel	x21, x9, x8, eq
	ldp	x3, x4, [x2]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.3:
	str	xzr, [sp, #24]
	mov	w9, #-1
	str	w9, [sp, #16]
	cmp	w20, #129
	b.ne	LBB0_9
; %bb.4:
	ldr	x2, [x23]
	b	LBB0_10
LBB0_5:
	mov	x1, #0
	cmp	w20, #128
	b.eq	LBB0_12
LBB0_6:
	cmp	w20, #129
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	__img_ir_set_filter
	b	LBB0_13
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_9:
	ldr	x9, [x23, #8]
	mov	w10, #1
	lsl	x2, x10, x9
LBB0_10:
	mov	x1, sp
	mov	x0, x22
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	w0, [x19, #4]
	ldp	x4, x3, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	mov	x1, sp
	cmp	w20, #128
	b.ne	LBB0_6
LBB0_12:
	mov	x0, x19
	bl	__img_ir_set_wake_filter
LBB0_13:
	mov	w22, #0
LBB0_14:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR scancode %sfilter=%08x & %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"wake "

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"IR raw %sfilter=%016llx & %016llx\n"

	.no_dead_strip	_img_ir_set_filter
.subsections_via_symbols
