	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_ir_write_filter
_img_ir_write_filter:                   ## @img_ir_write_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movslq	(%rsi), %rdx
	movslq	4(%rsi), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_IMG_IR_IRQ_MSG_DATA_LW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_img_ir_write
	movq	_IMG_IR_IRQ_MSG_DATA_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_img_ir_write
	movl	4(%rbx), %ebx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_3:
	movq	_IMG_IR_IRQ_MSG_MASK_LW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_img_ir_write
	movq	_IMG_IR_IRQ_MSG_MASK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_img_ir_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR filter=%016llx & %016llx\n"

	.comm	_IMG_IR_IRQ_MSG_DATA_LW,4,2     ## @IMG_IR_IRQ_MSG_DATA_LW
	.comm	_IMG_IR_IRQ_MSG_DATA_UP,4,2     ## @IMG_IR_IRQ_MSG_DATA_UP
	.comm	_IMG_IR_IRQ_MSG_MASK_LW,4,2     ## @IMG_IR_IRQ_MSG_MASK_LW
	.comm	_IMG_IR_IRQ_MSG_MASK_UP,4,2     ## @IMG_IR_IRQ_MSG_MASK_UP
L_.str.1:                               ## @.str.1
	.asciz	"IR clearing filter\n"

	.no_dead_strip	_img_ir_write_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_write_filter
_img_ir_write_filter:                   ; @img_ir_write_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x20, x1
	ldpsw	x8, x9, [x1]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _IMG_IR_IRQ_MSG_DATA_LW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IMG_IR_IRQ_MSG_DATA_LW@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_img_ir_write
Lloh5:
	adrp	x8, _IMG_IR_IRQ_MSG_DATA_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IMG_IR_IRQ_MSG_DATA_UP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_img_ir_write
	ldr	w2, [x20, #4]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	w2, #0
LBB0_3:
Lloh10:
	adrp	x8, _IMG_IR_IRQ_MSG_MASK_LW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IMG_IR_IRQ_MSG_MASK_LW@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_img_ir_write
Lloh13:
	adrp	x8, _IMG_IR_IRQ_MSG_MASK_UP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IMG_IR_IRQ_MSG_MASK_UP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_img_ir_write
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR filter=%016llx & %016llx\n"

	.comm	_IMG_IR_IRQ_MSG_DATA_LW,4,2     ; @IMG_IR_IRQ_MSG_DATA_LW
	.comm	_IMG_IR_IRQ_MSG_DATA_UP,4,2     ; @IMG_IR_IRQ_MSG_DATA_UP
	.comm	_IMG_IR_IRQ_MSG_MASK_LW,4,2     ; @IMG_IR_IRQ_MSG_MASK_LW
	.comm	_IMG_IR_IRQ_MSG_MASK_UP,4,2     ; @IMG_IR_IRQ_MSG_MASK_UP
l_.str.1:                               ; @.str.1
	.asciz	"IR clearing filter\n"

	.no_dead_strip	_img_ir_write_filter
.subsections_via_symbols
