	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isert_device_put
_isert_device_put:                      ## @isert_device_put
	.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	_device_list_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	4(%rbx), %edx
	decl	%edx
	movl	%edx, 4(%rbx)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_isert_info
	cmpl	$0, 4(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_isert_free_device_ib_res
	movq	%rbx, %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_kfree
LBB0_2:
	movq	_device_list_mutex@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_device_list_mutex,4,2          ## @device_list_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device %p refcount %d\n"

	.no_dead_strip	_isert_device_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isert_device_put
_isert_device_put:                      ; @isert_device_put
	.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, _device_list_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _device_list_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w8, [x19, #4]
	sub	w2, w8, #1
	str	w2, [x19, #4]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_isert_info
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_isert_free_device_ib_res
	mov	x0, x19
	bl	_list_del
	mov	x0, x19
	bl	_kfree
LBB0_2:
Lloh4:
	adrp	x0, _device_list_mutex@GOTPAGE
Lloh5:
	ldr	x0, [x0, _device_list_mutex@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_device_list_mutex,4,2          ; @device_list_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device %p refcount %d\n"

	.no_dead_strip	_isert_device_put
.subsections_via_symbols
