	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pccard_register_pcmcia         ## -- Begin function pccard_register_pcmcia
	.p2align	4, 0x90
_pccard_register_pcmcia:                ## @pccard_register_pcmcia
	.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	%rsi, %r15
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_5:
	movq	$0, 8(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_3:
	movq	%r15, 8(%rbx)
	movq	_SOCKET_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SOCKET_CARDBUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	andl	(%rbx), %ecx
	xorl	%r12d, %r12d
	cmpl	%eax, %ecx
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	*(%r15)
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SOCKET_PRESENT,4,2             ## @SOCKET_PRESENT
	.comm	_SOCKET_CARDBUS,4,2             ## @SOCKET_CARDBUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pccard_register_pcmcia         ; -- Begin function pccard_register_pcmcia
	.p2align	2
_pccard_register_pcmcia:                ; @pccard_register_pcmcia
	.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	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_3:
	str	xzr, [x20, #8]
	b	LBB0_7
LBB0_4:
	str	x21, [x20, #8]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _SOCKET_PRESENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCKET_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SOCKET_CARDBUS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SOCKET_CARDBUS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w10, w10, w9
	and	w8, w10, w8
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x21]
	mov	x0, x20
	blr	x8
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SOCKET_PRESENT,4,2             ; @SOCKET_PRESENT
	.comm	_SOCKET_CARDBUS,4,2             ; @SOCKET_CARDBUS
.subsections_via_symbols
