	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scard_pin_needed
_scard_pin_needed:                      ## @scard_pin_needed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdi), %rcx
	movq	_SCARD_GSM_SIM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_5
## %bb.1:
	movq	_SCARD_CHV1_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdx, %rax
	jae	LBB0_4
## %bb.2:
	movq	_SCARD_CHV1_FLAG@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	testb	%cl, (%rsi,%rax)
	je	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_SCARD_USIM@GOTPCREL(%rip), %rdi
	movl	$-1, %eax
	cmpq	(%rdi), %rcx
	jne	LBB0_8
## %bb.6:
	leaq	-4(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_scard_parse_fsp_templ
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.7:
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	setg	%cl
	movzbl	%al, %eax
	shrl	$7, %eax
	andb	%cl, %al
	movzbl	%al, %eax
	jmp	LBB0_8
LBB0_3:
	movl	$1, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCARD_GSM_SIM,8,3              ## @SCARD_GSM_SIM
	.comm	_SCARD_CHV1_OFFSET,8,3          ## @SCARD_CHV1_OFFSET
	.comm	_SCARD_CHV1_FLAG,1,0            ## @SCARD_CHV1_FLAG
	.comm	_SCARD_USIM,8,3                 ## @SCARD_USIM
	.no_dead_strip	_scard_pin_needed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scard_pin_needed
_scard_pin_needed:                      ; @scard_pin_needed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x8, x2
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _SCARD_GSM_SIM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SCARD_GSM_SIM@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _SCARD_CHV1_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCARD_CHV1_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.hs	LBB0_3
; %bb.2:
	ldrb	w8, [x1, x9]
Lloh6:
	adrp	x9, _SCARD_CHV1_FLAG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCARD_CHV1_FLAG@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh8:
	adrp	x10, _SCARD_USIM@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SCARD_USIM@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	sub	x2, x29, #4
	mov	x0, x1
	mov	x1, x8
	mov	x3, #0
	bl	_scard_parse_fsp_templ
	cbz	x0, LBB0_8
LBB0_6:
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	ldur	w8, [x29, #-4]
	cmp	w8, #0
	cset	w9, gt
	and	w8, w8, #0x80
	and	w0, w9, w8, lsr #7
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SCARD_GSM_SIM,8,3              ; @SCARD_GSM_SIM
	.comm	_SCARD_CHV1_OFFSET,8,3          ; @SCARD_CHV1_OFFSET
	.comm	_SCARD_CHV1_FLAG,1,0            ; @SCARD_CHV1_FLAG
	.comm	_SCARD_USIM,8,3                 ; @SCARD_USIM
	.no_dead_strip	_scard_pin_needed
.subsections_via_symbols
