	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_common_check_status
_soc_common_check_status:               ## @soc_common_check_status
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_debug
	leaq	4(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_status_lock@GOTPCREL(%rip), %r15
	leaq	L_.str.3(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_soc_common_pcmcia_skt_state
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%r13), %ebx
	xorl	%r12d, %ebx
	andl	8(%r13), %ebx
	movl	%r12d, (%r13)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.2(%rip), %rcx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rcx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SS_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %r8
	andl	%ebx, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.4(%rip), %r8
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SS_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %r9
	andl	%ebx, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.5(%rip), %r9
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SS_BATDEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %r10
	andl	%ebx, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.6(%rip), %r10
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SS_BATWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %r11
	andl	%ebx, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.7(%rip), %r11
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_SS_STSCHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %r12
	andl	%ebx, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.8(%rip), %r12
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	$4, %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	_debug
	addq	$32, %rsp
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_pcmcia_parse_events
	jmp	LBB0_1
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entering PCMCIA monitoring thread\n"

	.comm	_status_lock,4,2                ## @status_lock
L_.str.1:                               ## @.str.1
	.asciz	"events: %s%s%s%s%s%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"<NONE>"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_SS_DETECT,4,2                  ## @SS_DETECT
L_.str.4:                               ## @.str.4
	.asciz	"DETECT "

	.comm	_SS_READY,4,2                   ## @SS_READY
L_.str.5:                               ## @.str.5
	.asciz	"READY "

	.comm	_SS_BATDEAD,4,2                 ## @SS_BATDEAD
L_.str.6:                               ## @.str.6
	.asciz	"BATDEAD "

	.comm	_SS_BATWARN,4,2                 ## @SS_BATWARN
L_.str.7:                               ## @.str.7
	.asciz	"BATWARN "

	.comm	_SS_STSCHG,4,2                  ## @SS_STSCHG
L_.str.8:                               ## @.str.8
	.asciz	"STSCHG "

	.no_dead_strip	_soc_common_check_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_common_check_status
_soc_common_check_status:               ; @soc_common_check_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_debug
	add	x20, x19, #4
Lloh2:
	adrp	x21, _status_lock@GOTPAGE
Lloh3:
	ldr	x21, [x21, _status_lock@GOTPAGEOFF]
Lloh4:
	adrp	x24, l_.str.3@PAGE
Lloh5:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh6:
	adrp	x26, _SS_STSCHG@GOTPAGE
Lloh7:
	ldr	x26, [x26, _SS_STSCHG@GOTPAGEOFF]
Lloh8:
	adrp	x27, l_.str.8@PAGE
Lloh9:
	add	x27, x27, l_.str.8@PAGEOFF
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_soc_common_pcmcia_skt_state
	mov	x23, x0
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	eor	w28, w8, w23
	ldr	w25, [x19, #8]
	str	w23, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ands	w23, w28, w25
Lloh12:
	adrp	x8, l_.str.2@PAGE
Lloh13:
	add	x8, x8, l_.str.2@PAGEOFF
	csel	x8, x8, x24, eq
Lloh14:
	adrp	x9, _SS_DETECT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SS_DETECT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w23
Lloh17:
	adrp	x9, l_.str.4@PAGE
Lloh18:
	add	x9, x9, l_.str.4@PAGEOFF
	csel	x9, x24, x9, eq
Lloh19:
	adrp	x10, _SS_READY@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SS_READY@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w23
Lloh22:
	adrp	x10, l_.str.5@PAGE
Lloh23:
	add	x10, x10, l_.str.5@PAGEOFF
	csel	x10, x24, x10, eq
Lloh24:
	adrp	x11, _SS_BATDEAD@GOTPAGE
Lloh25:
	ldr	x11, [x11, _SS_BATDEAD@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	tst	w11, w23
Lloh27:
	adrp	x11, l_.str.6@PAGE
Lloh28:
	add	x11, x11, l_.str.6@PAGEOFF
	csel	x11, x24, x11, eq
Lloh29:
	adrp	x12, _SS_BATWARN@GOTPAGE
Lloh30:
	ldr	x12, [x12, _SS_BATWARN@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
	tst	w12, w23
Lloh32:
	adrp	x12, l_.str.7@PAGE
Lloh33:
	add	x12, x12, l_.str.7@PAGEOFF
	csel	x12, x24, x12, eq
	ldr	w13, [x26]
	tst	w13, w23
	csel	x13, x24, x27, eq
	stp	x12, x13, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
	mov	x0, x19
	mov	w1, #4
	mov	x2, x22
	bl	_debug
	cbz	w23, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_pcmcia_parse_events
	b	LBB0_1
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entering PCMCIA monitoring thread\n"

	.comm	_status_lock,4,2                ; @status_lock
l_.str.1:                               ; @.str.1
	.asciz	"events: %s%s%s%s%s%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"<NONE>"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_SS_DETECT,4,2                  ; @SS_DETECT
l_.str.4:                               ; @.str.4
	.asciz	"DETECT "

	.comm	_SS_READY,4,2                   ; @SS_READY
l_.str.5:                               ; @.str.5
	.asciz	"READY "

	.comm	_SS_BATDEAD,4,2                 ; @SS_BATDEAD
l_.str.6:                               ; @.str.6
	.asciz	"BATDEAD "

	.comm	_SS_BATWARN,4,2                 ; @SS_BATWARN
l_.str.7:                               ; @.str.7
	.asciz	"BATWARN "

	.comm	_SS_STSCHG,4,2                  ; @SS_STSCHG
l_.str.8:                               ; @.str.8
	.asciz	"STSCHG "

	.no_dead_strip	_soc_common_check_status
.subsections_via_symbols
