	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et1310_handle_macstat_interrupt
_et1310_handle_macstat_interrupt:       ## @et1310_handle_macstat_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, %r15
	movq	56(%rdi), %rdi
	addq	$4, %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	56(%r15), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	56(%r15), %rsi
	addq	$4, %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	56(%r15), %rsi
	movl	%r14d, %edi
	callq	_writel
	testl	$16384, %ebx                    ## imm = 0x4000
	jne	LBB0_1
## %bb.2:
	testl	$256, %ebx                      ## imm = 0x100
	jne	LBB0_3
LBB0_4:
	testb	$-128, %bl
	jne	LBB0_5
LBB0_6:
	testb	$4, %bl
	jne	LBB0_7
LBB0_8:
	testb	$64, %bl
	jne	LBB0_9
LBB0_10:
	testb	$8, %bl
	jne	LBB0_11
LBB0_12:
	testb	$1, %bl
	jne	LBB0_13
LBB0_14:
	testl	$65536, %r14d                   ## imm = 0x10000
	jne	LBB0_15
LBB0_16:
	testl	$32768, %r14d                   ## imm = 0x8000
	jne	LBB0_17
LBB0_18:
	testb	$64, %r14b
	jne	LBB0_19
LBB0_20:
	testl	$256, %r14d                     ## imm = 0x100
	jne	LBB0_21
LBB0_22:
	testb	$32, %r14b
	jne	LBB0_23
LBB0_24:
	testb	$16, %r14b
	jne	LBB0_25
LBB0_26:
	testb	$4, %r14b
	je	LBB0_28
LBB0_27:
	movq	_COUNTER_WRAP_12_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, (%r15)
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_COUNTER_WRAP_16_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 52(%r15)
	testl	$256, %ebx                      ## imm = 0x100
	je	LBB0_4
LBB0_3:
	movq	_COUNTER_WRAP_12_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 48(%r15)
	testb	$-128, %bl
	je	LBB0_6
LBB0_5:
	movq	_COUNTER_WRAP_16_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 44(%r15)
	testb	$4, %bl
	je	LBB0_8
LBB0_7:
	movq	_COUNTER_WRAP_16_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 40(%r15)
	testb	$64, %bl
	je	LBB0_10
LBB0_9:
	movq	_COUNTER_WRAP_16_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 36(%r15)
	testb	$8, %bl
	je	LBB0_12
LBB0_11:
	movq	_COUNTER_WRAP_16_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 32(%r15)
	testb	$1, %bl
	je	LBB0_14
LBB0_13:
	movq	_COUNTER_WRAP_16_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 28(%r15)
	testl	$65536, %r14d                   ## imm = 0x10000
	je	LBB0_16
LBB0_15:
	movq	_COUNTER_WRAP_12_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 24(%r15)
	testl	$32768, %r14d                   ## imm = 0x8000
	je	LBB0_18
LBB0_17:
	movq	_COUNTER_WRAP_12_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 20(%r15)
	testb	$64, %r14b
	je	LBB0_20
LBB0_19:
	movq	_COUNTER_WRAP_12_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 16(%r15)
	testl	$256, %r14d                     ## imm = 0x100
	je	LBB0_22
LBB0_21:
	movq	_COUNTER_WRAP_12_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 12(%r15)
	testb	$32, %r14b
	je	LBB0_24
LBB0_23:
	movq	_COUNTER_WRAP_12_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 8(%r15)
	testb	$16, %r14b
	je	LBB0_26
LBB0_25:
	movq	_COUNTER_WRAP_12_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 4(%r15)
	testb	$4, %r14b
	jne	LBB0_27
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_COUNTER_WRAP_16_BIT,8,3        ## @COUNTER_WRAP_16_BIT
	.comm	_COUNTER_WRAP_12_BIT,8,3        ## @COUNTER_WRAP_12_BIT
	.no_dead_strip	_et1310_handle_macstat_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et1310_handle_macstat_interrupt
