	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcmcia_release_configuration   ## -- Begin function pcmcia_release_configuration
	.p2align	4, 0x90
_pcmcia_release_configuration:          ## @pcmcia_release_configuration
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	l___const.pcmcia_release_configuration.io+16(%rip), %rax
	movq	%rax, -48(%rbp)
	movups	l___const.pcmcia_release_configuration.io(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	16(%rdi), %r13
	leaq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rbx
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.1:
	movq	$0, (%r15)
	decq	(%r13)
	jne	LBB0_3
## %bb.2:
	movq	_SS_OUTPUT_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	32(%r13), %rsi
	movl	%eax, 48(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r13)
	movq	16(%r13), %rax
	movq	%r13, %rdi
	callq	*8(%rax)
LBB0_3:
	movl	(%rbx), %eax
	movq	_CONFIG_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_11
## %bb.4:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_CONFIG_IO_REQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.5:
	movq	_MAX_IO_WIN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	cmpl	$0, 8(%rcx,%rbx)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	decq	(%rcx,%rbx)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, -60(%rbp)
	movq	16(%r13), %rax
	movq	%r13, %rdi
	leaq	-64(%rbp), %rsi
	callq	*(%rax)
	movl	(%r12), %eax
	jmp	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.pcmcia_release_configuration.io
l___const.pcmcia_release_configuration.io:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0

	.comm	_SS_OUTPUT_ENA,4,2              ## @SS_OUTPUT_ENA
	.comm	_CONFIG_LOCKED,4,2              ## @CONFIG_LOCKED
	.comm	_CONFIG_IO_REQ,4,2              ## @CONFIG_IO_REQ
	.comm	_MAX_IO_WIN,4,2                 ## @MAX_IO_WIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcmcia_release_configuration   ; -- Begin function pcmcia_release_configuration
	.p2align	2
_pcmcia_release_configuration:          ; @pcmcia_release_configuration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x0
Lloh0:
	adrp	x8, l___const.pcmcia_release_configuration.io@PAGE
Lloh1:
	add	x8, x8, l___const.pcmcia_release_configuration.io@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	ldr	x20, [x0, #16]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldp	x8, x22, [x21]
	cbz	x8, LBB0_3
; %bb.1:
	str	xzr, [x21]
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _SS_OUTPUT_ENA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SS_OUTPUT_ENA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #48]
	str	xzr, [x20, #40]
	mov	x1, x20
	str	xzr, [x1, #32]!
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
LBB0_3:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _CONFIG_LOCKED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONFIG_LOCKED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	bic	w8, w8, w9
	str	w8, [x22]
Lloh8:
	adrp	x9, _CONFIG_IO_REQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CONFIG_IO_REQ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh11:
	adrp	x21, _MAX_IO_WIN@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MAX_IO_WIN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w9, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	add	sp, sp, #96
	ret
LBB0_6:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #24]
	add	x10, x9, x22
	ldr	w10, [x10, #8]
	cbz	w10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x9, x22]
	subs	x10, x10, #1
	str	x10, [x9, x22]
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w23, [sp, #4]
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x1, sp
	mov	x0, x20
	blr	x8
	ldr	w8, [x21]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.pcmcia_release_configuration.io
l___const.pcmcia_release_configuration.io:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0

	.comm	_SS_OUTPUT_ENA,4,2              ; @SS_OUTPUT_ENA
	.comm	_CONFIG_LOCKED,4,2              ; @CONFIG_LOCKED
	.comm	_CONFIG_IO_REQ,4,2              ; @CONFIG_IO_REQ
	.comm	_MAX_IO_WIN,4,2                 ; @MAX_IO_WIN
.subsections_via_symbols
