	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_hdw_disconnect            ## -- Begin function pvr2_hdw_disconnect
	.p2align	4, 0x90
_pvr2_hdw_disconnect:                   ## @pvr2_hdw_disconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PVR2_TRACE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_pvr2_trace
	movl	(%rbx), %edi
	callq	_LOCK_TAKE
	movl	4(%rbx), %edi
	callq	_LOCK_TAKE
	movq	%rbx, %rdi
	callq	_pvr2_hdw_remove_usb_stuff
	movl	4(%rbx), %edi
	callq	_LOCK_GIVE
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_LOCK_GIVE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_INIT,4,2            ## @PVR2_TRACE_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pvr2_hdw_disconnect(hdw=%p)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_hdw_disconnect            ; -- Begin function pvr2_hdw_disconnect
	.p2align	2
_pvr2_hdw_disconnect:                   ; @pvr2_hdw_disconnect
	.cfi_startproc
; %bb.0:
	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
Lloh0:
	adrp	x8, _PVR2_TRACE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_TRACE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pvr2_trace
	ldr	w0, [x19]
	bl	_LOCK_TAKE
	ldr	w0, [x19, #4]
	bl	_LOCK_TAKE
	mov	x0, x19
	bl	_pvr2_hdw_remove_usb_stuff
	ldr	w0, [x19, #4]
	bl	_LOCK_GIVE
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LOCK_GIVE
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_INIT,4,2            ; @PVR2_TRACE_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pvr2_hdw_disconnect(hdw=%p)"

.subsections_via_symbols