_et1310_handle_macstat_interrupt:       ; @et1310_handle_macstat_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
	ldr	x8, [x0, #56]
	add	x0, x8, #4
	bl	_readl
	mov	x21, x0
	ldr	x0, [x19, #56]
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19, #56]
	add	x1, x8, #4
	mov	x0, x21
	bl	_writel
	ldr	x1, [x19, #56]
	mov	x0, x20
	bl	_writel
Lloh0:
	adrp	x9, _COUNTER_WRAP_16_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COUNTER_WRAP_16_BIT@GOTPAGEOFF]
	tbz	w21, #14, LBB0_2
; %bb.1:
	ldr	w8, [x9]
	ldr	w10, [x19, #52]
	add	w8, w10, w8
	str	w8, [x19, #52]
LBB0_2:
Lloh2:
	adrp	x8, _COUNTER_WRAP_12_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COUNTER_WRAP_12_BIT@GOTPAGEOFF]
	tbnz	w21, #8, LBB0_17
; %bb.3:
	tbnz	w21, #7, LBB0_18
LBB0_4:
	tbnz	w21, #2, LBB0_19
LBB0_5:
	tbnz	w21, #6, LBB0_20
LBB0_6:
	tbnz	w21, #3, LBB0_21
LBB0_7:
	tbnz	w21, #0, LBB0_22
LBB0_8:
	tbnz	w20, #16, LBB0_23
LBB0_9:
	tbnz	w20, #15, LBB0_24
LBB0_10:
	tbnz	w20, #6, LBB0_25
LBB0_11:
	tbnz	w20, #8, LBB0_26
LBB0_12:
	tbnz	w20, #5, LBB0_27
LBB0_13:
	tbnz	w20, #4, LBB0_28
LBB0_14:
	tbz	w20, #2, LBB0_16
LBB0_15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
LBB0_16:
	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_17:
	ldr	w10, [x8]
	ldr	w11, [x19, #48]
	add	w10, w11, w10
	str	w10, [x19, #48]
	tbz	w21, #7, LBB0_4
LBB0_18:
	ldr	w10, [x9]
	ldr	w11, [x19, #44]
	add	w10, w11, w10
	str	w10, [x19, #44]
	tbz	w21, #2, LBB0_5
LBB0_19:
	ldr	w10, [x9]
	ldr	w11, [x19, #40]
	add	w10, w11, w10
	str	w10, [x19, #40]
	tbz	w21, #6, LBB0_6
LBB0_20:
	ldr	w10, [x9]
	ldr	w11, [x19, #36]
	add	w10, w11, w10
	str	w10, [x19, #36]
	tbz	w21, #3, LBB0_7
LBB0_21:
	ldr	w10, [x9]
	ldr	w11, [x19, #32]
	add	w10, w11, w10
	str	w10, [x19, #32]
	tbz	w21, #0, LBB0_8
LBB0_22:
	ldr	w9, [x9]
	ldr	w10, [x19, #28]
	add	w9, w10, w9
	str	w9, [x19, #28]
	tbz	w20, #16, LBB0_9
LBB0_23:
	ldr	w9, [x8]
	ldr	w10, [x19, #24]
	add	w9, w10, w9
	str	w9, [x19, #24]
	tbz	w20, #15, LBB0_10
LBB0_24:
	ldr	w9, [x8]
	ldr	w10, [x19, #20]
	add	w9, w10, w9
	str	w9, [x19, #20]
	tbz	w20, #6, LBB0_11
LBB0_25:
	ldr	w9, [x8]
	ldr	w10, [x19, #16]
	add	w9, w10, w9
	str	w9, [x19, #16]
	tbz	w20, #8, LBB0_12
LBB0_26:
	ldr	w9, [x8]
	ldr	w10, [x19, #12]
	add	w9, w10, w9
	str	w9, [x19, #12]
	tbz	w20, #5, LBB0_13
LBB0_27:
	ldr	w9, [x8]
	ldr	w10, [x19, #8]
	add	w9, w10, w9
	str	w9, [x19, #8]
	tbz	w20, #4, LBB0_14
LBB0_28:
	ldr	w9, [x8]
	ldr	w10, [x19, #4]
	add	w9, w10, w9
	str	w9, [x19, #4]
	tbnz	w20, #2, LBB0_15
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_COUNTER_WRAP_16_BIT,8,3        ; @COUNTER_WRAP_16_BIT
	.comm	_COUNTER_WRAP_12_BIT,8,3        ; @COUNTER_WRAP_12_BIT
	.no_dead_strip	_et1310_handle_macstat_interrupt
.subsections_via_symbols
