	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	callq	_proc_arg
	testq	%rax, %rax
	js	LBB0_20
## %bb.1:
	leaq	-56(%rbp), %rdi
	callq	_connect_to_pccardd
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movl	%r14d, %edi
	callq	_get_slot_number
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_16
## %bb.3:
	movq	_slot_map@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.15:
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_16
LBB0_4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.5:
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	btl	%r13d, %eax
	jae	LBB0_13
	.p2align	4, 0x90
LBB0_7:
	movl	%r14d, %ebx
	movl	%r14d, %edi
	movl	%r13d, %esi
	leaq	-88(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	leaq	-72(%rbp), %r8
	leaq	-60(%rbp), %r9
	callq	_get_slot_info
	testq	%rax, %rax
	js	LBB0_11
## %bb.8:
	movq	-88(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.9:
	movq	-80(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movq	-72(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.12:
	movl	-60(%rbp), %edi
	callq	_strstate
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%r14, %r8
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_printf
	movq	-88(%rbp), %rdi
	callq	_free
	movq	-80(%rbp), %rdi
	callq	_free
	movq	-72(%rbp), %rdi
	callq	_free
	movl	%ebx, %r14d
	movq	_slot_map@GOTPCREL(%rip), %rcx
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rcx), %eax
	incl	%r13d
	btl	%r13d, %eax
	jb	LBB0_7
	jmp	LBB0_13
LBB0_11:
	movl	%ebx, %r14d
LBB0_16:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_unlink
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_18:
	testl	%r14d, %r14d
	js	LBB0_20
## %bb.19:
	movl	%r14d, %edi
	callq	_close
LBB0_20:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_slot_map,4,2                   ## @slot_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d~%s~%s~%s~%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	str	xzr, [sp, #72]
	bl	_proc_arg
	tbnz	x0, #63, LBB0_10
; %bb.1:
	add	x0, sp, #72
	bl	_connect_to_pccardd
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_get_slot_number
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x1, x0
Lloh0:
	adrp	x22, _slot_map@GOTPAGE
Lloh1:
	ldr	x22, [x22, _slot_map@GOTPAGEOFF]
	ldr	w8, [x22]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_6
LBB0_5:
	cbnz	w1, LBB0_11
LBB0_6:
	ldr	x0, [sp, #72]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_unlink
	ldr	x0, [sp, #72]
	bl	_free
LBB0_8:
	tbnz	w19, #31, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_close
LBB0_10:
	mov	w0, #0
	bl	_exit
LBB0_11:
	mov	w20, #0
	sub	w23, w1, #1
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
	lsr	w8, w8, w20
	tbz	w8, #0, LBB0_17
LBB0_12:
	add	x2, sp, #64
	add	x3, sp, #56
	add	x4, sp, #48
	add	x5, sp, #44
	mov	x0, x19
	mov	x1, x20
	bl	_get_slot_info
	tbnz	x0, #63, LBB0_6
; %bb.13:
	ldr	x24, [sp, #64]
	cbz	x24, LBB0_6
; %bb.14:
	ldr	x25, [sp, #56]
	cbz	x25, LBB0_6
; %bb.15:
	ldr	x26, [sp, #48]
	cbz	x26, LBB0_6
; %bb.16:
	ldr	w0, [sp, #44]
	bl	_strstate
	stp	x26, x0, [sp, #16]
	stp	x24, x25, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_printf
	ldr	x0, [sp, #64]
	bl	_free
	ldr	x0, [sp, #56]
	bl	_free
	ldr	x0, [sp, #48]
	bl	_free
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	cmp	w23, w20
	b.eq	LBB0_6
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x22]
	add	w20, w20, #1
	lsr	w8, w8, w20
	tbnz	w8, #0, LBB0_12
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_slot_map,4,2                   ; @slot_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d~%s~%s~%s~%s\n"

.subsections_via_symbols
