	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_ir_refresh_raw
_img_ir_refresh_raw:                    ## @img_ir_refresh_raw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_IMG_IR_IRQ_EDGE@GOTPCREL(%rip), %rax
	notl	%ebx
	andl	(%rax), %ebx
	movq	_IMG_IR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_img_ir_read
	movq	_IMG_IR_IRRXD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.1:
	cmpl	(%r15), %eax
	jne	LBB0_3
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, (%r15)
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	%r14, %rdi
	callq	_ir_raw_event_store_edge
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ir_raw_event_handle            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMG_IR_IRQ_EDGE,4,2            ## @IMG_IR_IRQ_EDGE
	.comm	_IMG_IR_STATUS,4,2              ## @IMG_IR_STATUS
	.comm	_IMG_IR_IRRXD,4,2               ## @IMG_IR_IRRXD
	.no_dead_strip	_img_ir_refresh_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_ir_refresh_raw
_img_ir_refresh_raw:                    ; @img_ir_refresh_raw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _IMG_IR_IRQ_EDGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMG_IR_IRQ_EDGE@GOTPAGEOFF]
	ldr	x19, [x0, #8]
Lloh2:
	ldr	w8, [x8]
	bic	w21, w8, w1
Lloh3:
	adrp	x8, _IMG_IR_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMG_IR_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_img_ir_read
Lloh6:
	adrp	x8, _IMG_IR_IRRXD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMG_IR_IRRXD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	cbnz	w21, LBB0_3
; %bb.1:
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	str	w8, [x20]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	_ir_raw_event_store_edge
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ir_raw_event_handle
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMG_IR_IRQ_EDGE,4,2            ; @IMG_IR_IRQ_EDGE
	.comm	_IMG_IR_STATUS,4,2              ; @IMG_IR_STATUS
	.comm	_IMG_IR_IRRXD,4,2               ; @IMG_IR_IRRXD
	.no_dead_strip	_img_ir_refresh_raw
.subsections_via_symbols
