	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxpocket_detach
_vxpocket_detach:                       ## @vxpocket_detach
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movb	(%r14), %cl
	movl	$-2, %eax
	roll	%cl, %eax
	movq	_card_alloc@GOTPCREL(%rip), %rcx
	andl	%eax, (%rcx)
	movq	_VX_STAT_IS_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	movl	(%r14), %edi
	callq	_snd_card_disconnect
	movq	%rbx, %rdi
	callq	_vxpocket_release
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_card_free_when_closed      ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_card_alloc,4,2                 ## @card_alloc
	.comm	_VX_STAT_IS_STALE,4,2           ## @VX_STAT_IS_STALE
	.no_dead_strip	_vxpocket_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxpocket_detach
_vxpocket_detach:                       ; @vxpocket_detach
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	mov	w8, #1
	ldp	w9, w10, [x20]
	lsl	w8, w8, w9
Lloh0:
	adrp	x9, _card_alloc@GOTPAGE
Lloh1:
	ldr	x9, [x9, _card_alloc@GOTPAGEOFF]
	ldr	w11, [x9]
	bic	w8, w11, w8
	str	w8, [x9]
Lloh2:
	adrp	x8, _VX_STAT_IS_STALE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VX_STAT_IS_STALE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w8, w10, w8
	str	w8, [x20, #4]
	ldr	w0, [x20]
	bl	_snd_card_disconnect
	mov	x0, x19
	bl	_vxpocket_release
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_card_free_when_closed
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_card_alloc,4,2                 ; @card_alloc
	.comm	_VX_STAT_IS_STALE,4,2           ; @VX_STAT_IS_STALE
	.no_dead_strip	_vxpocket_detach
.subsections_via_symbols
