	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pnp_device_detach              ## -- Begin function pnp_device_detach
	.p2align	4, 0x90
_pnp_device_detach:                     ## @pnp_device_detach
	.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	_pnp_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_PNP_ATTACHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_PNP_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	_pnp_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pnp_lock,4,2                   ## @pnp_lock
	.comm	_PNP_ATTACHED,8,3               ## @PNP_ATTACHED
	.comm	_PNP_READY,8,3                  ## @PNP_READY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pnp_device_detach              ; -- Begin function pnp_device_detach
	.p2align	2
_pnp_device_detach:                     ; @pnp_device_detach
	.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	x0, _pnp_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pnp_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _PNP_ATTACHED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PNP_ATTACHED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _PNP_READY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PNP_READY@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
Lloh8:
	adrp	x0, _pnp_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _pnp_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pnp_lock,4,2                   ; @pnp_lock
	.comm	_PNP_ATTACHED,8,3               ; @PNP_ATTACHED
	.comm	_PNP_READY,8,3                  ; @PNP_READY
.subsections_via_symbols
