	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function balloon3_pcmcia_socket_state
_balloon3_pcmcia_socket_state:          ## @balloon3_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_BALLOON3_CF_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___raw_readw
	movl	%eax, %ebx
	movq	_balloon3_pcmcia_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movl	%ebx, %edx
	xorl	(%rax,%rcx,4), %edx
	movq	_BALLOON3_CF_nSTSCHG_BVD1@GOTPCREL(%rip), %r15
	testl	%edx, (%r15)
	je	LBB0_4
## %bb.1:
	movl	%ebx, (%rax,%rcx,4)
	movq	_BALLOON3_BP_NSTSCHG_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, (%r15)
	je	LBB0_3
## %bb.2:
	callq	_enable_irq
	jmp	LBB0_4
LBB0_3:
	callq	_disable_irq
LBB0_4:
	movq	_BALLOON3_CF_nIRQ@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, (%r14)
	xorl	%eax, %eax
	movl	(%r15), %ecx
	andl	%ebx, %ecx
	setne	%al
	movl	%eax, 4(%r14)
	movl	$1, 8(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BALLOON3_CF_STATUS_REG,4,2     ## @BALLOON3_CF_STATUS_REG
	.comm	_balloon3_pcmcia_status,8,3     ## @balloon3_pcmcia_status
	.comm	_BALLOON3_CF_nSTSCHG_BVD1,4,2   ## @BALLOON3_CF_nSTSCHG_BVD1
	.comm	_BALLOON3_BP_NSTSCHG_IRQ,4,2    ## @BALLOON3_BP_NSTSCHG_IRQ
	.comm	_BALLOON3_CF_nIRQ,4,2           ## @BALLOON3_CF_nIRQ
	.no_dead_strip	_balloon3_pcmcia_socket_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function balloon3_pcmcia_socket_state
_balloon3_pcmcia_socket_state:          ; @balloon3_pcmcia_socket_state
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _BALLOON3_CF_STATUS_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BALLOON3_CF_STATUS_REG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___raw_readw
	mov	x20, x0
Lloh3:
	adrp	x8, _balloon3_pcmcia_status@GOTPAGE
Lloh4:
	ldr	x8, [x8, _balloon3_pcmcia_status@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	w10, [x8, x9, lsl #2]
	eor	w10, w10, w0
Lloh6:
	adrp	x21, _BALLOON3_CF_nSTSCHG_BVD1@GOTPAGE
Lloh7:
	ldr	x21, [x21, _BALLOON3_CF_nSTSCHG_BVD1@GOTPAGEOFF]
	ldr	w11, [x21]
	tst	w10, w11
	b.eq	LBB0_4
; %bb.1:
	str	w20, [x8, x9, lsl #2]
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _BALLOON3_BP_NSTSCHG_IRQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BALLOON3_BP_NSTSCHG_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	bl	_enable_irq
	b	LBB0_4
LBB0_3:
	bl	_disable_irq
LBB0_4:
Lloh11:
	adrp	x8, _BALLOON3_CF_nIRQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BALLOON3_CF_nIRQ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, ne
	str	w8, [x19]
	ldr	w8, [x21]
	tst	w8, w20
	cset	w8, ne
	mov	w9, #1
	stp	w8, w9, [x19, #4]
	stp	xzr, xzr, [x19, #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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BALLOON3_CF_STATUS_REG,4,2     ; @BALLOON3_CF_STATUS_REG
	.comm	_balloon3_pcmcia_status,8,3     ; @balloon3_pcmcia_status
	.comm	_BALLOON3_CF_nSTSCHG_BVD1,4,2   ; @BALLOON3_CF_nSTSCHG_BVD1
	.comm	_BALLOON3_BP_NSTSCHG_IRQ,4,2    ; @BALLOON3_BP_NSTSCHG_IRQ
	.comm	_BALLOON3_CF_nIRQ,4,2           ; @BALLOON3_CF_nIRQ
	.no_dead_strip	_balloon3_pcmcia_socket_state
.subsections_via_symbols
