	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmcia_release_io
_pcmcia_release_io:                     ## @pcmcia_release_io
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %r12
	movq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_release_io_space
	movq	8(%r12), %rsi
	cmpq	$0, 8(%rsi)
	je	LBB0_3
## %bb.2:
	addq	$8, %rsi
	movq	%r15, %rdi
	callq	_release_io_space
LBB0_3:
	movq	$0, (%rbx)
	movq	_CONFIG_IO_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
LBB0_4:
	negl	%r14d
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CONFIG_IO_REQ,4,2              ## @CONFIG_IO_REQ
	.no_dead_strip	_pcmcia_release_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmcia_release_io
_pcmcia_release_io:                     ; @pcmcia_release_io
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x22, [x20, #8]
	ldr	x1, [x22, #8]
	mov	x0, x19
	bl	_release_io_space
	ldr	x1, [x22, #8]
	ldr	x8, [x1, #8]!
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_release_io_space
LBB0_3:
	str	xzr, [x20]
Lloh3:
	adrp	x8, _CONFIG_IO_REQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG_IO_REQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
LBB0_4:
	neg	w20, w21
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CONFIG_IO_REQ,4,2              ; @CONFIG_IO_REQ
	.no_dead_strip	_pcmcia_release_io
.subsections_via_symbols
