	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sa1111_pcmcia_socket_state
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sa1111_pcmcia_socket_state
	.p2align	4, 0x90
_sa1111_pcmcia_socket_state:            ## @sa1111_pcmcia_socket_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_skt
	movq	(%rax), %rax
	movq	_PCSR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_readl_relaxed
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	cmpl	$1, %ecx
	jne	LBB0_5
## %bb.3:
	movq	_PCSR_S1_VS2@GOTPCREL(%rip), %r8
	movq	_PCSR_S1_VS1@GOTPCREL(%rip), %r9
	movq	_PCSR_S1_WP@GOTPCREL(%rip), %r10
	movq	_PCSR_S1_BVD2@GOTPCREL(%rip), %rdi
	movq	_PCSR_S1_BVD1@GOTPCREL(%rip), %rbx
	movq	_PCSR_S1_READY@GOTPCREL(%rip), %rcx
	movq	_PCSR_S1_DETECT@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_1:
	movq	_PCSR_S0_VS2@GOTPCREL(%rip), %r8
	movq	_PCSR_S0_VS1@GOTPCREL(%rip), %r9
	movq	_PCSR_S0_WP@GOTPCREL(%rip), %r10
	movq	_PCSR_S0_BVD2@GOTPCREL(%rip), %rdi
	movq	_PCSR_S0_BVD1@GOTPCREL(%rip), %rbx
	movq	_PCSR_S0_READY@GOTPCREL(%rip), %rcx
	movq	_PCSR_S0_DETECT@GOTPCREL(%rip), %rdx
LBB0_4:
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%eax, %edx
	sete	%sil
	movl	%esi, (%r14)
	movd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rbx), %xmm0
	pinsrd	$2, (%rdi), %xmm0
	pinsrd	$3, (%r10), %xmm0
	movd	%eax, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pandn	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 4(%r14)
	xorl	%ecx, %ecx
	movl	(%r9), %edx
	andl	%eax, %edx
	sete	%cl
	movl	%ecx, 20(%r14)
	xorl	%ecx, %ecx
	movl	(%r8), %edx
	andl	%eax, %edx
	sete	%cl
	movl	%ecx, 24(%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCSR,8,3                       ## @PCSR
	.comm	_PCSR_S0_DETECT,4,2             ## @PCSR_S0_DETECT
	.comm	_PCSR_S0_READY,4,2              ## @PCSR_S0_READY
	.comm	_PCSR_S0_BVD1,4,2               ## @PCSR_S0_BVD1
	.comm	_PCSR_S0_BVD2,4,2               ## @PCSR_S0_BVD2
	.comm	_PCSR_S0_WP,4,2                 ## @PCSR_S0_WP
	.comm	_PCSR_S0_VS1,4,2                ## @PCSR_S0_VS1
	.comm	_PCSR_S0_VS2,4,2                ## @PCSR_S0_VS2
	.comm	_PCSR_S1_DETECT,4,2             ## @PCSR_S1_DETECT
	.comm	_PCSR_S1_READY,4,2              ## @PCSR_S1_READY
	.comm	_PCSR_S1_BVD1,4,2               ## @PCSR_S1_BVD1
	.comm	_PCSR_S1_BVD2,4,2               ## @PCSR_S1_BVD2
	.comm	_PCSR_S1_WP,4,2                 ## @PCSR_S1_WP
	.comm	_PCSR_S1_VS1,4,2                ## @PCSR_S1_VS1
	.comm	_PCSR_S1_VS2,4,2                ## @PCSR_S1_VS2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sa1111_pcmcia_socket_state     ; -- Begin function sa1111_pcmcia_socket_state
	.p2align	2
_sa1111_pcmcia_socket_state:            ; @sa1111_pcmcia_socket_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_to_skt
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PCSR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCSR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _PCSR_S1_VS2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCSR_S1_VS2@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PCSR_S1_VS1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCSR_S1_VS1@GOTPAGEOFF]
Lloh7:
	adrp	x10, _PCSR_S1_WP@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PCSR_S1_WP@GOTPAGEOFF]
