	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_device_unregister           ## -- Begin function nd_device_unregister
	.p2align	4, 0x90
_nd_device_unregister:                  ## @nd_device_unregister
	.cfi_startproc
## %bb.0:
	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
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_kill_device
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_get_device
	movq	_nd_async_device_unregister@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_nd_async_domain@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_async_schedule_domain          ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_nd_device_lock
	movq	%rbx, %rdi
	callq	_kill_device
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_nd_device_unlock
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	callq	_nd_synchronize
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_device_unregister              ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nd_async_device_unregister,4,2 ## @nd_async_device_unregister
	.comm	_nd_async_domain,4,2            ## @nd_async_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_device_unregister           ; -- Begin function nd_device_unregister
	.p2align	2
_nd_device_unregister:                  ; @nd_device_unregister
	.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
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_kill_device
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_get_device
Lloh0:
	adrp	x8, _nd_async_device_unregister@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nd_async_device_unregister@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x2, _nd_async_domain@GOTPAGE
Lloh4:
	ldr	x2, [x2, _nd_async_domain@GOTPAGEOFF]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_async_schedule_domain
LBB0_4:
	mov	x0, x19
	bl	_nd_device_lock
	mov	x0, x19
	bl	_kill_device
	mov	x20, x0
	mov	x0, x19
	bl	_nd_device_unlock
	cbz	w20, LBB0_6
; %bb.5:
	bl	_nd_synchronize
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_device_unregister
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_nd_async_device_unregister,4,2 ; @nd_async_device_unregister
	.comm	_nd_async_domain,4,2            ; @nd_async_domain
.subsections_via_symbols
