	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function card_present
_card_present:                          ## @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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_enter
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.1:
	movq	_MAX_SOCKETS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	_sockets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_indirect_read
	notl	%eax
	xorl	%r14d, %r14d
	testb	$12, %al
	sete	%r14b
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_leave
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card_present"

	.comm	_MAX_SOCKETS,4,2                ## @MAX_SOCKETS
	.comm	_sockets,8,3                    ## @sockets
L_.str.1:                               ## @.str.1
	.asciz	"card_present 1"

L_.str.2:                               ## @.str.2
	.asciz	"card_present 0"

	.no_dead_strip	_card_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function card_present
_card_present:                          ; @card_present
	.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	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_enter
	mov	w19, #0
	tbnz	w20, #31, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _MAX_SOCKETS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_SOCKETS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.le	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _sockets@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sockets@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, uxtw #3]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_indirect_read
	and	w8, w0, #0xc
	cmp	w8, #12
	cset	w19, eq
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh10:
	adrp	x9, l_.str.1@PAGE
Lloh11:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x0, x9, x8, eq
	bl	_leave
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card_present"

	.comm	_MAX_SOCKETS,4,2                ; @MAX_SOCKETS
	.comm	_sockets,8,3                    ; @sockets
l_.str.1:                               ; @.str.1
	.asciz	"card_present 1"

l_.str.2:                               ; @.str.2
	.asciz	"card_present 0"

	.no_dead_strip	_card_present
.subsections_via_symbols
