	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_IMG_IR_IRQ_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_img_ir_read
	movl	%eax, %r14d
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	_RC_FILTER_NORMAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r15), %edx
	movl	%edx, (%rax,%rcx,4)
	movq	_IMG_IR_F_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_IMG_IR_IRQ_DATA_MATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IMG_IR_IRQ_DATA_VALID@GOTPCREL(%rip), %rcx
	movq	_IMG_IR_IRQ_DATA2_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_IMG_IR_F_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	_IMG_IR_IRQ_DATA_MATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IMG_IR_IRQ_DATA_VALID@GOTPCREL(%rip), %rcx
	movq	_IMG_IR_IRQ_DATA2_VALID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	orl	(%rcx), %r12d
LBB0_3:
	notl	%eax
	andl	%eax, %r14d
	orl	%r12d, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_img_ir_write_filter
	movq	_IMG_IR_IRQ_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_img_ir_write
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_img_ir_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMG_IR_IRQ_ENABLE,4,2          ## @IMG_IR_IRQ_ENABLE
	.comm	_RC_FILTER_NORMAL,8,3           ## @RC_FILTER_NORMAL
	.comm	_IMG_IR_F_FILTER,4,2            ## @IMG_IR_F_FILTER
	.comm	_IMG_IR_IRQ_DATA_MATCH,4,2      ## @IMG_IR_IRQ_DATA_MATCH
	.comm	_IMG_IR_IRQ_DATA_VALID,4,2      ## @IMG_IR_IRQ_DATA_VALID
	.comm	_IMG_IR_IRQ_DATA2_VALID,4,2     ## @IMG_IR_IRQ_DATA2_VALID
	.comm	_IMG_IR_IRQ_CLEAR,4,2           ## @IMG_IR_IRQ_CLEAR
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _IMG_IR_IRQ_ENABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IMG_IR_IRQ_ENABLE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_img_ir_read
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _RC_FILTER_NORMAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RC_FILTER_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w10, [x20]
	str	w10, [x8, x9, lsl #2]
Lloh5:
	adrp	x8, _IMG_IR_F_FILTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IMG_IR_F_FILTER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh8:
	adrp	x8, _IMG_IR_IRQ_DATA_MATCH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IMG_IR_IRQ_DATA_MATCH@GOTPAGEOFF]
Lloh10:
	adrp	x9, _IMG_IR_IRQ_DATA_VALID@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IMG_IR_IRQ_DATA_VALID@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _IMG_IR_IRQ_DATA2_VALID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IMG_IR_IRQ_DATA2_VALID@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _IMG_IR_F_FILTER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IMG_IR_F_FILTER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh20:
	adrp	x8, _IMG_IR_IRQ_DATA_MATCH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IMG_IR_IRQ_DATA_MATCH@GOTPAGEOFF]
Lloh22:
	adrp	x9, _IMG_IR_IRQ_DATA_VALID@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IMG_IR_IRQ_DATA_VALID@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _IMG_IR_IRQ_DATA2_VALID@GOTPAGE
Lloh27:
	ldr	x10, [x10, _IMG_IR_IRQ_DATA2_VALID@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w21, w10, w9
LBB0_3:
	bic	w8, w0, w8
	orr	w22, w8, w21
	mov	x0, x19
	mov	x1, x20
	bl	_img_ir_write_filter
Lloh29:
	adrp	x8, _IMG_IR_IRQ_CLEAR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IMG_IR_IRQ_CLEAR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_img_ir_write
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_img_ir_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IMG_IR_IRQ_ENABLE,4,2          ; @IMG_IR_IRQ_ENABLE
	.comm	_RC_FILTER_NORMAL,8,3           ; @RC_FILTER_NORMAL
	.comm	_IMG_IR_F_FILTER,4,2            ; @IMG_IR_F_FILTER
	.comm	_IMG_IR_IRQ_DATA_MATCH,4,2      ; @IMG_IR_IRQ_DATA_MATCH
	.comm	_IMG_IR_IRQ_DATA_VALID,4,2      ; @IMG_IR_IRQ_DATA_VALID
	.comm	_IMG_IR_IRQ_DATA2_VALID,4,2     ; @IMG_IR_IRQ_DATA2_VALID
	.comm	_IMG_IR_IRQ_CLEAR,4,2           ; @IMG_IR_IRQ_CLEAR
	.no_dead_strip	__img_ir_set_filter
.subsections_via_symbols
