	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_card_present
_is_card_present:                       ## @is_card_present
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_HW_VERSION_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_IOIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	16(%rdi), %rax
	movq	%rax, %rdi
	callq	_inw
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	setne	%al
	jmp	LBB0_3
LBB0_2:
	movq	8(%rdi), %rdi
	callq	_readl
	movq	_CARD_PRESENT_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
LBB0_3:
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_VERSION_1,8,3               ## @HW_VERSION_1
	.comm	_IOIR,8,3                       ## @IOIR
	.comm	_CARD_PRESENT_VALUE,8,3         ## @CARD_PRESENT_VALUE
	.no_dead_strip	_is_card_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_card_present
_is_card_present:                       ; @is_card_present
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HW_VERSION_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_VERSION_1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x0, #16]
Lloh3:
	adrp	x9, _IOIR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOIR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inw
	mov	w8, #65535
	cmp	w0, w8
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x0, [x0, #8]
	bl	_readl
Lloh6:
	adrp	x8, _CARD_PRESENT_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARD_PRESENT_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_VERSION_1,8,3               ; @HW_VERSION_1
	.comm	_IOIR,8,3                       ; @IOIR
	.comm	_CARD_PRESENT_VALUE,8,3         ; @CARD_PRESENT_VALUE
	.no_dead_strip	_is_card_present
.subsections_via_symbols
