	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_events
_get_events:                            ## @get_events
	.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	%edi, %ebx
	movq	_I365_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_exca_read_byte
	movl	%eax, %r14d
	movq	_I365_CSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_exca_read_byte
	movl	%eax, %r15d
	movq	_I365_INTCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_exca_read_byte
	movq	_I365_PC_IOCARD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_I365_CSC_STSCHG@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.2:
	movq	_I365_CS_STSCHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	je	LBB0_12
## %bb.3:
	movq	_SS_STSCHG@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_I365_CSC_BVD1@GOTPCREL(%rip), %rax
	movq	_I365_CSC_BVD2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_9
## %bb.5:
	movq	_I365_CS_BVD1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_10
## %bb.6:
	movq	_I365_CS_BVD2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ecx, %edx
	andl	%r14d, %edx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	jne	LBB0_12
## %bb.7:
	movq	_SS_BATWARN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_SS_BATDEAD@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	movq	_I365_CSC_READY@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	_I365_CS_READY@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	_SS_READY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_15:
	movq	_I365_CSC_DETECT@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_18
## %bb.16:
	movq	_I365_CS_DETECT@GOTPCREL(%rip), %rcx
	notl	%r14d
	testl	%r14d, (%rcx)
	jne	LBB0_18
## %bb.17:
	movq	_SS_DETECT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I365_STATUS,4,2                ## @I365_STATUS
	.comm	_I365_CSC,4,2                   ## @I365_CSC
	.comm	_I365_INTCTL,4,2                ## @I365_INTCTL
	.comm	_I365_PC_IOCARD,4,2             ## @I365_PC_IOCARD
	.comm	_I365_CSC_STSCHG,4,2            ## @I365_CSC_STSCHG
	.comm	_I365_CS_STSCHG,4,2             ## @I365_CS_STSCHG
	.comm	_SS_STSCHG,4,2                  ## @SS_STSCHG
	.comm	_I365_CSC_BVD1,4,2              ## @I365_CSC_BVD1
	.comm	_I365_CSC_BVD2,4,2              ## @I365_CSC_BVD2
	.comm	_I365_CS_BVD1,4,2               ## @I365_CS_BVD1
	.comm	_SS_BATDEAD,4,2                 ## @SS_BATDEAD
	.comm	_I365_CS_BVD2,4,2               ## @I365_CS_BVD2
	.comm	_SS_BATWARN,4,2                 ## @SS_BATWARN
	.comm	_I365_CSC_READY,4,2             ## @I365_CSC_READY
	.comm	_I365_CS_READY,4,2              ## @I365_CS_READY
	.comm	_SS_READY,4,2                   ## @SS_READY
	.comm	_I365_CSC_DETECT,4,2            ## @I365_CSC_DETECT
	.comm	_I365_CS_DETECT,4,2             ## @I365_CS_DETECT
	.comm	_SS_DETECT,4,2                  ## @SS_DETECT
	.no_dead_strip	_get_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_events
_get_events:                            ; @get_events
	.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	x21, x0
Lloh0:
	adrp	x8, _I365_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I365_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_exca_read_byte
	mov	x19, x0
Lloh3:
	adrp	x8, _I365_CSC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I365_CSC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_exca_read_byte
	mov	x20, x0
Lloh6:
	adrp	x8, _I365_INTCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I365_INTCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_exca_read_byte
Lloh9:
	adrp	x8, _I365_PC_IOCARD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I365_PC_IOCARD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _I365_CSC_STSCHG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I365_CSC_STSCHG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.2:
Lloh15:
	adrp	x8, _I365_CS_STSCHG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I365_CS_STSCHG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SS_STSCHG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SS_STSCHG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w8, w19
	csel	w0, wzr, w9, eq
	b	LBB0_8
LBB0_3:
Lloh21:
	adrp	x8, _I365_CSC_BVD1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I365_CSC_BVD1@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _I365_CSC_BVD2@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I365_CSC_BVD2@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
Lloh27:
	adrp	x8, _I365_CS_BVD1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I365_CS_BVD1@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.5:
Lloh30:
	adrp	x9, _I365_CS_BVD2@GOTPAGE
Lloh31:
	ldr	x9, [x9, _I365_CS_BVD2@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w9, w9, w8
	and	w9, w9, w19
Lloh33:
	adrp	x10, _SS_BATWARN@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SS_BATWARN@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	cmp	w9, w8
	csel	w0, w10, wzr, eq
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh36:
	adrp	x8, _SS_BATDEAD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SS_BATDEAD@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
LBB0_8:
Lloh39:
	adrp	x8, _I365_CSC_READY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _I365_CSC_READY@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.9:
Lloh42:
	adrp	x8, _I365_CS_READY@GOTPAGE
Lloh43:
	ldr	x8, [x8, _I365_CS_READY@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_11
; %bb.10:
Lloh45:
	adrp	x8, _SS_READY@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SS_READY@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_11:
Lloh48:
	adrp	x8, _I365_CSC_DETECT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _I365_CSC_DETECT@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.12:
Lloh51:
	adrp	x8, _I365_CS_DETECT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _I365_CS_DETECT@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	bics	wzr, w8, w19
	b.ne	LBB0_14
; %bb.13:
Lloh54:
	adrp	x8, _SS_DETECT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SS_DETECT@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_14:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_I365_STATUS,4,2                ; @I365_STATUS
	.comm	_I365_CSC,4,2                   ; @I365_CSC
	.comm	_I365_INTCTL,4,2                ; @I365_INTCTL
	.comm	_I365_PC_IOCARD,4,2             ; @I365_PC_IOCARD
	.comm	_I365_CSC_STSCHG,4,2            ; @I365_CSC_STSCHG
	.comm	_I365_CS_STSCHG,4,2             ; @I365_CS_STSCHG
	.comm	_SS_STSCHG,4,2                  ; @SS_STSCHG
	.comm	_I365_CSC_BVD1,4,2              ; @I365_CSC_BVD1
	.comm	_I365_CSC_BVD2,4,2              ; @I365_CSC_BVD2
	.comm	_I365_CS_BVD1,4,2               ; @I365_CS_BVD1
	.comm	_SS_BATDEAD,4,2                 ; @SS_BATDEAD
	.comm	_I365_CS_BVD2,4,2               ; @I365_CS_BVD2
	.comm	_SS_BATWARN,4,2                 ; @SS_BATWARN
	.comm	_I365_CSC_READY,4,2             ; @I365_CSC_READY
	.comm	_I365_CS_READY,4,2              ; @I365_CS_READY
	.comm	_SS_READY,4,2                   ; @SS_READY
	.comm	_I365_CSC_DETECT,4,2            ; @I365_CSC_DETECT
	.comm	_I365_CS_DETECT,4,2             ; @I365_CS_DETECT
	.comm	_SS_DETECT,4,2                  ; @SS_DETECT
	.no_dead_strip	_get_events
.subsections_via_symbols
