	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_reset_interrupt
_count_reset_interrupt:                 ## @count_reset_interrupt
	.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
	movq	%rdi, %r14
	movq	_ZR36057_ISR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_btread
	movl	%eax, %ebx
	andl	$2013265920, %ebx               ## imm = 0x78000000
	je	LBB0_9
## %bb.1:
	movq	_ZR36057_ISR_GIRQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %edi
	je	LBB0_3
## %bb.2:
	movl	(%r15), %esi
	callq	_btwrite
	incl	12(%r14)
LBB0_3:
	movq	_ZR36057_ISR_GIRQ0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %edi
	je	LBB0_5
## %bb.4:
	movl	(%r15), %esi
	callq	_btwrite
	incl	8(%r14)
LBB0_5:
	movq	_ZR36057_ISR_CodRepIRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %edi
	je	LBB0_7
## %bb.6:
	movl	(%r15), %esi
	callq	_btwrite
	incl	4(%r14)
LBB0_7:
	movq	_ZR36057_ISR_JPEGRepIRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %edi
	je	LBB0_9
## %bb.8:
	movl	(%r15), %esi
	callq	_btwrite
	incl	(%r14)
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZR36057_ISR,4,2                ## @ZR36057_ISR
	.comm	_ZR36057_ISR_GIRQ1,4,2          ## @ZR36057_ISR_GIRQ1
	.comm	_ZR36057_ISR_GIRQ0,4,2          ## @ZR36057_ISR_GIRQ0
	.comm	_ZR36057_ISR_CodRepIRQ,4,2      ## @ZR36057_ISR_CodRepIRQ
	.comm	_ZR36057_ISR_JPEGRepIRQ,4,2     ## @ZR36057_ISR_JPEGRepIRQ
	.no_dead_strip	_count_reset_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_reset_interrupt
_count_reset_interrupt:                 ; @count_reset_interrupt
	.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	x19, x0
Lloh0:
	adrp	x21, _ZR36057_ISR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ZR36057_ISR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_btread
	ands	w20, w0, #0x78000000
	b.eq	LBB0_9
; %bb.1:
Lloh2:
	adrp	x8, _ZR36057_ISR_GIRQ1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZR36057_ISR_GIRQ1@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	tst	w0, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x21]
	bl	_btwrite
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_3:
Lloh5:
	adrp	x8, _ZR36057_ISR_GIRQ0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZR36057_ISR_GIRQ0@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	tst	w0, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x21]
	bl	_btwrite
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_5:
Lloh8:
	adrp	x8, _ZR36057_ISR_CodRepIRQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZR36057_ISR_CodRepIRQ@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	tst	w0, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x21]
	bl	_btwrite
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_7:
Lloh11:
	adrp	x8, _ZR36057_ISR_JPEGRepIRQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ZR36057_ISR_JPEGRepIRQ@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	tst	w0, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w1, [x21]
	bl	_btwrite
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ZR36057_ISR,4,2                ; @ZR36057_ISR
	.comm	_ZR36057_ISR_GIRQ1,4,2          ; @ZR36057_ISR_GIRQ1
	.comm	_ZR36057_ISR_GIRQ0,4,2          ; @ZR36057_ISR_GIRQ0
	.comm	_ZR36057_ISR_CodRepIRQ,4,2      ; @ZR36057_ISR_CodRepIRQ
	.comm	_ZR36057_ISR_JPEGRepIRQ,4,2     ; @ZR36057_ISR_JPEGRepIRQ
	.no_dead_strip	_count_reset_interrupt
.subsections_via_symbols