Lloh9:
	adrp	x11, _PCSR_S1_BVD2@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PCSR_S1_BVD2@GOTPAGEOFF]
Lloh11:
	adrp	x12, _PCSR_S1_BVD1@GOTPAGE
Lloh12:
	ldr	x12, [x12, _PCSR_S1_BVD1@GOTPAGEOFF]
Lloh13:
	adrp	x13, _PCSR_S1_READY@GOTPAGE
Lloh14:
	ldr	x13, [x13, _PCSR_S1_READY@GOTPAGEOFF]
Lloh15:
	adrp	x14, _PCSR_S1_DETECT@GOTPAGE
Lloh16:
	ldr	x14, [x14, _PCSR_S1_DETECT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _PCSR_S0_VS2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCSR_S0_VS2@GOTPAGEOFF]
Lloh19:
	adrp	x9, _PCSR_S0_VS1@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PCSR_S0_VS1@GOTPAGEOFF]
Lloh21:
	adrp	x10, _PCSR_S0_WP@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PCSR_S0_WP@GOTPAGEOFF]
Lloh23:
	adrp	x11, _PCSR_S0_BVD2@GOTPAGE
Lloh24:
	ldr	x11, [x11, _PCSR_S0_BVD2@GOTPAGEOFF]
Lloh25:
	adrp	x12, _PCSR_S0_BVD1@GOTPAGE
Lloh26:
	ldr	x12, [x12, _PCSR_S0_BVD1@GOTPAGEOFF]
Lloh27:
	adrp	x13, _PCSR_S0_READY@GOTPAGE
Lloh28:
	ldr	x13, [x13, _PCSR_S0_READY@GOTPAGEOFF]
Lloh29:
	adrp	x14, _PCSR_S0_DETECT@GOTPAGE
Lloh30:
	ldr	x14, [x14, _PCSR_S0_DETECT@GOTPAGEOFF]
LBB0_4:
	ldr	w14, [x14]
	tst	w14, w0
	cset	w14, eq
	str	w14, [x19]
	ldr	s0, [x13]
	ld1.s	{ v0 }[1], [x12]
	ld1.s	{ v0 }[2], [x11]
	ld1.s	{ v0 }[3], [x10]
	dup.4s	v1, w0
	and.16b	v0, v0, v1
	cmeq.4s	v0, v0, #0
	movi.4s	v1, #1
	bic.16b	v0, v1, v0
	stur	q0, [x19, #4]
	ldr	w9, [x9]
	tst	w9, w0
	cset	w9, eq
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, eq
	stp	w9, w8, [x19, #20]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PCSR,8,3                       ; @PCSR
	.comm	_PCSR_S0_DETECT,4,2             ; @PCSR_S0_DETECT
	.comm	_PCSR_S0_READY,4,2              ; @PCSR_S0_READY
	.comm	_PCSR_S0_BVD1,4,2               ; @PCSR_S0_BVD1
	.comm	_PCSR_S0_BVD2,4,2               ; @PCSR_S0_BVD2
	.comm	_PCSR_S0_WP,4,2                 ; @PCSR_S0_WP
	.comm	_PCSR_S0_VS1,4,2                ; @PCSR_S0_VS1
	.comm	_PCSR_S0_VS2,4,2                ; @PCSR_S0_VS2
	.comm	_PCSR_S1_DETECT,4,2             ; @PCSR_S1_DETECT
	.comm	_PCSR_S1_READY,4,2              ; @PCSR_S1_READY
	.comm	_PCSR_S1_BVD1,4,2               ; @PCSR_S1_BVD1
	.comm	_PCSR_S1_BVD2,4,2               ; @PCSR_S1_BVD2
	.comm	_PCSR_S1_WP,4,2                 ; @PCSR_S1_WP
	.comm	_PCSR_S1_VS1,4,2                ; @PCSR_S1_VS1
	.comm	_PCSR_S1_VS2,4,2                ; @PCSR_S1_VS2
.subsections_via_symbols
