	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IF_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_exca_readb
	movl	%eax, %r14d
	movq	_CARD_SC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_exca_readb
	movl	%eax, %r12d
	movq	_CARD_DT_CHG@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_CARD_DETECT1@GOTPCREL(%rip), %rax
	movq	_CARD_DETECT2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%r14d, %eax
	notl	%eax
	xorl	%r15d, %r15d
	testl	%eax, %ecx
	jne	LBB0_4
## %bb.3:
	movq	_SS_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_4:
	movq	_RDY_CHG@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_READY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_SS_READY@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_7:
	movq	_INT_GEN_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_exca_readb
	movq	_CARD_TYPE_IO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.8:
	movq	_BAT_DEAD_ST_CHG@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_17
## %bb.9:
	movq	_STSCHG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_17
## %bb.10:
	movq	_SS_STSCHG@GOTPCREL(%rip), %rax
LBB0_16:
	orl	(%rax), %r15d
	jmp	LBB0_17
LBB0_11:
	movq	_BAT_WAR_CHG@GOTPCREL(%rip), %rax
	movq	_BAT_DEAD_ST_CHG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_17
## %bb.12:
	movq	_BV_DETECT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_BV_DETECT_GOOD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
LBB0_17:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_BV_DETECT_WARN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_15
## %bb.14:
	movq	_SS_BATWARN@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_SS_BATDEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_STATUS,4,2                  ## @IF_STATUS
	.comm	_CARD_SC,4,2                    ## @CARD_SC
	.comm	_CARD_DT_CHG,4,2                ## @CARD_DT_CHG
	.comm	_CARD_DETECT1,4,2               ## @CARD_DETECT1
	.comm	_CARD_DETECT2,4,2               ## @CARD_DETECT2
	.comm	_SS_DETECT,4,2                  ## @SS_DETECT
	.comm	_RDY_CHG,4,2                    ## @RDY_CHG
	.comm	_READY,4,2                      ## @READY
	.comm	_SS_READY,4,2                   ## @SS_READY
	.comm	_INT_GEN_CNT,4,2                ## @INT_GEN_CNT
	.comm	_CARD_TYPE_IO,4,2               ## @CARD_TYPE_IO
	.comm	_BAT_DEAD_ST_CHG,4,2            ## @BAT_DEAD_ST_CHG
	.comm	_STSCHG,4,2                     ## @STSCHG
	.comm	_SS_STSCHG,4,2                  ## @SS_STSCHG
	.comm	_BAT_WAR_CHG,4,2                ## @BAT_WAR_CHG
	.comm	_BV_DETECT_MASK,4,2             ## @BV_DETECT_MASK
	.comm	_BV_DETECT_GOOD,4,2             ## @BV_DETECT_GOOD
	.comm	_BV_DETECT_WARN,4,2             ## @BV_DETECT_WARN
	.comm	_SS_BATWARN,4,2                 ## @SS_BATWARN
	.comm	_SS_BATDEAD,4,2                 ## @SS_BATDEAD
	.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	x22, x0
Lloh0:
	adrp	x8, _IF_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IF_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_exca_readb
	mov	x20, x0
Lloh3:
	adrp	x8, _CARD_SC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARD_SC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_exca_readb
	mov	x21, x0
Lloh6:
	adrp	x8, _CARD_DT_CHG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARD_DT_CHG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _CARD_DETECT1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CARD_DETECT1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _CARD_DETECT2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CARD_DETECT2@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _SS_DETECT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SS_DETECT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	bics	wzr, w8, w20
	csel	w19, w9, wzr, eq
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
Lloh18:
	adrp	x8, _RDY_CHG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RDY_CHG@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.4:
Lloh21:
	adrp	x8, _READY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _READY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
Lloh24:
	adrp	x8, _SS_READY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SS_READY@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_6:
Lloh27:
	adrp	x8, _INT_GEN_CNT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INT_GEN_CNT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_exca_readb
Lloh30:
	adrp	x8, _CARD_TYPE_IO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CARD_TYPE_IO@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
Lloh33:
	adrp	x8, _BAT_DEAD_ST_CHG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BAT_DEAD_ST_CHG@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.8:
Lloh36:
	adrp	x8, _STSCHG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _STSCHG@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.9:
Lloh39:
	adrp	x8, _SS_STSCHG@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SS_STSCHG@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	orr	w19, w8, w19
	b	LBB0_13
LBB0_11:
Lloh41:
	adrp	x8, _BAT_WAR_CHG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BAT_WAR_CHG@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _BAT_DEAD_ST_CHG@GOTPAGE
Lloh45:
	ldr	x9, [x9, _BAT_DEAD_ST_CHG@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_13
; %bb.12:
Lloh47:
	adrp	x8, _BV_DETECT_MASK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BV_DETECT_MASK@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh50:
	adrp	x9, _BV_DETECT_GOOD@GOTPAGE
Lloh51:
	ldr	x9, [x9, _BV_DETECT_GOOD@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
LBB0_13:
	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
	ret
LBB0_14:
Lloh53:
	adrp	x8, _BV_DETECT_WARN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BV_DETECT_WARN@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_16
; %bb.15:
Lloh56:
	adrp	x8, _SS_BATWARN@GOTPAGE
Lloh57:
	ldr	x8, [x8, _SS_BATWARN@GOTPAGEOFF]
	b	LBB0_10
LBB0_16:
Lloh58:
	adrp	x8, _SS_BATDEAD@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SS_BATDEAD@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_STATUS,4,2                  ; @IF_STATUS
	.comm	_CARD_SC,4,2                    ; @CARD_SC
	.comm	_CARD_DT_CHG,4,2                ; @CARD_DT_CHG
	.comm	_CARD_DETECT1,4,2               ; @CARD_DETECT1
	.comm	_CARD_DETECT2,4,2               ; @CARD_DETECT2
	.comm	_SS_DETECT,4,2                  ; @SS_DETECT
	.comm	_RDY_CHG,4,2                    ; @RDY_CHG
	.comm	_READY,4,2                      ; @READY
	.comm	_SS_READY,4,2                   ; @SS_READY
	.comm	_INT_GEN_CNT,4,2                ; @INT_GEN_CNT
	.comm	_CARD_TYPE_IO,4,2               ; @CARD_TYPE_IO
	.comm	_BAT_DEAD_ST_CHG,4,2            ; @BAT_DEAD_ST_CHG
	.comm	_STSCHG,4,2                     ; @STSCHG
	.comm	_SS_STSCHG,4,2                  ; @SS_STSCHG
	.comm	_BAT_WAR_CHG,4,2                ; @BAT_WAR_CHG
	.comm	_BV_DETECT_MASK,4,2             ; @BV_DETECT_MASK
	.comm	_BV_DETECT_GOOD,4,2             ; @BV_DETECT_GOOD
	.comm	_BV_DETECT_WARN,4,2             ; @BV_DETECT_WARN
	.comm	_SS_BATWARN,4,2                 ; @SS_BATWARN
	.comm	_SS_BATDEAD,4,2                 ; @SS_BATDEAD
	.no_dead_strip	_get_events
.subsections_via_symbols
