	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scard_get_triplets
_scard_get_triplets:                    ## @scard_get_triplets
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %esi
	jl	LBB0_8
## %bb.1:
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdx), %rdi
	callq	_atoi
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	movl	%eax, %r14d
	cmpl	$3, %ebx
	jb	LBB0_4
## %bb.3:
	movq	16(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_wpa_debug_level@GOTPCREL(%rip), %rax
	movl	$99, (%rax)
LBB0_5:
	movl	(%r15), %edi
	callq	_scard_init
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %r15
	movq	(%r12), %rsi
	movq	%rax, %rdi
	callq	_scard_set_pin
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_8:
	leaq	L_str.8(%rip), %rdi
LBB0_9:
	callq	_puts
LBB0_10:
	movl	$-1, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.12:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_9
LBB0_14:
	movq	$20, -120(%rbp)
	leaq	-80(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	movq	%r15, %rdi
	callq	_scard_get_imsi
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	%r15, %rdi
	callq	_scard_deinit
	jmp	LBB0_10
LBB0_16:
	leaq	L_.str.6(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	$58, %edi
	callq	_putchar
	movzbl	-104(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-103(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-102(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-101(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-100(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-99(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-98(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-97(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$58, %edi
	callq	_putchar
	movzbl	-108(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-107(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-106(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-105(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$58, %edi
	callq	_putchar
	movzbl	-96(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-95(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-94(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-93(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-92(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-91(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-90(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-89(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-88(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-87(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-86(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-85(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-84(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-83(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-82(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-81(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$10, %edi
	callq	_putchar
	incl	%r13d
	cmpl	%r14d, %r13d
	je	LBB0_22
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$16, %edx
	callq	_os_memset
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-108(%rbp), %rdx
	leaq	-104(%rbp), %rcx
	callq	_scard_gsm_auth
	testq	%rax, %rax
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	$0, -120(%rbp)
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	-80(%rbp,%rbx), %edi
	callq	_putchar
	incq	%rbx
	cmpq	-120(%rbp), %rbx
	jb	LBB0_21
	jmp	LBB0_17
LBB0_22:
	movq	%r15, %rdi
	callq	_scard_deinit
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"debug"

	.comm	_wpa_debug_level,4,2            ## @wpa_debug_level
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"PIN validation failed"

L_.str.6:                               ## @.str.6
	.asciz	"%02X"

L_str:                                  ## @str
	.asciz	"Failed to open smartcard connection"

L_str.8:                                ## @str.8
	.asciz	"invalid parameters for sim command"

	.no_dead_strip	_scard_get_triplets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scard_get_triplets
_scard_get_triplets:                    ; @scard_get_triplets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w1, #2
	b.lt	LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x0, [x2, #8]
	bl	_atoi
	cmp	w0, #0
	b.le	LBB0_8
; %bb.2:
	mov	x19, x0
	cmp	w22, #3
	b.lo	LBB0_4
; %bb.3:
	ldr	x0, [x21, #16]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _wpa_debug_level@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wpa_debug_level@GOTPAGEOFF]
	mov	w9, #99
Lloh7:
	str	w9, [x8]
LBB0_5:
	ldr	w0, [x20]
	bl	_scard_init
	cbz	x0, LBB0_13
; %bb.6:
	mov	x20, x0
	ldr	x1, [x21]
	bl	_scard_set_pin
	cbz	x0, LBB0_14
; %bb.7:
Lloh8:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	b	LBB0_15
LBB0_8:
Lloh13:
	adrp	x0, l_str.8@PAGE
Lloh14:
	add	x0, x0, l_str.8@PAGEOFF
LBB0_9:
	bl	_puts
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
Lloh18:
	adrp	x0, l_str@PAGE
Lloh19:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_9
LBB0_14:
	mov	w8, #20
	str	x8, [sp, #16]
	add	x23, sp, #52
	add	x1, sp, #52
	add	x2, sp, #16
	mov	x0, x20
	bl	_scard_get_imsi
	cbz	x0, LBB0_16
LBB0_15:
	mov	x0, x20
	bl	_scard_deinit
	b	LBB0_10
LBB0_16:
	mov	w21, #0
Lloh20:
	adrp	x22, l_.str.6@PAGE
Lloh21:
	add	x22, x22, l_.str.6@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #58
	bl	_putchar
	ldrb	w8, [sp, #28]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #29]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #30]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #31]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #32]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #33]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #34]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #35]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	mov	w0, #58
	bl	_putchar
	ldrb	w8, [sp, #12]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #13]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #14]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #15]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	mov	w0, #58
	bl	_putchar
	ldrb	w8, [sp, #36]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #37]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #38]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #39]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #40]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #41]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #42]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #43]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #44]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #45]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #46]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #47]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #48]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #49]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #50]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldrb	w8, [sp, #51]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	mov	w0, #10
	bl	_putchar
	add	w21, w21, #1
	cmp	w21, w19
	b.eq	LBB0_22
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	add	x0, sp, #36
	mov	x1, x21
	mov	w2, #16
	bl	_os_memset
	add	x1, sp, #36
	add	x2, sp, #12
	add	x3, sp, #28
	mov	x0, x20
	bl	_scard_gsm_auth
	cbnz	x0, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x24, #0
LBB0_21:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x23, x24]
	bl	_putchar
	add	x24, x24, #1
	ldr	x8, [sp, #16]
	cmp	x24, x8
	b.lo	LBB0_21
	b	LBB0_17
LBB0_22:
	mov	x0, x20
	bl	_scard_deinit
	mov	w0, #0
	b	LBB0_11
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"debug"

	.comm	_wpa_debug_level,4,2            ; @wpa_debug_level
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"PIN validation failed"

l_.str.6:                               ; @.str.6
	.asciz	"%02X"

l_str:                                  ; @str
	.asciz	"Failed to open smartcard connection"

l_str.8:                                ; @str.8
	.asciz	"invalid parameters for sim command"

	.no_dead_strip	_scard_get_triplets
.subsections_via_symbols
