	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vrc4171_remove_sockets
_vrc4171_remove_sockets:                ## @vrc4171_remove_sockets
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CARD_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	movq	_CARD_SLOTB@GOTPCREL(%rip), %r12
	movq	_vrc4171_sockets@GOTPCREL(%rip), %r13
	movq	_SLOT_INITIALIZED@GOTPCREL(%rip), %rdi
	movq	_SLOT_PROBE@GOTPCREL(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8), %rcx
	movq	%rcx, -8(%r14,%r15)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	cmpq	%rcx, %rbx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_vrc4171_slotb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_SLOTB_IS_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %r14
	movq	-8(%r14,%r15), %rcx
	cmpq	(%rdi), %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r15), %rdi
	callq	_pcmcia_unregister_socket
	movq	_SLOT_PROBE@GOTPCREL(%rip), %r8
	movq	_SLOT_INITIALIZED@GOTPCREL(%rip), %rdi
	movq	_CARD_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_MAX_SLOTS,4,2             ## @CARD_MAX_SLOTS
	.comm	_CARD_SLOTB,4,2                 ## @CARD_SLOTB
	.comm	_vrc4171_slotb,8,3              ## @vrc4171_slotb
	.comm	_SLOTB_IS_NONE,8,3              ## @SLOTB_IS_NONE
	.comm	_vrc4171_sockets,8,3            ## @vrc4171_sockets
	.comm	_SLOT_INITIALIZED,8,3           ## @SLOT_INITIALIZED
	.comm	_SLOT_PROBE,8,3                 ## @SLOT_PROBE
	.no_dead_strip	_vrc4171_remove_sockets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vrc4171_remove_sockets
_vrc4171_remove_sockets:                ; @vrc4171_remove_sockets
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x19, _CARD_MAX_SLOTS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CARD_MAX_SLOTS@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, #0
	mov	x21, #0
Lloh2:
	adrp	x22, _CARD_SLOTB@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CARD_SLOTB@GOTPAGEOFF]
Lloh4:
	adrp	x23, _vrc4171_slotb@GOTPAGE
Lloh5:
	ldr	x23, [x23, _vrc4171_slotb@GOTPAGEOFF]
Lloh6:
	adrp	x24, _SLOTB_IS_NONE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SLOTB_IS_NONE@GOTPAGEOFF]
Lloh8:
	adrp	x25, _vrc4171_sockets@GOTPAGE
Lloh9:
	ldr	x25, [x25, _vrc4171_sockets@GOTPAGEOFF]
Lloh10:
	adrp	x26, _SLOT_INITIALIZED@GOTPAGE
Lloh11:
	ldr	x26, [x26, _SLOT_INITIALIZED@GOTPAGEOFF]
Lloh12:
	adrp	x27, _SLOT_PROBE@GOTPAGE
Lloh13:
	ldr	x27, [x27, _SLOT_PROBE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x27]
	str	x9, [x28, x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	add	x20, x20, #16
	cmp	x21, w8, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	cmp	x21, x9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23]
	ldr	x10, [x24]
	cmp	x9, x10
	b.eq	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x25]
	ldr	x9, [x28, x20]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x28, x20
	add	x0, x8, #8
	bl	_pcmcia_unregister_socket
	ldr	w8, [x19]
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_MAX_SLOTS,4,2             ; @CARD_MAX_SLOTS
	.comm	_CARD_SLOTB,4,2                 ; @CARD_SLOTB
	.comm	_vrc4171_slotb,8,3              ; @vrc4171_slotb
	.comm	_SLOTB_IS_NONE,8,3              ; @SLOTB_IS_NONE
	.comm	_vrc4171_sockets,8,3            ; @vrc4171_sockets
	.comm	_SLOT_INITIALIZED,8,3           ; @SLOT_INITIALIZED
	.comm	_SLOT_PROBE,8,3                 ; @SLOT_PROBE
	.no_dead_strip	_vrc4171_remove_sockets
.subsections_via_symbols
